[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 11/13] pciback: Add check to load only under priviliged domain.
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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |