pvops: enable xen-netfront in dom0 (#460)
This commit is contained in:
parent
493024345c
commit
a3a94130eb
24
patches.xen/pvops-enable-netfront-in-dom0.patch
Normal file
24
patches.xen/pvops-enable-netfront-in-dom0.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c
|
||||||
|
index 698b905..e31ebff 100644
|
||||||
|
--- a/drivers/net/xen-netfront.c
|
||||||
|
+++ b/drivers/net/xen-netfront.c
|
||||||
|
@@ -1953,9 +1953,6 @@ static int __init netif_init(void)
|
||||||
|
if (!xen_domain())
|
||||||
|
return -ENODEV;
|
||||||
|
|
||||||
|
- if (xen_initial_domain())
|
||||||
|
- return 0;
|
||||||
|
-
|
||||||
|
printk(KERN_INFO "Initialising Xen virtual ethernet driver.\n");
|
||||||
|
|
||||||
|
return xenbus_register_frontend(&netfront_driver);
|
||||||
|
@@ -1965,9 +1962,6 @@ module_init(netif_init);
|
||||||
|
|
||||||
|
static void __exit netif_exit(void)
|
||||||
|
{
|
||||||
|
- if (xen_initial_domain())
|
||||||
|
- return;
|
||||||
|
-
|
||||||
|
xenbus_unregister_driver(&netfront_driver);
|
||||||
|
}
|
||||||
|
module_exit(netif_exit);
|
@ -9,3 +9,4 @@ patches.xen/pvops-0008-xen-setup-pm-acpi-Remove-the-call-to-boot_option_idl.patc
|
|||||||
patches.xen/pvops-0009-xen-enlighten-Expose-MWAIT-and-MWAIT_LEAF-if-hypervi.patch
|
patches.xen/pvops-0009-xen-enlighten-Expose-MWAIT-and-MWAIT_LEAF-if-hypervi.patch
|
||||||
patches.xen/pvops-0010-CPUFREQ-xen-governor-for-Xen-hypervisor-frequency-sc.patch
|
patches.xen/pvops-0010-CPUFREQ-xen-governor-for-Xen-hypervisor-frequency-sc.patch
|
||||||
patches.xen/pvops-0011-x86-PCI-Expand-the-x86_msi_ops-to-have-a-restore-MSI.patch
|
patches.xen/pvops-0011-x86-PCI-Expand-the-x86_msi_ops-to-have-a-restore-MSI.patch
|
||||||
|
patches.xen/pvops-enable-netfront-in-dom0.patch
|
||||||
|
Loading…
Reference in New Issue
Block a user