Skip to content

Commit

Permalink
xen: do not disable netfront in dom0
Browse files Browse the repository at this point in the history
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 <marmarek@invisiblethingslab.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Marek Marczykowski authored and David S. Miller committed May 22, 2012
1 parent c3719a1 commit 7664810
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/net/xen-netfront.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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);
Expand Down

0 comments on commit 7664810

Please sign in to comment.