|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 11/13] pciback: Add check to load only under privilig
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
---
drivers/xen/pciback/pci_stub.c | 3 +++
drivers/xen/pciback/xenbus.c | 2 --
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/xen/pciback/pci_stub.c b/drivers/xen/pciback/pci_stub.c
index 036d7bb..5ea594b 100644
--- a/drivers/xen/pciback/pci_stub.c
+++ b/drivers/xen/pciback/pci_stub.c
@@ -1268,6 +1268,9 @@ static int __init pciback_init(void)
{
int err;
+ if (!xen_initial_domain())
+ return -ENODEV;
+
err = pciback_config_init();
if (err)
return err;
diff --git a/drivers/xen/pciback/xenbus.c b/drivers/xen/pciback/xenbus.c
index 5be1350..a85c413 100644
--- a/drivers/xen/pciback/xenbus.c
+++ b/drivers/xen/pciback/xenbus.c
@@ -693,8 +693,6 @@ static struct xenbus_driver xenbus_pciback_driver = {
int __init pciback_xenbus_register(void)
{
- if (!is_running_on_xen())
- return -ENODEV;
pciback_wq = create_workqueue("pciback_workqueue");
if (!pciback_wq) {
printk(KERN_ERR "pciback_xenbus_register: create"
--
1.6.2.5
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 01/13] Initial copy from linux-2.6.18.hg off pciback driver., (continued)
- [Xen-devel] [PATCH 01/13] Initial copy from linux-2.6.18.hg off pciback driver., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 02/13] Including the pciif.h header file., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 03/13] Fix include header name change (evtchn.h is now events.h), Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 04/13] Removed MSI capability in the pci-back driver., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 05/13] Use pci_is_enabled() instead of is_enabled., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 06/13] Fix usage of INIT_WORK., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 07/13] Update the calling mechanism for xenbus_[map|unmap]_ring_valloc functions., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 08/13] Xen paravirtualised PCI hotplug., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 09/13] xenbus: Add new states to xenbus_strstate(), Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 10/13] xenbus: prevent warnings on unhandled enumeration values, Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 11/13] pciback: Add check to load only under priviliged domain.,
Konrad Rzeszutek Wilk <=
- [Xen-devel] [PATCH 12/13] Remove usage of pci_restore_bars() as Linux handles the power-up states correctly now., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 13/13] pciback: Enable Xen-PCI-back to be compiled., Konrad Rzeszutek Wilk
- Re: [Xen-devel] [PATCH 08/13] Xen paravirtualised PCI hotplug., Vincent Hanquez
- Re: [Xen-devel] [PATCH 08/13] Xen paravirtualised PCI hotplug., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 08/13] Xen paravirtualised PCI hotplug., Yosuke Iwamatsu
- [Xen-devel] Re: [PATCH 04/13] Removed MSI capability in the pci-back driver., Jeremy Fitzhardinge
- [Xen-devel] Re: [PATCH 04/13] Removed MSI capability in the pci-back driver., Konrad Rzeszutek Wilk
Re: [Xen-devel] [PATCH PV_OPS] pciback support, Jeremy Fitzhardinge
|
|
|
|
|