* [PATCH] Documentation: core-api: entry: Replace deprecated KVM entry/exit functions
@ 2025-07-23 7:51 Andrew Donnellan
2025-07-23 9:54 ` Mark Rutland
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Andrew Donnellan @ 2025-07-23 7:51 UTC (permalink / raw)
To: Jonathan Corbet, linux-doc, linux-kernel
Cc: Thomas Gleixner, Nicolas Saenz Julienne, Mark Rutland
The x86-specific functions kvm_guest_{enter,exit}_irqoff() were removed
and replaced by the generic guest_state_{enter,exit}_irqoff() in commit
ef9989afda73 ("kvm: add guest_state_{enter,exit}_irqoff()") and commit
b2d2af7e5df3 ("kvm/x86: rework guest entry logic").
Update the references in the entry/exit handling documentation.
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Nicolas Saenz Julienne <nsaenz@amazon.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
---
Documentation/core-api/entry.rst | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/core-api/entry.rst b/Documentation/core-api/entry.rst
index a15f9b1767a2..286a5ecf7cae 100644
--- a/Documentation/core-api/entry.rst
+++ b/Documentation/core-api/entry.rst
@@ -115,8 +115,8 @@ Entering or exiting guest mode is very similar to syscalls. From the host
kernel point of view the CPU goes off into user space when entering the
guest and returns to the kernel on exit.
-kvm_guest_enter_irqoff() is a KVM-specific variant of exit_to_user_mode()
-and kvm_guest_exit_irqoff() is the KVM variant of enter_from_user_mode().
+guest_state_enter_irqoff() is a KVM-specific variant of exit_to_user_mode()
+and guest_state_exit_irqoff() is the KVM variant of enter_from_user_mode().
The state operations have the same ordering.
Task work handling is done separately for guest at the boundary of the
--
2.50.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] Documentation: core-api: entry: Replace deprecated KVM entry/exit functions
2025-07-23 7:51 [PATCH] Documentation: core-api: entry: Replace deprecated KVM entry/exit functions Andrew Donnellan
@ 2025-07-23 9:54 ` Mark Rutland
2025-07-23 17:08 ` Thomas Gleixner
2025-07-24 14:33 ` Jonathan Corbet
2 siblings, 0 replies; 4+ messages in thread
From: Mark Rutland @ 2025-07-23 9:54 UTC (permalink / raw)
To: Andrew Donnellan
Cc: Jonathan Corbet, linux-doc, linux-kernel, Thomas Gleixner,
Nicolas Saenz Julienne
On Wed, Jul 23, 2025 at 05:51:34PM +1000, Andrew Donnellan wrote:
> The x86-specific functions kvm_guest_{enter,exit}_irqoff() were removed
> and replaced by the generic guest_state_{enter,exit}_irqoff() in commit
> ef9989afda73 ("kvm: add guest_state_{enter,exit}_irqoff()") and commit
> b2d2af7e5df3 ("kvm/x86: rework guest entry logic").
>
> Update the references in the entry/exit handling documentation.
Sorry for missing this when I updated the code; thanks for cleaning this
up!
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: Nicolas Saenz Julienne <nsaenz@amazon.com>
> Cc: Mark Rutland <mark.rutland@arm.com>
> Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Mark.
> ---
> Documentation/core-api/entry.rst | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/core-api/entry.rst b/Documentation/core-api/entry.rst
> index a15f9b1767a2..286a5ecf7cae 100644
> --- a/Documentation/core-api/entry.rst
> +++ b/Documentation/core-api/entry.rst
> @@ -115,8 +115,8 @@ Entering or exiting guest mode is very similar to syscalls. From the host
> kernel point of view the CPU goes off into user space when entering the
> guest and returns to the kernel on exit.
>
> -kvm_guest_enter_irqoff() is a KVM-specific variant of exit_to_user_mode()
> -and kvm_guest_exit_irqoff() is the KVM variant of enter_from_user_mode().
> +guest_state_enter_irqoff() is a KVM-specific variant of exit_to_user_mode()
> +and guest_state_exit_irqoff() is the KVM variant of enter_from_user_mode().
> The state operations have the same ordering.
>
> Task work handling is done separately for guest at the boundary of the
> --
> 2.50.1
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Documentation: core-api: entry: Replace deprecated KVM entry/exit functions
2025-07-23 7:51 [PATCH] Documentation: core-api: entry: Replace deprecated KVM entry/exit functions Andrew Donnellan
2025-07-23 9:54 ` Mark Rutland
@ 2025-07-23 17:08 ` Thomas Gleixner
2025-07-24 14:33 ` Jonathan Corbet
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Gleixner @ 2025-07-23 17:08 UTC (permalink / raw)
To: Andrew Donnellan, Jonathan Corbet, linux-doc, linux-kernel
Cc: Nicolas Saenz Julienne, Mark Rutland
On Wed, Jul 23 2025 at 17:51, Andrew Donnellan wrote:
> The x86-specific functions kvm_guest_{enter,exit}_irqoff() were removed
> and replaced by the generic guest_state_{enter,exit}_irqoff() in commit
> ef9989afda73 ("kvm: add guest_state_{enter,exit}_irqoff()") and commit
> b2d2af7e5df3 ("kvm/x86: rework guest entry logic").
>
> Update the references in the entry/exit handling documentation.
>
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: Nicolas Saenz Julienne <nsaenz@amazon.com>
> Cc: Mark Rutland <mark.rutland@arm.com>
> Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Documentation: core-api: entry: Replace deprecated KVM entry/exit functions
2025-07-23 7:51 [PATCH] Documentation: core-api: entry: Replace deprecated KVM entry/exit functions Andrew Donnellan
2025-07-23 9:54 ` Mark Rutland
2025-07-23 17:08 ` Thomas Gleixner
@ 2025-07-24 14:33 ` Jonathan Corbet
2 siblings, 0 replies; 4+ messages in thread
From: Jonathan Corbet @ 2025-07-24 14:33 UTC (permalink / raw)
To: Andrew Donnellan, linux-doc, linux-kernel
Cc: Thomas Gleixner, Nicolas Saenz Julienne, Mark Rutland
Andrew Donnellan <ajd@linux.ibm.com> writes:
> The x86-specific functions kvm_guest_{enter,exit}_irqoff() were removed
> and replaced by the generic guest_state_{enter,exit}_irqoff() in commit
> ef9989afda73 ("kvm: add guest_state_{enter,exit}_irqoff()") and commit
> b2d2af7e5df3 ("kvm/x86: rework guest entry logic").
>
> Update the references in the entry/exit handling documentation.
>
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: Nicolas Saenz Julienne <nsaenz@amazon.com>
> Cc: Mark Rutland <mark.rutland@arm.com>
> Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
> ---
> Documentation/core-api/entry.rst | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/core-api/entry.rst b/Documentation/core-api/entry.rst
> index a15f9b1767a2..286a5ecf7cae 100644
> --- a/Documentation/core-api/entry.rst
> +++ b/Documentation/core-api/entry.rst
> @@ -115,8 +115,8 @@ Entering or exiting guest mode is very similar to syscalls. From the host
> kernel point of view the CPU goes off into user space when entering the
> guest and returns to the kernel on exit.
>
> -kvm_guest_enter_irqoff() is a KVM-specific variant of exit_to_user_mode()
> -and kvm_guest_exit_irqoff() is the KVM variant of enter_from_user_mode().
> +guest_state_enter_irqoff() is a KVM-specific variant of exit_to_user_mode()
> +and guest_state_exit_irqoff() is the KVM variant of enter_from_user_mode().
> The state operations have the same ordering.
Applied, thanks.
jon
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-07-24 14:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-23 7:51 [PATCH] Documentation: core-api: entry: Replace deprecated KVM entry/exit functions Andrew Donnellan
2025-07-23 9:54 ` Mark Rutland
2025-07-23 17:08 ` Thomas Gleixner
2025-07-24 14:33 ` Jonathan Corbet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).