Allow HWCR.McStatusWrEn to be cleared once set, and allow HWCR.TscFreqSel to be set as well. v1 -> v2: KVM no longer sets HWCR.TscFreqSel HWCR.TscFreqSel can be cleared from userspace Selftest modified accordingly v2 -> v3: kvm_set_msr_common() changes simplified v3 -> v4: kvm_set_msr_common() changes further simplified HWCR.TscFreqSel can be modified from the guest Targets reordered in selftest Makefile Jim Mattson (3): KVM: x86: Allow HWCR.McStatusWrEn to be cleared once set KVM: x86: Virtualize HWCR.TscFreqSel[bit 24] KVM: selftests: Test behavior of HWCR arch/x86/kvm/x86.c | 11 ++-- tools/testing/selftests/kvm/Makefile | 1 + .../selftests/kvm/x86_64/hwcr_msr_test.c | 52 +++++++++++++++++++ 3 files changed, 60 insertions(+), 4 deletions(-) create mode 100644 tools/testing/selftests/kvm/x86_64/hwcr_msr_test.c -- 2.42.0.582.g8ccd20d70d-goog