xen: do not disable netfront in dom0
Subsystems (2)
PATCH 1/1 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.
--- drivers/net/xen-netfront.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-)
drivers/net/xen-netfront.c +0 -3
@@ -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);
Signature · 1 line
1.7.4.4
Quoted 5 lines · Marek Marczykowski
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]>
Pls CC the network maintainer (and its list) and LKML.
Quoted 26 lines
--- drivers/net/xen-netfront.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-)drivers/net/xen-netfront.c +0
-3@@ -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);Signature · 7 lines
1.7.4.4 _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
Quoted 14 lines · Marek Marczykowski
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]>--- drivers/net/xen-netfront.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-)drivers/net/xen-netfront.c +0
-0
drivers/net/xen-netfront.c static int __init netif_init(void) · line 1958
Quoted 9 lines
drivers/net/xen-netfront.c +0
-3@@ -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);
you need something similar in netif_exit too
Quoted 18 lines · Stefano Stabellini
Quoted 17 lines · Marek Marczykowski
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]>--- drivers/net/xen-netfront.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-)drivers/net/xen-netfront.c +0
-0@@ -1953,9 +1953,6 @@ static int __init netif_init(void)if (!xen_domain ())return -ENODEV ;
Quoted 8 lines
drivers/net/xen-netfront.c static int __init netif_init(void) · line 1958
Quoted 6 lines
drivers/net/xen-netfront.c +0
-3-if (xen_initial_domain ()) -return 0 ; -printk (KERN_INFO "Initialising Xen virtual ethernet driver.\n" );return xenbus_register_frontend (&netfront_driver);you need something similar in
netif_exittoo
Do we need this in other *foo*front as well? e.g. block?
Ian.
Quoted 24 lines · Ian Campbell
Quoted 23 lines · Stefano Stabellini
Quoted 22 lines · Marek Marczykowski
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]>--- drivers/net/xen-netfront.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-)drivers/net/xen-netfront.c +0
-3@@ -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" );
Quoted 5 lines
Quoted 3 lines
drivers/net/xen-netfront.c static int __init netif_init(void) · line 1958
Quoted 1 line
drivers/net/xen-netfront.c +0
-0return xenbus_register_frontend (&netfront_driver);you need something similar in
netif_exittooDo we need this in other *foo*front as well? e.g. block?
nope, xen-blkfront doesn't have any xen_initial_domain checks. The other frontends with xen_initial_domain checks are:
drivers/input/misc/xen-kbdfront.cdrivers/video/xen-fbfront.cdrivers/pci/xen-pcifront.c
While it makes sense to keep xen-pcifront dom0 only for the moment, it might be useful to remove the xen_initial_domain checks from xen-fbfront and xen-kbdfront.