x86/KVM/VMX: Extend add_atomic_switch_msr() to allow VMENTER only MSRs
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 21 Jun 2018 02:01:22 +0000 (22:01 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 4 Jul 2018 18:49:41 +0000 (20:49 +0200)
commit989e3992d2eca32c3f1404f2bc91acda3aa122d8
treebe9c32ede386a72173d8c78e07766fa6d6fefdd2
parent3190709335dd31fe1aeeebfe4ffb6c7624ef971f
x86/KVM/VMX: Extend add_atomic_switch_msr() to allow VMENTER only MSRs

The IA32_FLUSH_CMD MSR needs only to be written on VMENTER. Extend
add_atomic_switch_msr() with an entry_only parameter to allow storing the
MSR only in the guest (ENTRY) MSR array.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kvm/vmx.c