x86/vsmp: Remove dependency on pv_irq_ops
PATCH 1/1 x86/vsmp: Remove dependency on pv_irq_ops
vsmp dependency on pv_irq_ops removed some years ago, so now let's clean it up from vsmp_64.c.
In short, "cap & ctl & (1 << 4)" was always returning 0, as such we can remove all the PARAVIRT/PARAVIRT_XXL code handling that.
However, the rest of the code depends on CONFIG_PCI, so fix it accordingly. in addition, rename set_vsmp_pv_ops to set_vsmp_ctl.
--- arch/x86/Kconfig | 1 - arch/x86/kernel/vsmp_64.c | 84 ++++------------------------------------------- 2 files changed, 7 insertions(+), 78 deletions(-)
arch/x86/Kconfig +0 -1
@@ -525,7 +525,6 @@ config X86_VSMP bool "ScaleMP vSMP" select HYPERVISOR_GUEST select PARAVIRT - select PARAVIRT_XXL depends on X86_64 && PCI depends on X86_EXTENDED_PLATFORM depends on SMP
arch/x86/kernel/vsmp_64.c +7 -77
117 lines not on this page · raw message
Signature · 1 line
2.7.4
tip-bot for Eial Czerwacki
merge botx86/vsmp: Remove dependency on pv_irq_ops
Commit-ID: 7f2d7f8190d856949d8aaab55d3902cd10ea1048 Gitweb: https://git.kernel.org/tip/7f2d7f8190d856949d8aaab55d3902cd10ea1048 Author: Eial Czerwacki <[email protected]> AuthorDate: Mon, 5 Nov 2018 10:01:04 +0200 Committer: Thomas Gleixner <[email protected]> CommitDate: Mon, 5 Nov 2018 12:33:47 +0100
x86/vsmp: Remove dependency on pv_irq_ops
vsmp dependency on pv_irq_ops has been removed some years ago, but the code still deals with pv_irq_ops.
In short, "cap & ctl & (1 << 4)" is always returning 0, so all PARAVIRT/PARAVIRT_XXL code related to that can be removed.
However, the rest of the code depends on CONFIG_PCI, so fix it accordingly.
Rename set_vsmp_pv_ops to set_vsmp_ctl as the original name does not make sense anymore.
[ tglx: Minor changelog tweaks ]
--- arch/x86/Kconfig | 1 - arch/x86/kernel/vsmp_64.c | 84 ++++------------------------------------------- 2 files changed, 7 insertions(+), 78 deletions(-)
arch/x86/Kconfig +0 -1
@@ -525,7 +525,6 @@ config X86_VSMP bool "ScaleMP vSMP" select HYPERVISOR_GUEST select PARAVIRT - select PARAVIRT_XXL depends on X86_64 && PCI depends on X86_EXTENDED_PLATFORM depends on SMP
arch/x86/kernel/vsmp_64.c +7 -77
117 lines not on this page · raw message
Quoted 11 lines · tip-bot for Eial Czerwacki
Commit-ID: 7f2d7f8190d856949d8aaab55d3902cd10ea1048 Gitweb: https://git.kernel.org/tip/7f2d7f8190d856949d8aaab55d3902cd10ea1048 Author: Eial Czerwacki <[email protected]> AuthorDate: Mon, 5 Nov 2018 10:01:04 +0200 Committer: Thomas Gleixner <[email protected]> CommitDate: Mon, 5 Nov 2018 12:33:47 +0100x86/vsmp: Remove dependency on
pv_irq_opsvsmp dependency on
pv_irq_opshas been removed some years ago, but the code still deals withpv_irq_ops.
s/vsmp
/vSMP
Quoted 1 line
+#if defined
CONFIG_PCI
I don't think code was ever tested with PCI disabled?
The above typoed sequence of code accidentally evaluates to 'true' regardless of CONFIG_PCI.
Thanks,
Ingo
Quoted 18 lines · Ingo Molnar
Quoted 11 lines · tip-bot for Eial Czerwacki
Commit-ID: 7f2d7f8190d856949d8aaab55d3902cd10ea1048 Gitweb: https://git.kernel.org/tip/7f2d7f8190d856949d8aaab55d3902cd10ea1048 Author: Eial Czerwacki <[email protected]> AuthorDate: Mon, 5 Nov 2018 10:01:04 +0200 Committer: Thomas Gleixner <[email protected]> CommitDate: Mon, 5 Nov 2018 12:33:47 +0100x86/vsmp: Remove dependency on
pv_irq_opsvsmp dependency on
pv_irq_opshas been removed some years ago, but the code still deals withpv_irq_ops.s/vsmp
/vSMP
Quoted 6 lines
Quoted 1 line
+#if defined
CONFIG_PCII don't think code was ever tested with PCI disabled?
The above typoed sequence of code accidentally evaluates to 'true' regardless of
CONFIG_PCI.
Grr. Indeed, missed that
Greetings,
Quoted 20 lines · Thomas Gleixner
Quoted 18 lines · Ingo Molnar
Quoted 11 lines · tip-bot for Eial Czerwacki
Commit-ID: 7f2d7f8190d856949d8aaab55d3902cd10ea1048 Gitweb: https://git.kernel.org/tip/7f2d7f8190d856949d8aaab55d3902cd10ea1048 Author: Eial Czerwacki <[email protected]> AuthorDate: Mon, 5 Nov 2018 10:01:04 +0200 Committer: Thomas Gleixner <[email protected]> CommitDate: Mon, 5 Nov 2018 12:33:47 +0100x86/vsmp: Remove dependency on
pv_irq_opsvsmp dependency on
pv_irq_opshas been removed some years ago, but the code still deals withpv_irq_ops.s/vsmp
/vSMP
Quoted 10 lines
Quoted 6 lines
Quoted 1 line
+#if defined
CONFIG_PCII don't think code was ever tested with PCI disabled?
The above typoed sequence of code accidentally evaluates to 'true' regardless of
CONFIG_PCI.Grr. Indeed, missed that
actually I've tested it with CONFIG_PCI unset but evidently I've managed to mess up the test somehow.
thanks for pointing this out, I'll send a patch that fixes it.
Eial.