Commit 438a496b authored by Mathias Krause's avatar Mathias Krause Committed by Sean Christopherson
Browse files

KVM: selftests: Test vCPU boot IDs above 2^32 and MAX_VCPU_ID



The KVM_SET_BOOT_CPU_ID ioctl missed to reject invalid vCPU IDs. Verify
this no longer works and gets rejected with an appropriate error code.

Signed-off-by: default avatarMathias Krause <minipli@grsecurity.net>
Link: https://lore.kernel.org/r/20240614202859.3597745-6-minipli@grsecurity.net


[sean: add test for MAX_VCPU_ID+1, always do negative test]
Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent 4b451a57
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment