mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
KVM: selftests: Fix a typo in the vcpu_msrs_set assert
The assert incorrectly identifies the ioctl being called. Switch it
from KVM_GET_MSRS to KVM_SET_MSRS.
Fixes: 6ebfef83f0 ("KVM: selftest: Add proper helpers for x86-specific save/restore ioctls")
Signed-off-by: Aaron Lewis <aaronlewis@google.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/20221209201326.2781950-1-aaronlewis@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
This commit is contained in:
committed by
Sean Christopherson
parent
bf10993313
commit
ca17899693
@@ -717,7 +717,7 @@ static inline void vcpu_msrs_set(struct kvm_vcpu *vcpu, struct kvm_msrs *msrs)
|
||||
int r = __vcpu_ioctl(vcpu, KVM_SET_MSRS, msrs);
|
||||
|
||||
TEST_ASSERT(r == msrs->nmsrs,
|
||||
"KVM_GET_MSRS failed, r: %i (failed on MSR %x)",
|
||||
"KVM_SET_MSRS failed, r: %i (failed on MSR %x)",
|
||||
r, r < 0 || r >= msrs->nmsrs ? -1 : msrs->entries[r].index);
|
||||
}
|
||||
static inline void vcpu_debugregs_get(struct kvm_vcpu *vcpu,
|
||||
|
||||
Reference in New Issue
Block a user