Skip to contentSkip to conversation

KVM: arm64: Document vCPU event ioctls as requiring init'ed vCPU

PATCH Superseded Oliver Upton 1 participant 1 message Sep 30, 2025

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KVM: arm64: Document vCPU event ioctls as requiring init'ed vCPU

KVM rejects calls to KVM_{GET,SET}_VCPU_EVENTS for an uninitialized vCPU as of commit cc96679f3c03 ("KVM: arm64: Prevent access to vCPU events before init"). Update the corresponding API documentation.

---
 Documentation/virt/kvm/api.rst | 3 +++
 1 file changed, 3 insertions(+)
Documentation/virt/kvm/api.rst +3 -0
index 6aa40ee05a4a..057a9c9336d6 100644
@@ -1229,6 +1229,8 @@ It is not possible to read back a pending external abort (injected via
 KVM_SET_VCPU_EVENTS or otherwise) because such an exception is always delivered
 directly to the virtual CPU).
 
+Calling this ioctl on a vCPU that hasn't been initialized will return -ENXIO.
+
 ::
 
   struct kvm_vcpu_events {
@@ -1309,6 +1311,7 @@ exceptions by manipulating individual registers using the KVM_SET_ONE_REG API.
 
 See KVM_GET_VCPU_EVENTS for the data structure.
 
+Calling this ioctl on a vCPU that hasn't been initialized will return -ENXIO.
 
 4.33 KVM_GET_DEBUGREGS
 ----------------------

base-commit: 10fd0285305d0b48e8a3bf15d4f17fc4f3d68cb6

Signature · 1 line
2.39.5