xen kconfig tweaks
Subsystems (6)
cover xen kconfig tweaks
This series is a collection of xen kconfig fixes and additions.
Andrew Jones (4):
xen kconfig: keep XEN_XENBUS_FRONTEND builtin xen kconfig: relax INPUT_XEN_KBDDEV_FRONTEND deps xen kconfig: add dom0 support help text xen kconfig: describe xen tmem in the config menu
arch/x86/xen/Kconfig | 7 ++++++- drivers/input/misc/Kconfig | 2 +- drivers/video/Kconfig | 1 + drivers/xen/Kconfig | 4 ++-- 4 files changed, 10 insertions(+), 4 deletions(-)
Signature · 1 line
1.7.7.5
PATCH 1/4 xen kconfig: keep XEN_XENBUS_FRONTEND builtin
When XEN_XENBUS_FRONTEND gets selected as a module it can lead to unbootable configs. If we need it, then we should just build it in.
--- drivers/xen/Kconfig | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/xen/Kconfig +1 -1
@@ -118,7 +118,7 @@ config XEN_SYS_HYPERVISOR but will have no xen contents. config XEN_XENBUS_FRONTEND - tristate + bool config XEN_GNTDEV tristate "userspace grant access device driver"
Signature · 1 line
1.7.7.5
PATCH 2/4 xen kconfig: relax INPUT_XEN_KBDDEV_FRONTEND deps
In reply to Andrew JonesPV-on-HVM guests may want to use the xen keyboard/mouse frontend, but they don't use the xen frame buffer frontend. For this case it doesn't make much sense for INPUT_XEN_KBDDEV_FRONTEND to depend on XEN_FBDEV_FRONTEND. The opposite direction always makes more sense, i.e. if you're using xenfb, then you'll want xenkbd. Switch the dependencies.
--- drivers/input/misc/Kconfig | 2 +- drivers/video/Kconfig | 1 + 2 files changed, 2 insertions(+), 1 deletions(-)
drivers/input/misc/Kconfig +1 -1
@@ -533,7 +533,7 @@ config INPUT_CMA3000_I2C config INPUT_XEN_KBDDEV_FRONTEND tristate "Xen virtual keyboard and mouse support" - depends on XEN_FBDEV_FRONTEND + depends on XEN default y select XEN_XENBUS_FRONTEND help
drivers/video/Kconfig +1 -0
@@ -2269,6 +2269,7 @@ config XEN_FBDEV_FRONTEND select FB_SYS_IMAGEBLIT select FB_SYS_FOPS select FB_DEFERRED_IO + select INPUT_XEN_KBDDEV_FRONTEND select XEN_XENBUS_FRONTEND default y help
Signature · 1 line
1.7.7.5
Re: [Xen-devel] [PATCH 2/4] xen kconfig: relax INPUT_XEN_KBDDEV_FRONTEND deps
Quoted 5 lines · Andrew Jones
PV-on-HVM guests may want to use the xen keyboard/mouse frontend, but they don't use the xen frame buffer frontend. For this case it doesn't make much sense for
INPUT_XEN_KBDDEV_FRONTENDto depend onXEN_FBDEV_FRONTEND. The opposite direction always makes more sense, i.e. if you're using xenfb, then you'll want xenkbd. Switch the dependencies.
You need to CC as well these people that have 'maintainer' field on them:
konrad@phenom:~/work/linux$ scripts/get_maintainer.pl -f drivers/video/Kconfig Florian Tobias Schandinat <[email protected]> (maintainer:FRAMEBUFFER LAYER) [email protected] (open list:FRAMEBUFFER LAYER) [email protected] (open list) konrad@phenom:~/work/linux$ scripts/get_maintainer.pl -f drivers/input/misc/Kconfig Dmitry Torokhov <[email protected]> (maintainer:INPUT (KEYBOARD,...,commit_signer:9/16=56%) Samuel Ortiz <[email protected]> (commit_signer:3/16=19%) Anirudh Ghayal <[email protected]> (commit_signer:2/16=12%) Peter Ujfalusi <[email protected]> (commit_signer:2/16=12%) Alan Cox <[email protected]> (commit_signer:2/16=12%) [email protected] (open list:INPUT (KEYBOARD,...) [email protected] (open list)
Quoted 40 lines
Signed-off-by Andrew Jones <[email protected]>--- drivers/input/misc/Kconfig | 2 +- drivers/video/Kconfig | 1 + 2 files changed, 2 insertions(+), 1 deletions(-)drivers/input/misc/Kconfig +1
-1@@ -533,7 +533,7 @@ config INPUT_CMA3000_I2C config INPUT_XEN_KBDDEV_FRONTEND tristate "Xen virtual keyboard and mouse support" - depends on XEN_FBDEV_FRONTEND + depends on XEN default y select XEN_XENBUS_FRONTEND helpdrivers/video/Kconfig +1
-0@@ -2269,6 +2269,7 @@ config XEN_FBDEV_FRONTEND select FB_SYS_IMAGEBLIT select FB_SYS_FOPS select FB_DEFERRED_IO + select INPUT_XEN_KBDDEV_FRONTEND select XEN_XENBUS_FRONTEND default y helpSignature · 7 lines
1.7.7.5 _______________________________________________ Xen-devel mailing list [email protected] http://lists.xensource.com/xen-devel
Re: [PATCH 2/4] xen kconfig: relax INPUT_XEN_KBDDEV_FRONTEND deps
----- Original Message -----
Quoted 14 lines · Andrew Jones
Quoted 9 lines
PV-on-HVM guests may want to use the xen keyboard/mouse frontend, but
they don't use the xen frame buffer frontend. For this case it doesn't
make much sense forINPUT_XEN_KBDDEV_FRONTENDto depend onXEN_FBDEV_FRONTEND. The opposite direction always makes more sense, i.e.
if you're using xenfb, then you'll want xenkbd. Switch the dependencies.You need to CC as well these people that have 'maintainer' field on them:
Quoted 17 lines
konrad@phenom:~/work/linux$ scripts/get_maintainer.pl -f drivers/video/Kconfig Florian Tobias Schandinat <[email protected]> (maintainer:FRAMEBUFFER LAYER) [email protected] (open list:FRAMEBUFFER LAYER) [email protected] (open list) konrad@phenom:~/work/linux$ scripts/get_maintainer.pl -f drivers/input/misc/Kconfig Dmitry Torokhov <[email protected]> (maintainer:INPUT (KEYBOARD,...,commit_signer:9/16=56%) Samuel Ortiz <[email protected]> (commit_signer:3/16=19%) Anirudh Ghayal <[email protected]> (commit_signer:2/16=12%) Peter Ujfalusi <[email protected]> (commit_signer:2/16=12%) Alan Cox <[email protected]> (commit_signer:2/16=12%) [email protected] (open list:INPUT (KEYBOARD,...) [email protected] (open list)
Thanks. Replied with them in CC.
Drew
Quoted 42 lines
Quoted 41 lines
Signed-off-by Andrew Jones <[email protected]>--- drivers/input/misc/Kconfig | 2 +- drivers/video/Kconfig | 1 + 2 files changed, 2 insertions(+), 1 deletions(-)drivers/input/misc/Kconfig +1
-1@@ -533,7 +533,7 @@ config INPUT_CMA3000_I2C config INPUT_XEN_KBDDEV_FRONTEND tristate "Xen virtual keyboard and mouse support" - depends on XEN_FBDEV_FRONTEND + depends on XEN default y select XEN_XENBUS_FRONTEND helpdrivers/video/Kconfig +1
-1@@ -2269,6 +2269,7 @@ config XEN_FBDEV_FRONTEND select FB_SYS_IMAGEBLIT select FB_SYS_FOPS select FB_DEFERRED_IO + select INPUT_XEN_KBDDEV_FRONTEND select XEN_XENBUS_FRONTEND default y help --1.7.7.5
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Dmitry Torokhov
maintainerRe: [PATCH 2/4] xen kconfig: relax INPUT_XEN_KBDDEV_FRONTEND deps
Hi Andrew,
Quoted 53 lines · Andrew Jones
----- Original Message -----
Quoted 14 lines · Andrew Jones
Quoted 9 lines
PV-on-HVM guests may want to use the xen keyboard/mouse frontend, but
they don't use the xen frame buffer frontend. For this case it doesn't
make much sense forINPUT_XEN_KBDDEV_FRONTENDto depend onXEN_FBDEV_FRONTEND. The opposite direction always makes more sense, i.e.
if you're using xenfb, then you'll want xenkbd. Switch the dependencies.You need to CC as well these people that have 'maintainer' field on them:
Quoted 17 lines
konrad@phenom:~/work/linux$ scripts/get_maintainer.pl -f drivers/video/Kconfig Florian Tobias Schandinat <[email protected]> (maintainer:FRAMEBUFFER LAYER) [email protected] (open list:FRAMEBUFFER LAYER) [email protected] (open list) konrad@phenom:~/work/linux$ scripts/get_maintainer.pl -f drivers/input/misc/Kconfig Dmitry Torokhov <[email protected]> (maintainer:INPUT (KEYBOARD,...,commit_signer:9/16=56%) Samuel Ortiz <[email protected]> (commit_signer:3/16=19%) Anirudh Ghayal <[email protected]> (commit_signer:2/16=12%) Peter Ujfalusi <[email protected]> (commit_signer:2/16=12%) Alan Cox <[email protected]> (commit_signer:2/16=12%) [email protected] (open list:INPUT (KEYBOARD,...) [email protected] (open list)Thanks. Replied with them in CC.
Drew
Quoted 14 lines
Quoted 14 lines
Signed-off-by Andrew Jones <[email protected]>--- drivers/input/misc/Kconfig | 2 +- drivers/video/Kconfig | 1 + 2 files changed, 2 insertions(+), 1 deletions(-)drivers/input/misc/Kconfig +0
-0@@ -533,7 +533,7 @@ config INPUT_CMA3000_I2C
Quoted 4 lines
Quoted 4 lines
drivers/input/misc/Kconfig config INPUT_CMA3000_I2C · line 536
Quoted 4 lines
drivers/input/misc/Kconfig +1
-1config INPUT_XEN_KBDDEV_FRONTEND tristate "Xen virtual keyboard and mouse support" - depends on XEN_FBDEV_FRONTEND + depends on XEN
This is OK with me.
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
drivers/input/misc/Kconfig +0
-0default y select XEN_XENBUS_FRONTEND helpdrivers/video/Kconfig +0
-0
Quoted 8 lines
Quoted 8 lines
drivers/video/Kconfig config XEN_FBDEV_FRONTEND · line 2272
Quoted 8 lines
index d83e967..269b299 100644
drivers/video/Kconfig +1
-0@@ -2269,6 +2269,7 @@ config XEN_FBDEV_FRONTEND select FB_SYS_IMAGEBLIT select FB_SYS_FOPS select FB_DEFERRED_IO + select INPUT_XEN_KBDDEV_FRONTEND
But here you need to either depend on or select INPUT as select does not resolve dependencies for selected symbol.
Thanks.
Signature · 1 line
Dmitry
Re: [Xen-devel] [PATCH 2/4] xen kconfig: relax INPUT_XEN_KBDDEV_FRONTEND deps
----- Original Message -----
Quoted 66 lines
Hi Andrew,
Quoted 56 lines · Andrew Jones
----- Original Message -----
Quoted 17 lines · Andrew Jones
Quoted 11 lines
PV-on-HVM guests may want to use the xen keyboard/mouse frontend,
but
they don't use the xen frame buffer frontend. For this case it doesn't
make much sense forINPUT_XEN_KBDDEV_FRONTENDto depend onXEN_FBDEV_FRONTEND. The opposite direction always makes more sense,
i.e.
if you're using xenfb, then you'll want xenkbd. Switch the dependencies.You need to CC as well these people that have 'maintainer' field on
them:Quoted 17 lines
konrad@phenom:~/work/linux$ scripts/get_maintainer.pl -f drivers/video/Kconfig Florian Tobias Schandinat <[email protected]> (maintainer:FRAMEBUFFER LAYER) [email protected] (open list:FRAMEBUFFER LAYER) [email protected] (open list) konrad@phenom:~/work/linux$ scripts/get_maintainer.pl -f drivers/input/misc/Kconfig Dmitry Torokhov <[email protected]> (maintainer:INPUT (KEYBOARD,...,commit_signer:9/16=56%) Samuel Ortiz <[email protected]> (commit_signer:3/16=19%) Anirudh Ghayal <[email protected]> (commit_signer:2/16=12%) Peter Ujfalusi <[email protected]> (commit_signer:2/16=12%) Alan Cox <[email protected]> (commit_signer:2/16=12%) [email protected] (open list:INPUT (KEYBOARD,...) [email protected] (open list)Thanks. Replied with them in CC.
Drew
Quoted 14 lines
Quoted 14 lines
Signed-off-by Andrew Jones <[email protected]>--- drivers/input/misc/Kconfig | 2 +- drivers/video/Kconfig | 1 + 2 files changed, 2 insertions(+), 1 deletions(-)drivers/input/misc/Kconfig +0
-0@@ -533,7 +533,7 @@ config INPUT_CMA3000_I2CQuoted 4 lines
Quoted 4 lines
drivers/input/misc/Kconfig config INPUT_CMA3000_I2C · line 536
Quoted 4 lines
drivers/input/misc/Kconfig +1
-1config INPUT_XEN_KBDDEV_FRONTEND tristate "Xen virtual keyboard and mouse support" - depends on XEN_FBDEV_FRONTEND + depends on XENThis is OK with me.
Quoted 17 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
drivers/input/misc/Kconfig +0
-0default y select XEN_XENBUS_FRONTEND helpdrivers/video/Kconfig +0
-0Quoted 8 lines
Quoted 8 lines
drivers/video/Kconfig config XEN_FBDEV_FRONTEND · line 2272
Quoted 8 lines
index d83e967..269b299 100644
drivers/video/Kconfig +1
-0@@ -2269,6 +2269,7 @@ config XEN_FBDEV_FRONTEND select FB_SYS_IMAGEBLIT select FB_SYS_FOPS select FB_DEFERRED_IO + select INPUT_XEN_KBDDEV_FRONTENDBut here you need to either depend on or select INPUT as select does not
resolve dependencies for selected symbol.
Would I actually need 'select INPUT' and select 'INPUT_MISC'? Maybe 'depends on' would just be cleaner and safer. I'll send a V2.
Thanks,
Drew
Quoted 10 lines
Thanks.
--
Dmitry_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
PATCH v2 2/4 xen kconfig: relax INPUT_XEN_KBDDEV_FRONTEND deps
PV-on-HVM guests may want to use the xen keyboard/mouse frontend, but they don't use the xen frame buffer frontend. For this case it doesn't make much sense for INPUT_XEN_KBDDEV_FRONTEND to depend on XEN_FBDEV_FRONTEND. The opposite direction always makes more sense, i.e. if you're using xenfb, then you'll want xenkbd. Switch the dependencies.
--- drivers/input/misc/Kconfig | 2 +- drivers/video/Kconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/input/misc/Kconfig +1 -1
@@ -533,7 +533,7 @@ config INPUT_CMA3000_I2C config INPUT_XEN_KBDDEV_FRONTEND tristate "Xen virtual keyboard and mouse support" - depends on XEN_FBDEV_FRONTEND + depends on XEN default y select XEN_XENBUS_FRONTEND help
drivers/video/Kconfig +1 -1
@@ -2263,7 +2263,7 @@ config FB_VIRTUAL config XEN_FBDEV_FRONTEND tristate "Xen virtual frame buffer support" - depends on FB && XEN + depends on FB && XEN && INPUT_XEN_KBDDEV_FRONTEND select FB_SYS_FILLRECT select FB_SYS_COPYAREA select FB_SYS_IMAGEBLIT
Signature · 1 line
1.7.7.5
Re: [Xen-devel] [PATCH 2/4 v2] xen kconfig: relax INPUT_XEN_KBDDEV_FRONTEND deps
Quoted 2 lines · Andrew Jones
PV-on-HVM guests may want to use the xen keyboard/mouse frontend, but they don't use the xen frame buffer frontend. For this case it doesn't
Ok, but PV does?
Quoted 3 lines
make much sense for
INPUT_XEN_KBDDEV_FRONTENDto depend onXEN_FBDEV_FRONTEND. The opposite direction always makes more sense, i.e. if you're using xenfb, then you'll want xenkbd. Switch the dependencies.
That sounds like it would be universal irregardless if it is PV or PVonHVM?
Quoted 41 lines
Signed-off-by Andrew Jones <[email protected]>--- drivers/input/misc/Kconfig | 2 +- drivers/video/Kconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)drivers/input/misc/Kconfig +1
-1@@ -533,7 +533,7 @@ config INPUT_CMA3000_I2C config INPUT_XEN_KBDDEV_FRONTEND tristate "Xen virtual keyboard and mouse support" - depends on XEN_FBDEV_FRONTEND + depends on XEN default y select XEN_XENBUS_FRONTEND helpdrivers/video/Kconfig +1
-1@@ -2263,7 +2263,7 @@ config FB_VIRTUAL config XEN_FBDEV_FRONTEND tristate "Xen virtual frame buffer support" - depends on FB && XEN + depends on FB && XEN && INPUT_XEN_KBDDEV_FRONTEND select FB_SYS_FILLRECT select FB_SYS_COPYAREA select FB_SYS_IMAGEBLITSignature · 7 lines
1.7.7.5 _______________________________________________ Xen-devel mailing list [email protected] http://lists.xensource.com/xen-devel
Re: [Xen-devel] [PATCH 2/4 v2] xen kconfig: relax INPUT_XEN_KBDDEV_FRONTEND deps
----- Original Message -----
Quoted 7 lines · Andrew Jones
Quoted 4 lines
PV-on-HVM guests may want to use the xen keyboard/mouse frontend, but
they don't use the xen frame buffer frontend. For this case it doesn'tOk, but PV does?
Quoted 8 lines
Quoted 5 lines
make much sense for
INPUT_XEN_KBDDEV_FRONTENDto depend onXEN_FBDEV_FRONTEND. The opposite direction always makes more sense, i.e.
if you're using xenfb, then you'll want xenkbd. Switch the dependencies.That sounds like it would be universal irregardless if it is PV or PVonHVM?
This patch makes it such that if you want to use both, then you must select both. It also says that if you want FB, then you need the KBD. However, if you only want the KBD then you're fine with just that. So there isn't any risk of breaking configs designed to use FB, because FB should be manually selected for those configs anyway.
Drew
Quoted 43 lines
Quoted 42 lines
Signed-off-by Andrew Jones <[email protected]>--- drivers/input/misc/Kconfig | 2 +- drivers/video/Kconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)drivers/input/misc/Kconfig +1
-1@@ -533,7 +533,7 @@ config INPUT_CMA3000_I2C config INPUT_XEN_KBDDEV_FRONTEND tristate "Xen virtual keyboard and mouse support" - depends on XEN_FBDEV_FRONTEND + depends on XEN default y select XEN_XENBUS_FRONTEND helpdrivers/video/Kconfig +1
-2@@ -2263,7 +2263,7 @@ config FB_VIRTUAL config XEN_FBDEV_FRONTEND tristate "Xen virtual frame buffer support" - depends on FB && XEN + depends on FB && XEN && INPUT_XEN_KBDDEV_FRONTEND select FB_SYS_FILLRECT select FB_SYS_COPYAREA select FB_SYS_IMAGEBLIT --1.7.7.5
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Re: [Xen-devel] [PATCH 2/4 v2] xen kconfig: relax INPUT_XEN_KBDDEV_FRONTEND deps
Quoted 16 lines · Andrew Jones
----- Original Message -----
Quoted 13 lines · Andrew Jones
Quoted 4 lines
PV-on-HVM guests may want to use the xen keyboard/mouse frontend, but
they don't use the xen frame buffer frontend. For this case it doesn'tOk, but PV does?
Quoted 5 lines
make much sense for
INPUT_XEN_KBDDEV_FRONTENDto depend onXEN_FBDEV_FRONTEND. The opposite direction always makes more sense, i.e.
if you're using xenfb, then you'll want xenkbd. Switch the dependencies.
Quoted 8 lines
Quoted 2 lines
That sounds like it would be universal irregardless if it is PV or PVonHVM?
This patch makes it such that if you want to use both, then you must select both. It also says that if you want FB, then you need the KBD. However, if you only want the KBD then you're fine with just that. So there isn't any risk of breaking configs designed to use FB, because FB should be manually selected for those configs anyway.
Dmitry,
I am OK with this patch. Should I pick it up on my tree for 3.4 or are you OK doing it via your tree?
Thanks!
Quoted 46 lines
Drew
Quoted 43 lines
Quoted 42 lines
Signed-off-by Andrew Jones <[email protected]>--- drivers/input/misc/Kconfig | 2 +- drivers/video/Kconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)drivers/input/misc/Kconfig +1
-1@@ -533,7 +533,7 @@ config INPUT_CMA3000_I2C config INPUT_XEN_KBDDEV_FRONTEND tristate "Xen virtual keyboard and mouse support" - depends on XEN_FBDEV_FRONTEND + depends on XEN default y select XEN_XENBUS_FRONTEND helpdrivers/video/Kconfig +1
-2@@ -2263,7 +2263,7 @@ config FB_VIRTUAL config XEN_FBDEV_FRONTEND tristate "Xen virtual frame buffer support" - depends on FB && XEN + depends on FB && XEN && INPUT_XEN_KBDDEV_FRONTEND select FB_SYS_FILLRECT select FB_SYS_COPYAREA select FB_SYS_IMAGEBLIT --1.7.7.5
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Dmitry Torokhov
maintainerRe: [Xen-devel] [PATCH 2/4 v2] xen kconfig: relax INPUT_XEN_KBDDEV_FRONTEND deps
Quoted 26 lines · Konrad Rzeszutek Wilk
Quoted 16 lines · Andrew Jones
----- Original Message -----
Quoted 13 lines · Andrew Jones
Quoted 4 lines
PV-on-HVM guests may want to use the xen keyboard/mouse frontend, but
they don't use the xen frame buffer frontend. For this case it doesn'tOk, but PV does?
Quoted 5 lines
make much sense for
INPUT_XEN_KBDDEV_FRONTENDto depend onXEN_FBDEV_FRONTEND. The opposite direction always makes more sense, i.e.
if you're using xenfb, then you'll want xenkbd. Switch the dependencies.Quoted 8 lines
Quoted 2 lines
That sounds like it would be universal irregardless if it is PV or PVonHVM?
This patch makes it such that if you want to use both, then you must select both. It also says that if you want FB, then you need the KBD. However, if you only want the KBD then you're fine with just that. So there isn't any risk of breaking configs designed to use FB, because FB should be manually selected for those configs anyway.
Quoted 4 lines
Dmitry,
I am OK with this patch. Should I pick it up on my tree for 3.4 or are you OK doing it via your tree?
Konrad,
I don't have a good copy of the patch so it you could pick it up that would be great.
Thanks.
Signature · 1 line
Dmitry
Re: [Xen-devel] [PATCH 2/4 v2] xen kconfig: relax INPUT_XEN_KBDDEV_FRONTEND deps
Quoted 29 lines · Dmitry Torokhov
Quoted 28 lines · Konrad Rzeszutek Wilk
Quoted 16 lines · Andrew Jones
----- Original Message -----
Quoted 13 lines · Andrew Jones
Quoted 4 lines
PV-on-HVM guests may want to use the xen keyboard/mouse frontend, but
they don't use the xen frame buffer frontend. For this case it doesn'tOk, but PV does?
Quoted 5 lines
make much sense for
INPUT_XEN_KBDDEV_FRONTENDto depend onXEN_FBDEV_FRONTEND. The opposite direction always makes more sense, i.e.
if you're using xenfb, then you'll want xenkbd. Switch the dependencies.Quoted 8 lines
Quoted 2 lines
That sounds like it would be universal irregardless if it is PV or PVonHVM?
This patch makes it such that if you want to use both, then you must select both. It also says that if you want FB, then you need the KBD. However, if you only want the KBD then you're fine with just that. So there isn't any risk of breaking configs designed to use FB, because FB should be manually selected for those configs anyway.
Dmitry,
Quoted 7 lines
Quoted 2 lines
I am OK with this patch. Should I pick it up on my tree for 3.4 or are you OK doing it via your tree?
Konrad,
I don't have a good copy of the patch so it you could pick it up that would be great.
OK, will stick you Ack on it. Thx!
Quoted 10 lines
Thanks.
Signature · 6 lines
Dmitry _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
Dmitry Torokhov
maintainerRe: [Xen-devel] [PATCH 2/4] xen kconfig: relax INPUT_XEN_KBDDEV_FRONTEND deps
In reply to Andrew JonesHi Andrew,
Quoted 53 lines · Andrew Jones
----- Original Message -----
Quoted 14 lines · Andrew Jones
Quoted 9 lines
PV-on-HVM guests may want to use the xen keyboard/mouse frontend, but
they don't use the xen frame buffer frontend. For this case it doesn't
make much sense forINPUT_XEN_KBDDEV_FRONTENDto depend onXEN_FBDEV_FRONTEND. The opposite direction always makes more sense, i.e.
if you're using xenfb, then you'll want xenkbd. Switch the dependencies.You need to CC as well these people that have 'maintainer' field on them:
Quoted 17 lines
konrad@phenom:~/work/linux$ scripts/get_maintainer.pl -f drivers/video/Kconfig Florian Tobias Schandinat <[email protected]> (maintainer:FRAMEBUFFER LAYER) [email protected] (open list:FRAMEBUFFER LAYER) [email protected] (open list) konrad@phenom:~/work/linux$ scripts/get_maintainer.pl -f drivers/input/misc/Kconfig Dmitry Torokhov <[email protected]> (maintainer:INPUT (KEYBOARD,...,commit_signer:9/16=56%) Samuel Ortiz <[email protected]> (commit_signer:3/16=19%) Anirudh Ghayal <[email protected]> (commit_signer:2/16=12%) Peter Ujfalusi <[email protected]> (commit_signer:2/16=12%) Alan Cox <[email protected]> (commit_signer:2/16=12%) [email protected] (open list:INPUT (KEYBOARD,...) [email protected] (open list)Thanks. Replied with them in CC.
Drew
Quoted 14 lines
Quoted 14 lines
Signed-off-by Andrew Jones <[email protected]>--- drivers/input/misc/Kconfig | 2 +- drivers/video/Kconfig | 1 + 2 files changed, 2 insertions(+), 1 deletions(-)drivers/input/misc/Kconfig +0
-0@@ -533,7 +533,7 @@ config INPUT_CMA3000_I2C
Quoted 4 lines
Quoted 4 lines
drivers/input/misc/Kconfig config INPUT_CMA3000_I2C · line 536
Quoted 4 lines
drivers/input/misc/Kconfig +1
-1config INPUT_XEN_KBDDEV_FRONTEND tristate "Xen virtual keyboard and mouse support" - depends on XEN_FBDEV_FRONTEND + depends on XEN
This is OK with me.
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
drivers/input/misc/Kconfig +0
-0default y select XEN_XENBUS_FRONTEND helpdrivers/video/Kconfig +0
-0
Quoted 8 lines
Quoted 8 lines
drivers/video/Kconfig config XEN_FBDEV_FRONTEND · line 2272
Quoted 8 lines
index d83e967..269b299 100644
drivers/video/Kconfig +1
-0@@ -2269,6 +2269,7 @@ config XEN_FBDEV_FRONTEND select FB_SYS_IMAGEBLIT select FB_SYS_FOPS select FB_DEFERRED_IO + select INPUT_XEN_KBDDEV_FRONTEND
But here you need to either depend on or select INPUT as select does not resolve dependencies for selected symbol.
Thanks.
Signature · 1 line
Dmitry
Re: [PATCH 2/4] xen kconfig: relax INPUT_XEN_KBDDEV_FRONTEND deps
In reply to Andrew JonesQuoted 5 lines · Andrew Jones
PV-on-HVM guests may want to use the xen keyboard/mouse frontend, but they don't use the xen frame buffer frontend. For this case it doesn't make much sense for
INPUT_XEN_KBDDEV_FRONTENDto depend onXEN_FBDEV_FRONTEND. The opposite direction always makes more sense, i.e. if you're using xenfb, then you'll want xenkbd. Switch the dependencies.
This looks OK. Let me test this out to see if there is any silly fallout.
Quoted 34 lines
Signed-off-by Andrew Jones <[email protected]>--- drivers/input/misc/Kconfig | 2 +- drivers/video/Kconfig | 1 + 2 files changed, 2 insertions(+), 1 deletions(-)drivers/input/misc/Kconfig +1
-1@@ -533,7 +533,7 @@ config INPUT_CMA3000_I2C config INPUT_XEN_KBDDEV_FRONTEND tristate "Xen virtual keyboard and mouse support" - depends on XEN_FBDEV_FRONTEND + depends on XEN default y select XEN_XENBUS_FRONTEND helpdrivers/video/Kconfig +1
-0@@ -2269,6 +2269,7 @@ config XEN_FBDEV_FRONTEND select FB_SYS_IMAGEBLIT select FB_SYS_FOPS select FB_DEFERRED_IO + select INPUT_XEN_KBDDEV_FRONTEND select XEN_XENBUS_FRONTEND default y helpSignature · 1 line
1.7.7.5
PATCH 3/4 xen kconfig: add dom0 support help text
In reply to Andrew JonesDescribe dom0 support in the config menu and supply help text for it.
--- arch/x86/xen/Kconfig | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)
arch/x86/xen/Kconfig +6 -1
@@ -14,9 +14,14 @@ config XEN Xen hypervisor. config XEN_DOM0 - def_bool y + bool "Xen Initial Domain (Dom0) support" + default y depends on XEN && PCI_XEN && SWIOTLB_XEN depends on X86_LOCAL_APIC && X86_IO_APIC && ACPI && PCI + help + This allows the kernel to be used for the initial Xen domain, + Domain0. This is a privileged guest that supplies backends + and is used to manage the other Xen domains. # Dummy symbol since people have come to rely on the PRIVILEGED_GUEST # name in tools.
Signature · 1 line
1.7.7.5
PATCH v2 3/4 xen kconfig: add dom0 support help text
Describe dom0 support in the config menu and supply help text for it.
v2 adds 'if EXPERT' to keep it out of the "standard" menu.
--- arch/x86/xen/Kconfig | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)
arch/x86/xen/Kconfig +6 -1
@@ -14,9 +14,14 @@ config XEN Xen hypervisor. config XEN_DOM0 - def_bool y + bool "Xen Initial Domain (Dom0) support" if EXPERT + default y depends on XEN && PCI_XEN && SWIOTLB_XEN depends on X86_LOCAL_APIC && X86_IO_APIC && ACPI && PCI + help + This allows the kernel to be used for the initial Xen domain, + Domain0. This is a privileged guest that supplies backends + and is used to manage the other Xen domains. # Dummy symbol since people have come to rely on the PRIVILEGED_GUEST # name in tools.
Signature · 1 line
1.7.7.5
Re: [Xen-devel] [PATCH 3/4 v2] xen kconfig: add dom0 support help text
----- Original Message -----
Quoted 29 lines
Describe dom0 support in the config menu and supply help text for it.
v2 adds 'if EXPERT' to keep it out of the "standard" menu.
Signed-off-by Andrew Jones <[email protected]>--- arch/x86/xen/Kconfig | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)arch/x86/xen/Kconfig +6
-1@@ -14,9 +14,14 @@ config XEN Xen hypervisor. config XEN_DOM0 - def_bool y + bool "Xen Initial Domain (Dom0) support" if EXPERT + default y depends on XEN && PCI_XEN && SWIOTLB_XEN depends on X86_LOCAL_APIC && X86_IO_APIC && ACPI && PCI + help + This allows the kernel to be used for the initial Xen domain, + Domain0. This is a privileged guest that supplies backends + and is used to manage the other Xen domains. # Dummy symbol since people have come to rely on the PRIVILEGED_GUEST
Quoted 3 lines
# name in tools. -- 1.7.7.5
There's currently an issue using EXPERT. It doesn't make this patch wrong, but any users that would want to turn EXPERT on, in order to turn DOM0 off, would find that their configs have gotten twisted in other ways as well. I've posted a patch for EXPERT, and if it gets merged, then I really can't see any good arguments against this patch.
Drew
Re: [PATCH 3/4] xen kconfig: add dom0 support help text
In reply to Andrew JonesQuoted 1 line · Andrew Jones
Describe dom0 support in the config menu and supply help text for it.
So I had this reply in my draft and forgot to send it. Sorry about that.
My understanding from the converstion was that we try to "squash" the XEN_DOM0 option so that it would not be present. But that did not work as it lead to a string of X86_LOCAL_APIC, X86_IO_ACPI, ACPI, PCI, and so on. Then the .h with #define XEN_something based on those symbols, but that is not the job of a header file. It is the job of Kconfig.
The other way was to squash this in with the backend support. Since we are moving away from having one initial domain, to having multitple "initial domains" (priviliged domains) where each can server as a backend. However (quoting Jeremy) "it is more of disaggregating the privilege to reduce the amount concentrated in any one part. Backends don't need any more privilege than to be able to access the specific device(s) they're being the backend for."
Interestingly, that means DOM0 is kind of .. well, it should be no different from a normal HVM guest. The old-style PV dom0 remains would be ..well, almost nothing. The Xen MMU, and Xen SWIOTLB - those are the ones that pop in mind for Dom0, but they are also used for PV PCI. In fact, all (I think?) of the CONFIG_XEN_DOM0 functionality can be _used_ in a PV guest. The 'if (initial_xen_domain()' should probably be addressed first and to figure which one of those can be altered as the "backend domain" can run both frontend and backend drivers (oh joy!). So more relaxing those config options and/or "if (xen..)".
Anyhow, back to the HVM dom0 - that is in the future - and it is going to take a couple of years to get it. I would rather not shoot my foot by removing these CONFIG_* option until we get a better grasp of how we want to deal with the PV hybrid.
What I am saying is that I don't know what the right answer is, but I don't believe the patch below is it. I wish I had a better answer in terms of "do this instead", but none of those worked.
Perhaps we can brainstorm some of this at XenSummit by which time I hope Mukesh's PV hybrid work will be completed and a lot of the work on the toolstack for backend drivers will be laid out.
Quoted 28 lines
Signed-off-by Andrew Jones <[email protected]>--- arch/x86/xen/Kconfig | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)arch/x86/xen/Kconfig +6
-1@@ -14,9 +14,14 @@ config XEN Xen hypervisor. config XEN_DOM0 - def_bool y + bool "Xen Initial Domain (Dom0) support" + default y depends on XEN && PCI_XEN && SWIOTLB_XEN depends on X86_LOCAL_APIC && X86_IO_APIC && ACPI && PCI + help + This allows the kernel to be used for the initial Xen domain, + Domain0. This is a privileged guest that supplies backends + and is used to manage the other Xen domains. # Dummy symbol since people have come to rely on the PRIVILEGED_GUEST # name in tools.Signature · 1 line
1.7.7.5
PATCH 4/4 xen kconfig: describe xen tmem in the config menu
In reply to Andrew JonesAdd a description to the config menu for xen tmem.
--- drivers/xen/Kconfig | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/xen/Kconfig +1 -1
@@ -143,7 +143,7 @@ config SWIOTLB_XEN select SWIOTLB config XEN_TMEM - bool + bool "Xen Transcendent Memory (tmem)" default y if (CLEANCACHE || FRONTSWAP) help Shim to interface in-kernel Transcendent Memory hooks
Signature · 1 line
1.7.7.5
Re: [PATCH 4/4] xen kconfig: describe xen tmem in the config menu
Quoted 1 line · Andrew Jones
Add a description to the config menu for xen tmem.
I am not sure what this patch gets us. If this is to minimize the size of the module - so say it gets loaded, but tmem-enabled is not set nor cleancache and we just have it consuming memory - we can do it via returning -ENODEV on the module load.
Like this (completley untested nor compiled tested):
From 45b49b5d565c52e4396dae036ddb4f4094d914ec Mon Sep 17 00:00:00 2001
From: Konrad Rzeszutek Wilk <[email protected]>
Date: Mon, 23 Jan 2012 13:32:17 -0500
Subject: [PATCH] xen/tmem: Return -ENODEV if the backends are not registered.
.. otherwise the driver might still reside in the memory consuming memory (that is the theory at least).
--- drivers/xen/tmem.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-)
drivers/xen/tmem.c +6 -2
@@ -377,8 +377,10 @@ static struct frontswap_ops tmem_frontswap_ops = {static int __init xen_tmem_init (void ) { +bool loaded = false; +if (!xen_domain ()) -return 0 ; +return -ENODEV ;#ifdef CONFIG_FRONTSWAP if (tmem_enabled && use_frontswap) {char *s ="" ;
@@ -390,6 +392,7 @@ static int __init xen_tmem_init(void) s =" (WARNING: frontswap_ops overridden)" ;printk (KERN_INFO "frontswap enabled, RAM provided by " "Xen Transcendent Memory\n" ); + loaded = true; }#endif #ifdef CONFIG_CLEANCACHE
@@ -402,9 +405,10 @@ static int __init xen_tmem_init(void) s =" (WARNING: cleancache_ops overridden)" ;printk (KERN_INFO "cleancache enabled, RAM provided by " "Xen Transcendent Memory%s\n" , s); + loaded = true; }#endif -return 0 ; +return loaded ?0 : -ENODEV ; }module_init (xen_tmem_init)
Signature · 1 line
1.7.7.5
Quoted 21 lines
Signed-off-by Andrew Jones <[email protected]>--- drivers/xen/Kconfig | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/xen/Kconfig +1
-1@@ -143,7 +143,7 @@ config SWIOTLB_XEN select SWIOTLB config XEN_TMEM - bool + bool "Xen Transcendent Memory (tmem)" default y if (CLEANCACHE || FRONTSWAP) help Shim to interface in-kernel Transcendent Memory hooksSignature · 1 line
1.7.7.5
Re: [PATCH 4/4] xen kconfig: describe xen tmem in the config menu
Quoted 7 lines · Konrad Rzeszutek Wilk
Quoted 1 line · Andrew Jones
Add a description to the config menu for xen tmem.
I am not sure what this patch gets us. If this is to minimize the size of the module - so say it gets loaded, but tmem-enabled is not set nor cleancache and we just have it consuming memory - we can do it via returning
-ENODEVon the module load.
But why compile in something that one may never use? At least with this patch I'll have a choice to turn it off if I don't need it.
For example when I build hardened kernel, I'd like to turn of all unnecessary features for a particular config (i.e. reduce attack surface as much as possible).
Signature · 2 lines
Thanks, Igor
Re: [Xen-devel] [PATCH 4/4] xen kconfig: describe xen tmem in the config menu
Quoted 11 lines · Igor Mammedov
Quoted 7 lines · Konrad Rzeszutek Wilk
Quoted 1 line · Andrew Jones
Add a description to the config menu for xen tmem.
I am not sure what this patch gets us. If this is to minimize the size of the module - so say it gets loaded, but tmem-enabled is not set nor cleancache and we just have it consuming memory - we can do it via returning
-ENODEVon the module load.But why compile in something that one may never use? At least with this patch I'll have a choice to turn it off if I don't need it.
Then this patch is misleading. It should state at the start what its purpose is. It sounds like adding the description is just a way for the real purpose of this patch - which is to disable tmem.
Quoted 2 lines
For example when I build hardened kernel, I'd like to turn of all unnecessary features for a particular config (i.e. reduce attack surface as much as possible).
The 'tmem' gets turned off if you disable cleancache. Can't you just disable cleancache in your hardened config?
Re: [Xen-devel] [PATCH 4/4] xen kconfig: describe xen tmem in the config menu
In reply to Konrad Rzeszutek WilkQuoted 7 lines · Konrad Rzeszutek Wilk
Quoted 1 line · Andrew Jones
Add a description to the config menu for xen tmem.
I am not sure what this patch gets us. If this is to minimize the size of the module - so say it gets loaded, but tmem-enabled is not set nor cleancache and we just have it consuming memory - we can do it via returning
-ENODEVon the module load.
But why compile in something that one may never use? At least with this patch I'll have a choice to turn it off if I don't need it.
For example when I build hardened kernel, I'd like to turn of all unnecessary features for a particular config (i.e. reduce attack surface as much as possible).
Signature · 2 lines
Thanks, Igor