Skip to contentSkip to conversation

xen: remove XEN_PRIVILEGED_GUEST

PATCH Superseded Konrad Rzeszutek Wilk 5 participants 19 messages Feb 17, 2014 – Feb 28, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw
Quoted 4 lines · Paul Bolle

This patch removes the Kconfig symbol XEN_PRIVILEGED_GUEST which is used nowhere in the tree. We do know grub2 has a script that greps kernel configuration files for this symbol. It shouldn't do that. As

Please look in the grub git tree. They have fixed their code to not do this anymore. This should be reflected in the patch description.

Lastly please check which distro has this new grub version so that we know which distros won't be affected.

Thanks.

Quoted 12 lines

Linus summarized:
    This is a grub bug. It really is that simple. Treat it as one.

So there's no reason to not remove it, like we do with all unused Kconfig symbols.

[[email protected]: rewrote commit explanation.]

---
Tested with "git grep".

Quoted 7 lines

Michael's version can be found at https://lkml.org/lkml/2013/7/8/34 . (This is the same patch, with a rewritten explanation, and my S-o-b line.) The question whether this symbol can be removed was further discussed in https://lkml.org/lkml/2013/7/15/308 .

I don't think a bug was ever filed against grub2 regarding its way to check for Xen support. Should that be done first?

Had been done the moment I got Linus reply but instead of a bug it was on the mailing list.

Quoted 17 lines

arch/x86/xen/Kconfig | 5 -----

1 file changed, 5 deletions(-) 
arch/x86/xen/Kconfig +0 -0
index 01b9026..512219d 100644 
@@ -19,11 +19,6 @@ config XEN_DOM0 

depends on XEN && PCI_XEN && SWIOTLB_XEN depends on X86_LOCAL_APIC && X86_IO_APIC && ACPI && PCI

arch/x86/xen/Kconfig +0 -5
-# Dummy symbol since people have come to rely on the PRIVILEGED_GUEST 
-# name in tools. 
-config XEN_PRIVILEGED_GUEST 
- def_bool XEN_DOM0 
- 
Quoted 6 lines

config XEN_PVHVM
def_bool y
depends on XEN && PCI && X86_LOCAL_APIC

Signature · 1 line
1.8.5.3 

���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m���� ������?�I�

#1 lore raw
Quoted 3 lines · Konrad Rzeszutek Wilk

On Feb 16, 2014 3:07 PM, Paul Bolle <[email protected]> wrote:
Please look in the grub git tree. They have fixed their code to not do this anymore. This should be reflected in the patch description.

Thanks, I didn't know that. That turned out to be grub commit ec824e0f2a399ce2ab3a2e3353d372a236595059 ("Implement grub_file tool and use it to implement generating of config"), see
http://git.savannah.gnu.org/cgit/grub.git/commit/util/grub.d/20_linux_xen.in?id=ec824e0f2a399ce2ab3a2e3353d372a236595059

Quoted 2 lines

Lastly please check which distro has this new grub version so that we know which distros won't be affected.

No distro should be affected. See, the test that grub2 used to do was (edited for clarity):

    grep -qx "CONFIG_XEN_DOM0=y" "${config}" || grep -qx "CONFIG_XEN_PRIVILEGED_GUEST=y" "${config}"

But the Kconfig entry for XEN_PRIVILEGED_GUEST reads:
config XEN_PRIVILEGED_GUEST
def_bool XEN_DOM0

Ie, XEN_PRIVILEGED_GUEST is equal to XEN_DOM0 by definition, so the second part of that test is superfluous. (We discussed this last year. If lkml.org weren't down I'd provide a link.) Or am I misreading this Kconfig entry?

I hope to send a v2, with an updated commit explanation, in a few days.

Paul Bolle

#2 lore raw
Quoted 17 lines · Paul Bolle
Quoted 3 lines · Konrad Rzeszutek Wilk

On Feb 16, 2014 3:07 PM, Paul Bolle <[email protected]> wrote:
Please look in the grub git tree. They have fixed their code to not do this anymore. This should be reflected in the patch description.

