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
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 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 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.
This turns a non-user visible symbol into a user visible one. Previously if Xen was enabled and the other prerequisites were met you would get dom0 support automatically -- do we really want to change that? According to 6b0661a5e6fbf it was a deliberate decision to have it this way.
BTW, you forgot a Signed-off-by and the appropriate CCs (please use MAINTAINERS or ./scripts/get-maintainer.pl).
Ian.
Quoted 24 lines
--- 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.
Re: [PATCH 3/4] xen kconfig: add dom0 support help text
----- Original Message -----
Quoted 11 lines · Andrew Jones
Quoted 2 lines
Describe dom0 support in the config menu and supply help text for it.
This turns a non-user visible symbol into a user visible one. Previously
if Xen was enabled and the other prerequisites were met you would get dom0 support automatically -- do we really want to change that? According to6b0661a5e6fbfit was a deliberate decision to have it this
way.
I think it's a necessary evil in order to give users the ability to compile kernels without the support. I know it doesn't make much sense for most users, but...
Quoted 4 lines
BTW, you forgot a Signed-off-by and the appropriate CCs (please use
MAINTAINERSor./scripts/get-maintainer.pl).
Sorry, I'll resend properly.
Drew
Quoted 30 lines
Ian.
Quoted 25 lines
--- 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.
Re: [Xen-devel] [PATCH 3/4] xen kconfig: add dom0 support help text
Quoted 14 lines · Andrew Jones
----- Original Message -----
Quoted 11 lines · Andrew Jones
Quoted 2 lines
Describe dom0 support in the config menu and supply help text for it.
This turns a non-user visible symbol into a user visible one. Previously
if Xen was enabled and the other prerequisites were met you would get dom0 support automatically -- do we really want to change that? According to6b0661a5e6fbfit was a deliberate decision to have it this
way.
Quoted 3 lines
I think it's a necessary evil in order to give users the ability to compile kernels without the support. I know it doesn't make much sense for most users, but...
Who actually wants to do this though and why? Do you have a bug report requesting this change?
Almost all of the things which dom0 needs (e.g. PCI device management etc) is also required by a domU with passthrough enabled so the savings are really very slight.
We are talking less than 1k of code AFAICT, 319 bytes for arch/x86/xen/vga.o and 573 for drivers/xen/xenfs/xenstored.o plus whatever xen_register_gsi (a couple of dozen lines of code) adds to arch/x86/pci/xen.o. grep doesn't show CONFIG_XEN_DOM0 being used anywhere else. What savings do you see in practice from disabling just this symbol?
We need to weigh up the size change against the complexity of asking the user yet another question, I'm not convinced the question is worth it on balance.
Quoted 6 lines
Quoted 4 lines
BTW, you forgot a Signed-off-by and the appropriate CCs (please use
MAINTAINERSor./scripts/get-maintainer.pl).Sorry, I'll resend properly.
I've added those CC's to this reply too.
Ian.
Quoted 33 lines
Drew
Quoted 30 lines
Ian.
Quoted 25 lines
--- 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.
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.
ack
Quoted 39 lines
--- 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: [Xen-devel] [PATCH 3/4] xen kconfig: add dom0 support help text
In reply to Ian CampbellQuoted 33 lines · Ian Campbell
Quoted 14 lines · Andrew Jones
----- Original Message -----
Quoted 11 lines · Andrew Jones
Quoted 2 lines
Describe dom0 support in the config menu and supply help text for it.
This turns a non-user visible symbol into a user visible one. Previously
if Xen was enabled and the other prerequisites were met you would get dom0 support automatically -- do we really want to change that? According to6b0661a5e6fbfit was a deliberate decision to have it this
way.Quoted 3 lines
I think it's a necessary evil in order to give users the ability to compile kernels without the support. I know it doesn't make much sense for most users, but...
Who actually wants to do this though and why? Do you have a bug report requesting this change?
Almost all of the things which dom0 needs (e.g. PCI device management etc) is also required by a domU with passthrough enabled so the savings are really very slight.
We are talking less than 1k of code AFAICT, 319 bytes for
arch/x86/xen/vga.oand 573 fordrivers/xen/xenfs/xenstored.oplus whateverxen_register_gsi(a couple of dozen lines of code) adds toarch/x86/pci/xen.o. grep doesn't showCONFIG_XEN_DOM0being used anywhere else. What savings do you see in practice from disabling just this symbol?
Quoted 3 lines
We need to weigh up the size change against the complexity of asking the user yet another question, I'm not convinced the question is worth it on balance.
I agree, there is nothing to gain disabling dom0 support if the conditions it depends upon are already met.XEN_DOM0 was meant to be a silent option since the beginning to avoid unnecessary complexity.
Re: [PATCH 2/4] xen kconfig: relax INPUT_XEN_KBDDEV_FRONTEND deps
In reply to Stefano StabelliniQuoted 8 lines · Stefano Stabellini
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.ack
I meant to ack the version you sent with a signed-off-by line
Re: [PATCH 3/4] xen kconfig: add dom0 support help text
In reply to Ian Campbell----- Original Message -----
Quoted 18 lines · Andrew Jones
Quoted 17 lines
----- Original Message -----
Quoted 14 lines · Andrew Jones
Quoted 3 lines
Describe dom0 support in the config menu and supply help text for
it.This turns a non-user visible symbol into a user visible one. Previously
if Xen was enabled and the other prerequisites were met you would get
dom0 support automatically -- do we really want to change that? According to6b0661a5e6fbfit was a deliberate decision to have it
this
way.
Quoted 9 lines
Quoted 4 lines
I think it's a necessary evil in order to give users the ability to compile kernels without the support. I know it doesn't make much sense
for most users, but...Who actually wants to do this though and why? Do you have a bug report
requesting this change?
No bug for it. I'll explain the motivation below.
Quoted 5 lines
Almost all of the things which dom0 needs (e.g. PCI device management etc) is also required by a domU with passthrough enabled so the savings
are really very slight.
Quoted 7 lines
We are talking less than 1k of code AFAICT, 319 bytes for
arch/x86/xen/vga.oand 573 fordrivers/xen/xenfs/xenstored.oplus whateverxen_register_gsi(a couple of dozen lines of code) adds toarch/x86/pci/xen.o. grep doesn't showCONFIG_XEN_DOM0being used anywhere else. What savings do you see in practice from disabling just
this symbol?
I completely agree that the saving are near none. The savings, however, aren't the only reason to drive the change. It's actually the symbol name itself. Unfortunately configs can be perceived as a contract of support, i.e. if feature xyz is enabled in the distro's config, then the distributor must have selected, and therefore will support, said feature.
I didn't make this motivation clear in my initial post, because I was hoping to spare people some eye rolling.
Quoted 7 lines
We need to weigh up the size change against the complexity of asking the
user yet another question, I'm not convinced the question is worth it on
balance.
Tons of questions aren't much fun to wade through, but I guess I'm generally for a config menu complexity that is proportional to (and controls) the kernel complexity.
Drew
Quoted 49 lines
Quoted 7 lines
Quoted 5 lines
BTW, you forgot a Signed-off-by and the appropriate CCs (please use
MAINTAINERSor./scripts/get-maintainer.pl).Sorry, I'll resend properly.
I've added those CC's to this reply too.
Ian.
Quoted 34 lines
Drew
Quoted 31 lines
Ian.
Quoted 26 lines
--- 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.
Re: [Xen-devel] [PATCH 3/4] xen kconfig: add dom0 support help text
Quoted 20 lines · Andrew Jones
Quoted 5 lines
Almost all of the things which dom0 needs (e.g. PCI device management etc) is also required by a domU with passthrough enabled so the savings
are really very slight.Quoted 7 lines
We are talking less than 1k of code AFAICT, 319 bytes for
arch/x86/xen/vga.oand 573 fordrivers/xen/xenfs/xenstored.oplus whateverxen_register_gsi(a couple of dozen lines of code) adds toarch/x86/pci/xen.o. grep doesn't showCONFIG_XEN_DOM0being used anywhere else. What savings do you see in practice from disabling just
this symbol?I completely agree that the saving are near none. The savings, however, aren't the only reason to drive the change. It's actually the symbol name itself. Unfortunately configs can be perceived as a contract of support, i.e. if feature xyz is enabled in the distro's config, then the distributor must have selected, and therefore will support, said feature.
Quoted 2 lines
I didn't make this motivation clear in my initial post, because I was hoping to spare people some eye rolling.
I thought that in the kernel community we make decisions based on technical merits rather than "contracts of support".
Given that disabling the symbol saves near to nothing, the logical thing to do is removing the symbol altogether.
Re: [PATCH 3/4] xen kconfig: add dom0 support help text
----- Original Message -----
Quoted 28 lines · Andrew Jones
Quoted 27 lines
Quoted 6 lines
Almost all of the things which dom0 needs (e.g. PCI device management
etc) is also required by a domU with passthrough enabled so the savings
are really very slight.Quoted 8 lines
We are talking less than 1k of code AFAICT, 319 bytes for
arch/x86/xen/vga.oand 573 fordrivers/xen/xenfs/xenstored.oplus whateverxen_register_gsi(a couple of dozen lines of code) adds toarch/x86/pci/xen.o. grep doesn't showCONFIG_XEN_DOM0being used anywhere else. What savings do you see in practice from disabling just
this symbol?I completely agree that the saving are near none. The savings, however,
aren't the only reason to drive the change. It's actually the symbol
name itself. Unfortunately configs can be perceived as a contract of
support, i.e. if feature xyz is enabled in the distro's config, then
the distributor must have selected, and therefore will support, said
feature.
Quoted 6 lines
Quoted 3 lines
I didn't make this motivation clear in my initial post, because I was
hoping to spare people some eye rolling.I thought that in the kernel community we make decisions based on technical merits rather than "contracts of support".
Sorry.
Quoted 4 lines
Given that disabling the symbol saves near to nothing, the logical thing
to do is removing the symbol altogether.
I thought of that too. If the symbol just goes away, then my non-technical requirement will be met and the functionality will stay. I consider that a bigger win actually. I didn't suggest it though, since I've never done any dom0 development, nor had any consideration for dom0 code needs of the future. With anti-credentials like that, I'd guess it'd be tougher for me to sell the need to remove it, than it is for me to just make it configurable.
Drew
Re: [Xen-devel] [PATCH 3/4] xen kconfig: add dom0 support help text
Quoted 43 lines · Andrew Jones
----- Original Message -----
Quoted 28 lines · Andrew Jones
Quoted 27 lines
Quoted 6 lines
Almost all of the things which dom0 needs (e.g. PCI device management
etc) is also required by a domU with passthrough enabled so the savings
are really very slight.Quoted 8 lines
We are talking less than 1k of code AFAICT, 319 bytes for
arch/x86/xen/vga.oand 573 fordrivers/xen/xenfs/xenstored.oplus whateverxen_register_gsi(a couple of dozen lines of code) adds toarch/x86/pci/xen.o. grep doesn't showCONFIG_XEN_DOM0being used anywhere else. What savings do you see in practice from disabling just
this symbol?I completely agree that the saving are near none. The savings, however,
aren't the only reason to drive the change. It's actually the symbol
name itself. Unfortunately configs can be perceived as a contract of
support, i.e. if feature xyz is enabled in the distro's config, then
the distributor must have selected, and therefore will support, said
feature.Quoted 6 lines
Quoted 3 lines
I didn't make this motivation clear in my initial post, because I was
hoping to spare people some eye rolling.I thought that in the kernel community we make decisions based on technical merits rather than "contracts of support".
Sorry.
Quoted 4 lines
Given that disabling the symbol saves near to nothing, the logical thing
to do is removing the symbol altogether.
Quoted 8 lines
I thought of that too. If the symbol just goes away, then my non-technical requirement will be met and the functionality will stay. I consider that a bigger win actually. I didn't suggest it though, since I've never done any dom0 development, nor had any consideration for dom0 code needs of the future. With anti-credentials like that, I'd guess it'd be tougher for me to sell the need to remove it, than it is for me to just make it configurable.
The reason to remove is easy: it is already a silent option and disabling it saves almost nothing.
I think that removing it should be easy enough but if you don't feel confident doing it, I can come up with a patch.
Re: [PATCH 3/4] xen kconfig: add dom0 support help text
----- Original Message -----
Quoted 62 lines · Andrew Jones
Quoted 51 lines
----- Original Message -----
Quoted 34 lines · Andrew Jones
Quoted 33 lines
Quoted 7 lines
Almost all of the things which dom0 needs (e.g. PCI device management
etc) is also required by a domU with passthrough enabled so the
savings
are really very slight.Quoted 12 lines
We are talking less than 1k of code AFAICT, 319 bytes for
arch/x86/xen/vga.oand 573 fordrivers/xen/xenfs/xenstored.oplus
whateverxen_register_gsi(a couple of dozen lines of code) adds
toarch/x86/pci/xen.o. grep doesn't showCONFIG_XEN_DOM0being used
anywhere else. What savings do you see in practice from disabling
just
this symbol?I completely agree that the saving are near none. The savings, however,
aren't the only reason to drive the change. It's actually the symbol
name itself. Unfortunately configs can be perceived as a contract
of
support, i.e. if feature xyz is enabled in the distro's config, then
the distributor must have selected, and therefore will support, said
feature.Quoted 7 lines
Quoted 4 lines
I didn't make this motivation clear in my initial post, because I
was
hoping to spare people some eye rolling.I thought that in the kernel community we make decisions based on technical merits rather than "contracts of support".
Sorry.
Quoted 5 lines
Given that disabling the symbol saves near to nothing, the logical
thing
to do is removing the symbol altogether.Quoted 9 lines
I thought of that too. If the symbol just goes away, then my non-technical requirement will be met and the functionality will stay. I consider that a bigger win actually. I didn't suggest it though, since I've never done any dom0 development, nor had any consideration for dom0 code needs of the future. With anti-credentials like that, I'd guess it'd be tougher for me to sell
the need to remove it, than it is for me to just make it configurable.
Quoted 5 lines
The reason to remove is easy: it is already a silent option and disabling it saves almost nothing.
I think that removing it should be easy enough but if you don't feel confident doing it, I can come up with a patch.
I'll write the patch. It's not the patch I thought would be hard to do (although I'll only be posting it compile tested, as I don't have an environment where I can test it set up). What I thought would be difficult is the justification. However, considering you're advocating it, I guess I'm good there too.
Drew
Re: [Xen-devel] [PATCH 3/4] xen kconfig: add dom0 support help text
Quoted 9 lines
Quoted 5 lines
The reason to remove is easy: it is already a silent option and disabling it saves almost nothing.
I think that removing it should be easy enough but if you don't feel confident doing it, I can come up with a patch.I'll write the patch. It's not the patch I thought would be hard to do (although I'll only be posting it compile tested, as I don't have an environment where I can test it set up). What I thought would
Um.. Fedora Core 16?
Quoted 2 lines
be difficult is the justification. However, considering you're advocating it, I guess I'm good there too.
We don't bite :-)