Skip to content

Commit cc43093

Browse files
ouptonMarc Zyngier
authored andcommitted
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. Signed-off-by: Oliver Upton <oliver.upton@linux.dev> Signed-off-by: Marc Zyngier <maz@kernel.org>
1 parent 0aa1b76 commit cc43093

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Documentation/virt/kvm/api.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,6 +1229,9 @@ It is not possible to read back a pending external abort (injected via
12291229
KVM_SET_VCPU_EVENTS or otherwise) because such an exception is always delivered
12301230
directly to the virtual CPU).
12311231

1232+
Calling this ioctl on a vCPU that hasn't been initialized will return
1233+
-ENOEXEC.
1234+
12321235
::
12331236

12341237
struct kvm_vcpu_events {
@@ -1309,6 +1312,8 @@ exceptions by manipulating individual registers using the KVM_SET_ONE_REG API.
13091312

13101313
See KVM_GET_VCPU_EVENTS for the data structure.
13111314

1315+
Calling this ioctl on a vCPU that hasn't been initialized will return
1316+
-ENOEXEC.
13121317

13131318
4.33 KVM_GET_DEBUGREGS
13141319
----------------------

0 commit comments

Comments
 (0)