Add BIT_ULL(35) (CpuidUserDis) to the valid mask in hwcr_msr_test, now that KVM accepts writes to this bit when the guest CPUID advertises CpuidUserDis.
Signed-off-by: Jim Mattson <[email protected]> --- tools/testing/selftests/kvm/x86/hwcr_msr_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kvm/x86/hwcr_msr_test.c b/tools/testing/selftests/kvm/x86/hwcr_msr_test.c index 10b1b0ba374e..5357281e6e4e 100644 --- a/tools/testing/selftests/kvm/x86/hwcr_msr_test.c +++ b/tools/testing/selftests/kvm/x86/hwcr_msr_test.c @@ -11,7 +11,7 @@ void test_hwcr_bit(struct kvm_vcpu *vcpu, unsigned int bit) { const uint64_t ignored = BIT_ULL(3) | BIT_ULL(6) | BIT_ULL(8); - const uint64_t valid = BIT_ULL(18) | BIT_ULL(24); + const uint64_t valid = BIT_ULL(18) | BIT_ULL(24) | BIT_ULL(35); const uint64_t legal = ignored | valid; uint64_t val = BIT_ULL(bit); uint64_t actual; -- 2.53.0.1213.gd9a14994de-goog

