]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit80d26d6f5483c891e8622ffe5863ef4aa86cf908
treebe9c32ede386a72173d8c78e07766fa6d6fefdd2
parentbf1d65e7faa2cd695d4beba34af487192be46fa0
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