aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/block/xen-blkfront.c2
-rw-r--r--drivers/net/xen-netfront.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c
index 4276ab035e00..19b6005a323e 100644
--- a/drivers/block/xen-blkfront.c
+++ b/drivers/block/xen-blkfront.c
@@ -1452,7 +1452,7 @@ static int __init xlblk_init(void)
1452 if (!xen_domain()) 1452 if (!xen_domain())
1453 return -ENODEV; 1453 return -ENODEV;
1454 1454
1455 if (!xen_platform_pci_unplug) 1455 if (xen_hvm_domain() && !xen_platform_pci_unplug)
1456 return -ENODEV; 1456 return -ENODEV;
1457 1457
1458 if (register_blkdev(XENVBD_MAJOR, DEV_NAME)) { 1458 if (register_blkdev(XENVBD_MAJOR, DEV_NAME)) {
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c
index 8cc0914b9f92..ccba19c72a36 100644
--- a/drivers/net/xen-netfront.c
+++ b/drivers/net/xen-netfront.c
@@ -1957,7 +1957,7 @@ static int __init netif_init(void)
1957 if (xen_initial_domain()) 1957 if (xen_initial_domain())
1958 return 0; 1958 return 0;
1959 1959
1960 if (!xen_platform_pci_unplug) 1960 if (xen_hvm_domain() && !xen_platform_pci_unplug)
1961 return -ENODEV; 1961 return -ENODEV;
1962 1962
1963 printk(KERN_INFO "Initialising Xen virtual ethernet driver.\n"); 1963 printk(KERN_INFO "Initialising Xen virtual ethernet driver.\n");