* [PATCH v2] x86/paravirt: Remove unused paravirt_disable_iospace
@ 2025-03-03 0:44 linux
2025-03-03 8:05 ` Jürgen Groß
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: linux @ 2025-03-03 0:44 UTC (permalink / raw)
To: jgross, ajay.kaher, alexey.amakhalov, tglx, mingo, bp,
dave.hansen, hpa
Cc: x86, virtualization, bcm-kernel-feedback-list, linux-kernel,
Dr. David Alan Gilbert
From: "Dr. David Alan Gilbert" <linux@treblig.org>
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.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
v2
Cleaned up the header
arch/x86/include/asm/paravirt_types.h | 2 --
arch/x86/kernel/paravirt.c | 20 --------------------
2 files changed, 22 deletions(-)
diff --git a/arch/x86/include/asm/paravirt_types.h b/arch/x86/include/asm/paravirt_types.h
index fea56b04f436..3c54ac5a9af4 100644
--- a/arch/x86/include/asm/paravirt_types.h
+++ b/arch/x86/include/asm/paravirt_types.h
@@ -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 \
diff --git a/arch/x86/kernel/paravirt.c b/arch/x86/kernel/paravirt.c
index 1ccaa3397a67..debe92854774 100644
--- a/arch/x86/kernel/paravirt.c
+++ b/arch/x86/kernel/paravirt.c
@@ -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)
{
--
2.48.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH v2] x86/paravirt: Remove unused paravirt_disable_iospace
2025-03-03 0:44 [PATCH v2] x86/paravirt: Remove unused paravirt_disable_iospace linux
@ 2025-03-03 8:05 ` Jürgen Groß
2025-03-03 10:23 ` [tip: x86/cleanups] x86/paravirt: Remove unused paravirt_disable_iospace() tip-bot2 for Dr. David Alan Gilbert
2025-03-03 10:33 ` [tip: x86/core] " tip-bot2 for Dr. David Alan Gilbert
2 siblings, 0 replies; 4+ messages in thread
From: Jürgen Groß @ 2025-03-03 8:05 UTC (permalink / raw)
To: linux, ajay.kaher, alexey.amakhalov, tglx, mingo, bp, dave.hansen,
hpa
Cc: x86, virtualization, bcm-kernel-feedback-list, linux-kernel
[-- Attachment #1.1.1: Type: text/plain, Size: 493 bytes --]
On 03.03.25 01:44, linux@treblig.org wrote:
> From: "Dr. David Alan Gilbert" <linux@treblig.org>
>
> 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.
>
> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Reviewed-by: Juergen Gross <jgross@suse.com>
Juergen
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3743 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread* [tip: x86/cleanups] x86/paravirt: Remove unused paravirt_disable_iospace()
2025-03-03 0:44 [PATCH v2] x86/paravirt: Remove unused paravirt_disable_iospace linux
2025-03-03 8:05 ` Jürgen Groß
@ 2025-03-03 10:23 ` tip-bot2 for Dr. David Alan Gilbert
2025-03-03 10:33 ` [tip: x86/core] " tip-bot2 for Dr. David Alan Gilbert
2 siblings, 0 replies; 4+ messages in thread
From: tip-bot2 for Dr. David Alan Gilbert @ 2025-03-03 10:23 UTC (permalink / raw)
To: linux-tip-commits
Cc: Dr. David Alan Gilbert, Borislav Petkov (AMD), Juergen Gross, x86,
linux-kernel
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 <linux@treblig.org>
AuthorDate: Mon, 03 Mar 2025 00:44:41
Committer: Borislav Petkov (AMD) <bp@alien8.de>
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.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/20250303004441.250451-1-linux@treblig.org
---
arch/x86/include/asm/paravirt_types.h | 2 --
arch/x86/kernel/paravirt.c | 20 --------------------
2 files changed, 22 deletions(-)
diff --git a/arch/x86/include/asm/paravirt_types.h b/arch/x86/include/asm/paravirt_types.h
index fea56b0..3c54ac5 100644
--- a/arch/x86/include/asm/paravirt_types.h
+++ b/arch/x86/include/asm/paravirt_types.h
@@ -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 \
diff --git a/arch/x86/kernel/paravirt.c b/arch/x86/kernel/paravirt.c
index 1ccaa33..debe928 100644
--- a/arch/x86/kernel/paravirt.c
+++ b/arch/x86/kernel/paravirt.c
@@ -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)
{
^ permalink raw reply related [flat|nested] 4+ messages in thread* [tip: x86/core] x86/paravirt: Remove unused paravirt_disable_iospace()
2025-03-03 0:44 [PATCH v2] x86/paravirt: Remove unused paravirt_disable_iospace linux
2025-03-03 8:05 ` Jürgen Groß
2025-03-03 10:23 ` [tip: x86/cleanups] x86/paravirt: Remove unused paravirt_disable_iospace() tip-bot2 for Dr. David Alan Gilbert
@ 2025-03-03 10:33 ` tip-bot2 for Dr. David Alan Gilbert
2 siblings, 0 replies; 4+ messages in thread
From: tip-bot2 for Dr. David Alan Gilbert @ 2025-03-03 10:33 UTC (permalink / raw)
To: linux-tip-commits
Cc: Dr. David Alan Gilbert, Borislav Petkov (AMD), Ingo Molnar,
Juergen Gross, x86, linux-kernel
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 <linux@treblig.org>
AuthorDate: Mon, 03 Mar 2025 00:44:41
Committer: Ingo Molnar <mingo@kernel.org>
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.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/20250303004441.250451-1-linux@treblig.org
---
arch/x86/include/asm/paravirt_types.h | 2 --
arch/x86/kernel/paravirt.c | 20 --------------------
2 files changed, 22 deletions(-)
diff --git a/arch/x86/include/asm/paravirt_types.h b/arch/x86/include/asm/paravirt_types.h
index 8b36a95..8e21a1a 100644
--- a/arch/x86/include/asm/paravirt_types.h
+++ b/arch/x86/include/asm/paravirt_types.h
@@ -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.
*
diff --git a/arch/x86/kernel/paravirt.c b/arch/x86/kernel/paravirt.c
index 1dc114c..d0b789d 100644
--- a/arch/x86/kernel/paravirt.c
+++ b/arch/x86/kernel/paravirt.c
@@ -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)
{
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-03-03 10:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-03 0:44 [PATCH v2] x86/paravirt: Remove unused paravirt_disable_iospace linux
2025-03-03 8:05 ` Jürgen Groß
2025-03-03 10:23 ` [tip: x86/cleanups] x86/paravirt: Remove unused paravirt_disable_iospace() tip-bot2 for Dr. David Alan Gilbert
2025-03-03 10:33 ` [tip: x86/core] " tip-bot2 for Dr. David Alan Gilbert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox