KVM: x86: Allow HWCR.McStatusWrEn to be cleared once set
authorJim Mattson <jmattson@google.com>
Fri, 29 Sep 2023 23:02:44 +0000 (16:02 -0700)
committerSean Christopherson <seanjc@google.com>
Mon, 9 Oct 2023 19:36:15 +0000 (12:36 -0700)
commit598a790fc20f06e5582c939a4c5864ff1105c477
treed46e9a93aa1ce00e0b11d64570b89bdba413e297
parent5d6d6a7d7e66a98bb3432478d226c68c219aaba3
KVM: x86: Allow HWCR.McStatusWrEn to be cleared once set

When HWCR is set to 0, store 0 in vcpu->arch.msr_hwcr.

Fixes: 191c8137a939 ("x86/kvm: Implement HWCR support")
Signed-off-by: Jim Mattson <jmattson@google.com>
Link: https://lore.kernel.org/r/20230929230246.1954854-2-jmattson@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/x86.c