kvm: vmx: Add IA32_FLUSH_CMD guest support
authorEmanuele Giuseppe Esposito <eesposit@redhat.com>
Wed, 1 Feb 2023 13:29:03 +0000 (08:29 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 16 Mar 2023 14:17:55 +0000 (10:17 -0400)
commita807b78ad04b2eaa348f52f5cc7702385b6de1ee
treefa9f8af6dfcc2babbf387c98d8b279001c6447c4
parentfbc722aac1ce66960de50c0f488b6ff865a41d74
kvm: vmx: Add IA32_FLUSH_CMD guest support

Expose IA32_FLUSH_CMD to the guest if the guest CPUID enumerates
support for this MSR. As with IA32_PRED_CMD, permission for
unintercepted writes to this MSR will be granted to the guest after
the first non-zero write.

Co-developed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Message-Id: <20230201132905.549148-2-eesposit@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c
arch/x86/kvm/vmx/vmx.c