Thanks, I didn't know that. That turned out to be grub commit ec824e0f2a399ce2ab3a2e3353d372a236595059 ("Implement grub_file tool and use it to implement generating of config"), see
http://git.savannah.gnu.org/cgit/grub.git/commit/util/grub.d/20_linux_xen.in?id=ec824e0f2a399ce2ab3a2e3353d372a236595059

Quoted 2 lines

Lastly please check which distro has this new grub version so that we know which distros won't be affected.

No distro should be affected. See, the test that grub2 used to do was (edited for clarity):

    grep -qx "CONFIG_XEN_DOM0=y" "${config}" || grep -qx "CONFIG_XEN_PRIVILEGED_GUEST=y" "${config}"
Quoted 8 lines

But the Kconfig entry for XEN_PRIVILEGED_GUEST reads:
config XEN_PRIVILEGED_GUEST
def_bool XEN_DOM0

Ie, XEN_PRIVILEGED_GUEST is equal to XEN_DOM0 by definition, so the second part of that test is superfluous. (We discussed this last year. If lkml.org weren't down I'd provide a link.) Or am I misreading this Kconfig entry?

Ah, forgot about the second test for 'XEN_DOM0'. Yes that should work.

Thanks!

Quoted 6 lines

I hope to send a v2, with an updated commit explanation, in a few days.

Paul Bolle

#3 lore raw
In reply to Paul Bolle
Quoted 17 lines · Paul Bolle
Quoted 3 lines · Konrad Rzeszutek Wilk

On Feb 16, 2014 3:07 PM, Paul Bolle <[email protected]> wrote:
Please look in the grub git tree. They have fixed their code to not do this anymore. This should be reflected in the patch description.

Thanks, I didn't know that. That turned out to be grub commit ec824e0f2a399ce2ab3a2e3353d372a236595059 ("Implement grub_file tool and use it to implement generating of config"), see
http://git.savannah.gnu.org/cgit/grub.git/commit/util/grub.d/20_linux_xen.in?id=ec824e0f2a399ce2ab3a2e3353d372a236595059

Quoted 2 lines

Lastly please check which distro has this new grub version so that we know which distros won't be affected.

No distro should be affected. See, the test that grub2 used to do was (edited for clarity):

    grep -qx "CONFIG_XEN_DOM0=y" "${config}" || grep -qx "CONFIG_XEN_PRIVILEGED_GUEST=y" "${config}"
Quoted 8 lines

But the Kconfig entry for XEN_PRIVILEGED_GUEST reads:
config XEN_PRIVILEGED_GUEST
def_bool XEN_DOM0

Ie, XEN_PRIVILEGED_GUEST is equal to XEN_DOM0 by definition, so the second part of that test is superfluous. (We discussed this last year. If lkml.org weren't down I'd provide a link.) Or am I misreading this Kconfig entry?

Ah, forgot about the second test for 'XEN_DOM0'. Yes that should work.

Thanks!

Quoted 6 lines

I hope to send a v2, with an updated commit explanation, in a few days.

Paul Bolle

#4 lore raw
Quoted 10 lines · Konrad Rzeszutek Wilk
Quoted 9 lines · Paul Bolle
Quoted 3 lines · Konrad Rzeszutek Wilk

On Feb 16, 2014 3:07 PM, Paul Bolle <[email protected]> wrote:
Please look in the grub git tree. They have fixed their code to not do this anymore. This should be reflected in the patch description.

Thanks, I didn't know that. That turned out to be grub commit ec824e0f2a399ce2ab3a2e3353d372a236595059 ("Implement grub_file tool and use it to implement generating of config"), see
http://git.savannah.gnu.org/cgit/grub.git/commit/util/grub.d/20_linux_xen.in?id=ec824e0f2a399ce2ab3a2e3353d372a236595059

