|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 14/31] Add proper check to see if running under Xen.
The test for this is called differently on modern kernels.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
---
drivers/xen/pcifront/xenbus.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/xen/pcifront/xenbus.c b/drivers/xen/pcifront/xenbus.c
index 4f34f87..c2ef1de 100644
--- a/drivers/xen/pcifront/xenbus.c
+++ b/drivers/xen/pcifront/xenbus.c
@@ -459,7 +459,7 @@ static struct xenbus_driver xenbus_pcifront_driver = {
static int __init pcifront_init(void)
{
- if (!is_running_on_xen())
+ if (!xen_domain())
return -ENODEV;
return xenbus_register_frontend(&xenbus_pcifront_driver);
--
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 04/31] Fix include header name change., (continued)
- [Xen-devel] [PATCH 04/31] Fix include header name change., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 05/31] Fix compile warning: ignoring return value of 'pci_bus_add_device', declared with attribute warn_unused_result, Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 06/31] Fix compile warning: passing argument 2 of 'pci_walk_bus' from incompatible pointer type, Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 07/31] Fix compile error. The bind_to_irq_handler has different arguments., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 08/31] Fix compile error: implicit declaration of function 'virt_to_mfn', Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 09/31] Fix compile error: implicit declaration of function 'clear_evtchn', Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 10/31] Fix compile error: implicit declaration of function 'gnttab_end_foreign_access', Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 11/31] Fix compile error: too few arguments to function 'gnttab_end_foreign_access', Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 12/31] Remove function declerations (CONFIG_PCI_DOMAIN) that exist in recent kernels., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 13/31] Fix uage of INIT_WORK., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 14/31] Add proper check to see if running under Xen.,
Konrad Rzeszutek Wilk <=
- [Xen-devel] [PATCH 15/31] Improper assumption that event channel == IRQ number., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 16/31] Replace HYPERVISOR_poll with 'xen_poll_irq_timout' function., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 17/31] Coalesce pci.c functions in xenbus.c., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 18/31] Coalesce xen/pcifront.h in drivers/xen/pcifront/pcifront.h, Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 19/31] Remove ia64 from pcifront.c support., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 20/31] Remove unused pci_bus_sem extern, as we don't use it., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 21/31] Coalesce pcifront.h in xenbus.c., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 22/31] Coalesce pci_op.c in xenbus.c., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 23/31] Remove unnecessary function declerations., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 24/31] Rename the drivers/xen/pcifront/* driver to drivers/pci/xen-pcifront.c., Konrad Rzeszutek Wilk
|
|
|
|
|