Allow HWCR.McStatusWrEn to be cleared once set, and allow HWCR.TscFreqSel to be set from userspace. v1 -> v2: KVM no longer sets HWCR.TscFreqSel HWCR.TscFreqSel can be cleared from userspace Selftest modified accordingly 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 | 23 ++++++-- tools/testing/selftests/kvm/Makefile | 1 + .../selftests/kvm/x86_64/hwcr_msr_test.c | 52 +++++++++++++++++++ 3 files changed, 71 insertions(+), 5 deletions(-) create mode 100644 tools/testing/selftests/kvm/x86_64/hwcr_msr_test.c -- 2.42.0.515.g380fc7ccd1-goog