And that commit was reverted a week later in grub commit
faf4a65e1e1ce1d822d251c1e4b53d96ec7faec5 ("Revert grub-file usage in
grub-mkconfig."), see
http://git.savannah.gnu.org/cgit/grub.git/commit/util/grub.d/20_linux_xen.in?id=faf4a65e1e1ce1d822d251c1e4b53d96ec7faec5 .

That commit has no explanation (other than its one line summary). So we're left guessing why this was done. Luckily, it doesn't matter here, because the test for CONFIG_XEN_PRIVILEGED_GUEST is superfluous.

Anyhow, I hope to submit a second version of this patch later this day.

Paul Bolle

#5 lore raw

PATCH v2 1/1 xen: remove XEN_PRIVILEGED_GUEST

This patch removes the Kconfig symbol XEN_PRIVILEGED_GUEST which is used nowhere in the tree.

We do know grub2 has a script that greps kernel configuration files for its macro. It shouldn't do that. As Linus summarized:
This is a grub bug. It really is that simple. Treat it as one.

Besides, grub2's grepping for that macro is actually superfluous. See, that script currently contains this test (simplified):

    grep -x CONFIG_XEN_DOM0=y $config || grep -x CONFIG_XEN_PRIVILEGED_GUEST=y $config

But since XEN_DOM0 and XEN_PRIVILEGED_GUEST are by definition equal, removing XEN_PRIVILEGED_GUEST cannot influence this test.

So there's no reason to not remove this symbol, like we do with all unused Kconfig symbols.

[[email protected]: rewrote commit explanation.]

---
v2: added a few lines to the commit explanation to show grub2's test for this symbol is superfluous anyway. Still only git "grep tested".

 arch/x86/xen/Kconfig | 5 -----
 1 file changed, 5 deletions(-)
arch/x86/xen/Kconfig +0 -5
index 01b9026..512219d 100644
@@ -19,11 +19,6 @@ config XEN_DOM0
 	depends on XEN && PCI_XEN && SWIOTLB_XEN
 	depends on X86_LOCAL_APIC && X86_IO_APIC && ACPI && PCI
 
-# Dummy symbol since people have come to rely on the PRIVILEGED_GUEST
-# name in tools.
-config XEN_PRIVILEGED_GUEST
-	def_bool XEN_DOM0
-
 config XEN_PVHVM
 	def_bool y
 	depends on XEN && PCI && X86_LOCAL_APIC
Signature · 1 line
1.8.5.3
#6 lore raw

Here I should have added:

From: Michael Opdenacker <[email protected]>

in order for Michael to show up as author of the patch.

Quoted 14 lines · Paul Bolle

This patch removes the Kconfig symbol XEN_PRIVILEGED_GUEST which is used nowhere in the tree.

We do know grub2 has a script that greps kernel configuration files for its macro. It shouldn't do that. As Linus summarized:
This is a grub bug. It really is that simple. Treat it as one.

Besides, grub2's grepping for that macro is actually superfluous. See, that script currently contains this test (simplified):

    grep -x CONFIG_XEN_DOM0=y $config || grep -x CONFIG_XEN_PRIVILEGED_GUEST=y $config

But since XEN_DOM0 and XEN_PRIVILEGED_GUEST are by definition equal, removing XEN_PRIVILEGED_GUEST cannot influence this test.

Quoted 6 lines

So there's no reason to not remove this symbol, like we do with all unused Kconfig symbols.

[[email protected]: rewrote commit explanation.]

Paul Bolle

#7 lore raw
In reply to Paul Bolle

Here I should have added:

From: Michael Opdenacker <[email protected]>

in order for Michael to show up as author of the patch.

Quoted 14 lines · Paul Bolle

This patch removes the Kconfig symbol XEN_PRIVILEGED_GUEST which is used nowhere in the tree.

We do know grub2 has a script that greps kernel configuration files for its macro. It shouldn't do that. As Linus summarized:
This is a grub bug. It really is that simple. Treat it as one.

Besides, grub2's grepping for that macro is actually superfluous. See, that script currently contains this test (simplified):

    grep -x CONFIG_XEN_DOM0=y $config || grep -x CONFIG_XEN_PRIVILEGED_GUEST=y $config

But since XEN_DOM0 and XEN_PRIVILEGED_GUEST are by definition equal, removing XEN_PRIVILEGED_GUEST cannot influence this test.

Quoted 6 lines

So there's no reason to not remove this symbol, like we do with all unused Kconfig symbols.

[[email protected]: rewrote commit explanation.]

Paul Bolle

Reviewed-by on v2 1/1
#8 lore raw
In reply to Paul Bolle
Quoted 9 lines · Paul Bolle

This patch removes the Kconfig symbol XEN_PRIVILEGED_GUEST which is used nowhere in the tree.

We do know grub2 has a script that greps kernel configuration files for its macro. It shouldn't do that. As Linus summarized:
This is a grub bug. It really is that simple. Treat it as one.

Besides, grub2's grepping for that macro is actually superfluous. See, that script currently contains this test (simplified):

Quoted 7 lines
    grep -x CONFIG_XEN_DOM0=y $config || grep -x CONFIG_XEN_PRIVILEGED_GUEST=y $config

But since XEN_DOM0 and XEN_PRIVILEGED_GUEST are by definition equal, removing XEN_PRIVILEGED_GUEST cannot influence this test.

So there's no reason to not remove this symbol, like we do with all unused Kconfig symbols.

David

Reviewed-by on v2 1/1
#9 lore raw
In reply to Paul Bolle
Quoted 9 lines · Paul Bolle

This patch removes the Kconfig symbol XEN_PRIVILEGED_GUEST which is used nowhere in the tree.

We do know grub2 has a script that greps kernel configuration files for its macro. It shouldn't do that. As Linus summarized:
This is a grub bug. It really is that simple. Treat it as one.

Besides, grub2's grepping for that macro is actually superfluous. See, that script currently contains this test (simplified):

Quoted 7 lines
    grep -x CONFIG_XEN_DOM0=y $config || grep -x CONFIG_XEN_PRIVILEGED_GUEST=y $config

But since XEN_DOM0 and XEN_PRIVILEGED_GUEST are by definition equal, removing XEN_PRIVILEGED_GUEST cannot influence this test.

So there's no reason to not remove this symbol, like we do with all unused Kconfig symbols.

David

#10 lore raw

PATCH v2 1/1 xen: remove XEN_PRIVILEGED_GUEST

In reply to Paul Bolle

This patch removes the Kconfig symbol XEN_PRIVILEGED_GUEST which is used nowhere in the tree.

We do know grub2 has a script that greps kernel configuration files for its macro. It shouldn't do that. As Linus summarized:
This is a grub bug. It really is that simple. Treat it as one.

Besides, grub2's grepping for that macro is actually superfluous. See, that script currently contains this test (simplified):

    grep -x CONFIG_XEN_DOM0=y $config || grep -x CONFIG_XEN_PRIVILEGED_GUEST=y $config

But since XEN_DOM0 and XEN_PRIVILEGED_GUEST are by definition equal, removing XEN_PRIVILEGED_GUEST cannot influence this test.

So there's no reason to not remove this symbol, like we do with all unused Kconfig symbols.

[[email protected]: rewrote commit explanation.]

---
v2: added a few lines to the commit explanation to show grub2's test for this symbol is superfluous anyway. Still only git "grep tested".

 arch/x86/xen/Kconfig | 5 -----
 1 file changed, 5 deletions(-)
arch/x86/xen/Kconfig +0 -5
index 01b9026..512219d 100644
@@ -19,11 +19,6 @@ config XEN_DOM0
 	depends on XEN && PCI_XEN && SWIOTLB_XEN
 	depends on X86_LOCAL_APIC && X86_IO_APIC && ACPI && PCI
 
-# Dummy symbol since people have come to rely on the PRIVILEGED_GUEST
-# name in tools.
-config XEN_PRIVILEGED_GUEST
-	def_bool XEN_DOM0
-
 config XEN_PVHVM
 	def_bool y
 	depends on XEN && PCI && X86_LOCAL_APIC
Signature · 1 line
1.8.5.3
#11 lore raw
In reply to Paul Bolle
Quoted 12 lines · Paul Bolle
Quoted 10 lines · Konrad Rzeszutek Wilk
Quoted 9 lines · Paul Bolle
Quoted 3 lines · Konrad Rzeszutek Wilk

On Feb 16, 2014 3:07 PM, Paul Bolle <[email protected]> wrote:
Please look in the grub git tree. They have fixed their code to not do this anymore. This should be reflected in the patch description.

Thanks, I didn't know that. That turned out to be grub commit ec824e0f2a399ce2ab3a2e3353d372a236595059 ("Implement grub_file tool and use it to implement generating of config"), see
http://git.savannah.gnu.org/cgit/grub.git/commit/util/grub.d/20_linux_xen.in?id=ec824e0f2a399ce2ab3a2e3353d372a236595059

Quoted 8 lines

And that commit was reverted a week later in grub commit
faf4a65e1e1ce1d822d251c1e4b53d96ec7faec5 ("Revert grub-file usage in
grub-mkconfig."), see
http://git.savannah.gnu.org/cgit/grub.git/commit/util/grub.d/20_linux_xen.in?id=faf4a65e1e1ce1d822d251c1e4b53d96ec7faec5 .

That commit has no explanation (other than its one line summary). So we're left guessing why this was done. Luckily, it doesn't matter here, because the test for CONFIG_XEN_PRIVILEGED_GUEST is superfluous.

How about we ask Vladimir?

Vladimir - could you shed some light on it? Thanks!

Quoted 11 lines

Anyhow, I hope to submit a second version of this patch later this day.

Paul Bolle

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#12 lore raw
In reply to Paul Bolle
Quoted 12 lines · Paul Bolle
Quoted 10 lines · Konrad Rzeszutek Wilk
Quoted 9 lines · Paul Bolle
Quoted 3 lines · Konrad Rzeszutek Wilk

On Feb 16, 2014 3:07 PM, Paul Bolle <[email protected]> wrote:
Please look in the grub git tree. They have fixed their code to not do this anymore. This should be reflected in the patch description.

Thanks, I didn't know that. That turned out to be grub commit ec824e0f2a399ce2ab3a2e3353d372a236595059 ("Implement grub_file tool and use it to implement generating of config"), see
http://git.savannah.gnu.org/cgit/grub.git/commit/util/grub.d/20_linux_xen.in?id=ec824e0f2a399ce2ab3a2e3353d372a236595059

Quoted 8 lines

And that commit was reverted a week later in grub commit
faf4a65e1e1ce1d822d251c1e4b53d96ec7faec5 ("Revert grub-file usage in
grub-mkconfig."), see
http://git.savannah.gnu.org/cgit/grub.git/commit/util/grub.d/20_linux_xen.in?id=faf4a65e1e1ce1d822d251c1e4b53d96ec7faec5 .

That commit has no explanation (other than its one line summary). So we're left guessing why this was done. Luckily, it doesn't matter here, because the test for CONFIG_XEN_PRIVILEGED_GUEST is superfluous.

How about we ask Vladimir?

Vladimir - could you shed some light on it? Thanks!

Quoted 11 lines

Anyhow, I hope to submit a second version of this patch later this day.

Paul Bolle

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#13 lore raw
Quoted 18 lines · Konrad Rzeszutek Wilk
Quoted 17 lines · Paul Bolle
Quoted 10 lines · Konrad Rzeszutek Wilk
Quoted 9 lines · Paul Bolle
Quoted 3 lines · Konrad Rzeszutek Wilk

On Feb 16, 2014 3:07 PM, Paul Bolle <[email protected]> wrote:
Please look in the grub git tree. They have fixed their code to not do this anymore. This should be reflected in the patch description.

Thanks, I didn't know that. That turned out to be grub commit ec824e0f2a399ce2ab3a2e3353d372a236595059 ("Implement grub_file tool and use it to implement generating of config"), see
http://git.savannah.gnu.org/cgit/grub.git/commit/util/grub.d/20_linux_xen.in?id=ec824e0f2a399ce2ab3a2e3353d372a236595059

And that commit was reverted a week later in grub commit
faf4a65e1e1ce1d822d251c1e4b53d96ec7faec5 ("Revert grub-file usage in
grub-mkconfig."), see
http://git.savannah.gnu.org/cgit/grub.git/commit/util/grub.d/20_linux_xen.in?id=faf4a65e1e1ce1d822d251c1e4b53d96ec7faec5 .

Quoted 8 lines
Quoted 3 lines

That commit has no explanation (other than its one line summary). So we're left guessing why this was done. Luckily, it doesn't matter here, because the test for CONFIG_XEN_PRIVILEGED_GUEST is superfluous.

How about we ask Vladimir?

Vladimir - could you shed some light on it? Thanks!

CONFIG_XEN_PRIVILEGED_GUEST is not present on Linux even though it should be. The test was removed to accomodate this.
The usage of grub-file was removed because it wasn't release-ready.

Quoted 12 lines
Quoted 11 lines

Anyhow, I hope to submit a second version of this patch later this day.

Paul Bolle

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#14 lore raw
Quoted 11 lines · Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 10 lines · Konrad Rzeszutek Wilk
Quoted 8 lines · Paul Bolle

And that commit was reverted a week later in grub commit
faf4a65e1e1ce1d822d251c1e4b53d96ec7faec5 ("Revert grub-file usage in
grub-mkconfig."), see
http://git.savannah.gnu.org/cgit/grub.git/commit/util/grub.d/20_linux_xen.in?id=faf4a65e1e1ce1d822d251c1e4b53d96ec7faec5 .

That commit has no explanation (other than its one line summary). So we're left guessing why this was done. Luckily, it doesn't matter here, because the test for CONFIG_XEN_PRIVILEGED_GUEST is superfluous.

Quoted 6 lines
Quoted 4 lines

How about we ask Vladimir?

Vladimir - could you shed some light on it? Thanks!

CONFIG_XEN_PRIVILEGED_GUEST is not present on Linux even though it should be. The test was removed to accomodate this.

It's not clear to me what this means, sorry.

Quoted 1 line

The usage of grub-file was removed because it wasn't release-ready.

I see.

Thanks.

Paul Bolle

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#15 lore raw
In reply to Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 11 lines · Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 10 lines · Konrad Rzeszutek Wilk
Quoted 8 lines · Paul Bolle

And that commit was reverted a week later in grub commit
faf4a65e1e1ce1d822d251c1e4b53d96ec7faec5 ("Revert grub-file usage in
grub-mkconfig."), see
http://git.savannah.gnu.org/cgit/grub.git/commit/util/grub.d/20_linux_xen.in?id=faf4a65e1e1ce1d822d251c1e4b53d96ec7faec5 .

That commit has no explanation (other than its one line summary). So we're left guessing why this was done. Luckily, it doesn't matter here, because the test for CONFIG_XEN_PRIVILEGED_GUEST is superfluous.

Quoted 6 lines
Quoted 4 lines

How about we ask Vladimir?

Vladimir - could you shed some light on it? Thanks!

CONFIG_XEN_PRIVILEGED_GUEST is not present on Linux even though it should be. The test was removed to accomodate this.

It's not clear to me what this means, sorry.

Quoted 1 line

The usage of grub-file was removed because it wasn't release-ready.

I see.

Thanks.

Paul Bolle

#16 lore raw
In reply to Konrad Rzeszutek Wilk
Quoted 18 lines · Konrad Rzeszutek Wilk
Quoted 17 lines · Paul Bolle
Quoted 10 lines · Konrad Rzeszutek Wilk
Quoted 9 lines · Paul Bolle
Quoted 3 lines · Konrad Rzeszutek Wilk

On Feb 16, 2014 3:07 PM, Paul Bolle <[email protected]> wrote:
Please look in the grub git tree. They have fixed their code to not do this anymore. This should be reflected in the patch description.

Thanks, I didn't know that. That turned out to be grub commit ec824e0f2a399ce2ab3a2e3353d372a236595059 ("Implement grub_file tool and use it to implement generating of config"), see
http://git.savannah.gnu.org/cgit/grub.git/commit/util/grub.d/20_linux_xen.in?id=ec824e0f2a399ce2ab3a2e3353d372a236595059

And that commit was reverted a week later in grub commit
faf4a65e1e1ce1d822d251c1e4b53d96ec7faec5 ("Revert grub-file usage in
grub-mkconfig."), see
http://git.savannah.gnu.org/cgit/grub.git/commit/util/grub.d/20_linux_xen.in?id=faf4a65e1e1ce1d822d251c1e4b53d96ec7faec5 .

Quoted 8 lines
Quoted 3 lines

That commit has no explanation (other than its one line summary). So we're left guessing why this was done. Luckily, it doesn't matter here, because the test for CONFIG_XEN_PRIVILEGED_GUEST is superfluous.

How about we ask Vladimir?

Vladimir - could you shed some light on it? Thanks!

CONFIG_XEN_PRIVILEGED_GUEST is not present on Linux even though it should be. The test was removed to accomodate this.
The usage of grub-file was removed because it wasn't release-ready.

Quoted 4 lines
Quoted 4 lines

Anyhow, I hope to submit a second version of this patch later this day.

Quoted 8 lines
Quoted 7 lines

Paul Bolle

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#17 lore raw
In reply to Konrad Rzeszutek Wilk
Quoted 10 lines · Konrad Rzeszutek Wilk
Quoted 9 lines · Paul Bolle
Quoted 3 lines · Konrad Rzeszutek Wilk

On Feb 16, 2014 3:07 PM, Paul Bolle <[email protected]> wrote:
Please look in the grub git tree. They have fixed their code to not do this anymore. This should be reflected in the patch description.

Thanks, I didn't know that. That turned out to be grub commit ec824e0f2a399ce2ab3a2e3353d372a236595059 ("Implement grub_file tool and use it to implement generating of config"), see
http://git.savannah.gnu.org/cgit/grub.git/commit/util/grub.d/20_linux_xen.in?id=ec824e0f2a399ce2ab3a2e3353d372a236595059

And that commit was reverted a week later in grub commit
faf4a65e1e1ce1d822d251c1e4b53d96ec7faec5 ("Revert grub-file usage in
grub-mkconfig."), see
http://git.savannah.gnu.org/cgit/grub.git/commit/util/grub.d/20_linux_xen.in?id=faf4a65e1e1ce1d822d251c1e4b53d96ec7faec5 .

That commit has no explanation (other than its one line summary). So we're left guessing why this was done. Luckily, it doesn't matter here, because the test for CONFIG_XEN_PRIVILEGED_GUEST is superfluous.

Anyhow, I hope to submit a second version of this patch later this day.

Paul Bolle

#18 lore raw
In reply to Konrad Rzeszutek Wilk
Quoted 3 lines · Konrad Rzeszutek Wilk

On Feb 16, 2014 3:07 PM, Paul Bolle <[email protected]> wrote:
Please look in the grub git tree. They have fixed their code to not do this anymore. This should be reflected in the patch description.

Thanks, I didn't know that. That turned out to be grub commit ec824e0f2a399ce2ab3a2e3353d372a236595059 ("Implement grub_file tool and use it to implement generating of config"), see
http://git.savannah.gnu.org/cgit/grub.git/commit/util/grub.d/20_linux_xen.in?id=ec824e0f2a399ce2ab3a2e3353d372a236595059

Quoted 2 lines

Lastly please check which distro has this new grub version so that we know which distros won't be affected.

No distro should be affected. See, the test that grub2 used to do was (edited for clarity):

    grep -qx "CONFIG_XEN_DOM0=y" "${config}" || grep -qx "CONFIG_XEN_PRIVILEGED_GUEST=y" "${config}"

But the Kconfig entry for XEN_PRIVILEGED_GUEST reads:
config XEN_PRIVILEGED_GUEST
def_bool XEN_DOM0

Ie, XEN_PRIVILEGED_GUEST is equal to XEN_DOM0 by definition, so the second part of that test is superfluous. (We discussed this last year. If lkml.org weren't down I'd provide a link.) Or am I misreading this Kconfig entry?

I hope to send a v2, with an updated commit explanation, in a few days.

Paul Bolle