Skip to contentSkip to conversation

Documentation: core-api: entry: Replace deprecated KVM entry/exit functions

PATCH Applied Andrew Donnellan 4 participants 4 messages Jul 23, 2025 – Jul 24, 2025 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation: core-api: entry: Replace deprecated KVM entry/exit functions

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 <[email protected]>
Cc Nicolas Saenz Julienne <[email protected]>
Cc Mark Rutland <[email protected]>
---
 Documentation/core-api/entry.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/core-api/entry.rst +2 -2
index a15f9b1767a2..286a5ecf7cae 100644
@@ -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
Signature · 1 line
2.50.1
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Andrew Donnellan

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!

Quoted 4 lines
Cc Thomas Gleixner <[email protected]>
Cc Nicolas Saenz Julienne <[email protected]>
Cc Mark Rutland <[email protected]>

Mark.

Quoted 22 lines
---
 Documentation/core-api/entry.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/core-api/entry.rst +2 -2
index a15f9b1767a2..286a5ecf7cae 100644
@@ -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
Signature · 1 line
2.50.1
Reviewed-by on v1 1/1
#2 lore raw
In reply to Andrew Donnellan
Quoted 11 lines · Andrew Donnellan

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 <[email protected]>
Cc Nicolas Saenz Julienne <[email protected]>
Cc Mark Rutland <[email protected]>
maintainer Applied
#3 lore raw
In reply to Andrew Donnellan
Quoted 20 lines · Andrew Donnellan

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 <[email protected]>
Cc Nicolas Saenz Julienne <[email protected]>
Cc Mark Rutland <[email protected]>
---
 Documentation/core-api/entry.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/core-api/entry.rst +0 -0
index a15f9b1767a2..286a5ecf7cae 100644

Documentation/core-api/entry.rst Entering or exiting guest mode is very similar to syscalls. From the host · line 120

Quoted 8 lines
Documentation/core-api/entry.rst +2 -2
@@ -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