x86/paravirt: Remove unused paravirt_disable_iospace
Subsystems (3)
PATCH v2 1/1 x86/paravirt: Remove unused paravirt_disable_iospace
From: "Dr. David Alan Gilbert" <[email protected]>
The last use of paravirt_disable_iospace() was removed in 2015 by commit d1c29465b8a5 ("lguest: don't disable iospace.")
Remove it.
Note the comment above it about 'entry.S' is unrelated to this but stayed when intervening code got deleted.
---
v2
Cleaned up the header
arch/x86/include/asm/paravirt_types.h | 2 -- arch/x86/kernel/paravirt.c | 20 -------------------- 2 files changed, 22 deletions(-)
arch/x86/include/asm/paravirt_types.h +0 -2
@@ -242,8 +242,6 @@ extern struct paravirt_patch_template pv_ops;#define paravirt_ptr (op) [paravirt_opptr] "m" (pv_ops.op) -int paravirt_disable_iospace (void ); -/* This generates an indirect call based on the operation type number. */ #define PARAVIRT_CALL \ ANNOTATE_RETPOLINE_SAFE \
arch/x86/kernel/paravirt.c +0 -20
@@ -90,26 +90,6 @@ void paravirt_set_sched_clock(u64 (*func)(void))static_call_update (pv_sched_clock, func); } -/* These are in entry.S */ -static struct resource reserve_ioports = { - .start =0 , - .end =IO_SPACE_LIMIT , - .name ="paravirt-ioport" , - .flags =IORESOURCE_IO |IORESOURCE_BUSY , -}; - -/* -* Reserve the whole legacy IO space to prevent any legacy drivers -* from wasting time probing for their hardware. This is a fairly -* brute-force approach to disabling all non-virtual drivers. -* -* Note that this must be called very early to have any effect. -*/ -int paravirt_disable_iospace (void ) -{ -return request_resource (&ioport_resource, &reserve_ioports); -} -#ifdef CONFIG_PARAVIRT_XXL static noinstr void pv_native_write_cr2(unsigned long val) {
Signature · 1 line
2.48.1
Quoted 11 lines · On 03.03.25 01:44, [email protected] wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
The last use of
paravirt_disable_iospace()was removed in 2015 by commitd1c29465b8a5("lguest: don't disable iospace.")Remove it.
Note the comment above it about '
entry.S' is unrelated to this but stayed when intervening code got deleted.Signed-off-by Dr. David Alan Gilbert <[email protected]>
Juergen
[tip: x86/cleanups] x86/paravirt: Remove unused paravirt_disable_iospace()
In reply to [email protected]The following commit has been merged into the x86/cleanups branch of tip:
The following commit has been merged into the x86/cleanups branch of tip:
Commit-ID: 47f0008ed7774dd3b12bd5f596e8d106dfea305a Gitweb: https://git.kernel.org/tip/47f0008ed7774dd3b12bd5f596e8d106dfea305a Author: Dr. David Alan Gilbert <[email protected]> AuthorDate: Mon, 03 Mar 2025 00:44:41 Committer: Borislav Petkov (AMD) <[email protected]> CommitterDate: Mon, 03 Mar 2025 10:59:16 +01:00
x86/paravirt: Remove unused paravirt_disable_iospace()
The last use of paravirt_disable_iospace() was removed in 2015 by commit d1c29465b8a5 ("lguest: don't disable iospace.")
Remove it.
Note the comment above it about 'entry.S' is unrelated to this but stayed when intervening code got deleted.
--- arch/x86/include/asm/paravirt_types.h | 2 -- arch/x86/kernel/paravirt.c | 20 -------------------- 2 files changed, 22 deletions(-)
arch/x86/include/asm/paravirt_types.h +0 -2
@@ -242,8 +242,6 @@ extern struct paravirt_patch_template pv_ops;#define paravirt_ptr (op) [paravirt_opptr] "m" (pv_ops.op) -int paravirt_disable_iospace (void ); -/* This generates an indirect call based on the operation type number. */ #define PARAVIRT_CALL \ ANNOTATE_RETPOLINE_SAFE \
arch/x86/kernel/paravirt.c +0 -20
@@ -90,26 +90,6 @@ void paravirt_set_sched_clock(u64 (*func)(void))static_call_update (pv_sched_clock, func); } -/* These are in entry.S */ -static struct resource reserve_ioports = { - .start =0 , - .end =IO_SPACE_LIMIT , - .name ="paravirt-ioport" , - .flags =IORESOURCE_IO |IORESOURCE_BUSY , -}; - -/* -* Reserve the whole legacy IO space to prevent any legacy drivers -* from wasting time probing for their hardware. This is a fairly -* brute-force approach to disabling all non-virtual drivers. -* -* Note that this must be called very early to have any effect. -*/ -int paravirt_disable_iospace (void ) -{ -return request_resource (&ioport_resource, &reserve_ioports); -} -#ifdef CONFIG_PARAVIRT_XXL static noinstr void pv_native_write_cr2(unsigned long val) {
[tip: x86/core] x86/paravirt: Remove unused paravirt_disable_iospace()
In reply to [email protected]The following commit has been merged into the x86/core branch of tip:
The following commit has been merged into the x86/core branch of tip:
Commit-ID: 3101900218d7b6acbdee8af3e7bcf04acf5bf9ef Gitweb: https://git.kernel.org/tip/3101900218d7b6acbdee8af3e7bcf04acf5bf9ef Author: Dr. David Alan Gilbert <[email protected]> AuthorDate: Mon, 03 Mar 2025 00:44:41 Committer: Ingo Molnar <[email protected]> CommitterDate: Mon, 03 Mar 2025 11:19:52 +01:00
x86/paravirt: Remove unused paravirt_disable_iospace()
The last use of paravirt_disable_iospace() was removed in 2015 by commit d1c29465b8a5 ("lguest: don't disable iospace.")
Remove it.
Note the comment above it about 'entry.S' is unrelated to this but stayed when intervening code got deleted.
--- arch/x86/include/asm/paravirt_types.h | 2 -- arch/x86/kernel/paravirt.c | 20 -------------------- 2 files changed, 22 deletions(-)
arch/x86/include/asm/paravirt_types.h +0 -2
@@ -242,8 +242,6 @@ extern struct paravirt_patch_template pv_ops;#define paravirt_ptr (op) [paravirt_opptr] "m" (pv_ops.op) -int paravirt_disable_iospace (void ); -/* * This generates an indirect call based on the operation type number. *
arch/x86/kernel/paravirt.c +0 -20
@@ -90,26 +90,6 @@ void paravirt_set_sched_clock(u64 (*func)(void))static_call_update (pv_sched_clock, func); } -/* These are in entry.S */ -static struct resource reserve_ioports = { - .start =0 , - .end =IO_SPACE_LIMIT , - .name ="paravirt-ioport" , - .flags =IORESOURCE_IO |IORESOURCE_BUSY , -}; - -/* -* Reserve the whole legacy IO space to prevent any legacy drivers -* from wasting time probing for their hardware. This is a fairly -* brute-force approach to disabling all non-virtual drivers. -* -* Note that this must be called very early to have any effect. -*/ -int paravirt_disable_iospace (void ) -{ -return request_resource (&ioport_resource, &reserve_ioports); -} -#ifdef CONFIG_PARAVIRT_XXL static noinstr void pv_native_write_cr2(unsigned long val) {