diff options
author | Marek Marczykowski <[email protected]> | 2012-05-20 01:45:10 +0000 |
---|---|---|
committer | David S. Miller <[email protected]> | 2012-05-22 16:50:28 -0400 |
commit | 76648102cfabc586ce1e9d0c4ebba2000e7b1ca0 (patch) | |
tree | 97ee7b8698d891dfa2361a4e3eb0478b9dc6c853 | |
parent | c3719a1ef52eb1aadf77b7557cc9ca08124d8818 (diff) |
xen: do not disable netfront in dom0
Netfront driver can be also useful in dom0, eg when all NICs are assigned to
some domU (aka driver domain). Then using netback in domU and netfront in dom0
is the only way to get network access in dom0.
Signed-off-by: Marek Marczykowski <[email protected]>
Acked-by: Ian Campbell <[email protected]>
Acked-by: Konrad Rzeszutek Wilk <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
-rw-r--r-- | drivers/net/xen-netfront.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c index 0ebbb1906c30..2027afe405fe 100644 --- a/drivers/net/xen-netfront.c +++ b/drivers/net/xen-netfront.c @@ -1962,9 +1962,6 @@ static int __init netif_init(void) if (!xen_domain()) return -ENODEV; - if (xen_initial_domain()) - return 0; - if (xen_hvm_domain() && !xen_platform_pci_unplug) return -ENODEV; @@ -1977,9 +1974,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); |