KVM: selftests: Fix a typo in the vcpu_msrs_set assert
PATCH 1/1 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 6ebfef83f03f ("KVM: selftest: Add proper helpers for x86-specific save/restore ioctls")
Signed-off-by Aaron Lewis <[email protected]>
--- tools/testing/selftests/kvm/include/x86_64/processor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/kvm/include/x86_64/processor.h +1 -1
@@ -716,7 +716,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,
Signature · 1 line
2.39.0.rc1.256.g54fd8350bd-goog
Quoted 6 lines · Aaron Lewis
The assert incorrectly identifies the ioctl being called. Switch it from
KVM_GET_MSRStoKVM_SET_MSRS.Fixes 6ebfef83f03f ("KVM: selftest: Add proper helpers for x86-specific save/restore ioctls")Signed-off-by Aaron Lewis <[email protected]>
Reviewed-by Jim Mattson <[email protected]>
Quoted 6 lines · Aaron Lewis
The assert incorrectly identifies the ioctl being called. Switch it from
KVM_GET_MSRStoKVM_SET_MSRS.Fixes 6ebfef83f03f ("KVM: selftest: Add proper helpers for x86-specific save/restore ioctls")Signed-off-by Aaron Lewis <[email protected]>---
Reviewed-by Sean Christopherson <[email protected]>
Sean Christopherson
reviewerQuoted 4 lines · Aaron Lewis
The assert incorrectly identifies the ioctl being called. Switch it from
KVM_GET_MSRStoKVM_SET_MSRS.
Applied to kvm-x86 selftests, thanks!
[1/1] KVM: selftests: Fix a typo in the vcpu_msrs_set assert
https://github.com/kvm-x86/linux/commit/589713ee5f12
--
https://github.com/kvm-x86/linux/tree/next
https://github.com/kvm-x86/linux/tree/fixes