KVM: nVMX: Fully support nested VMX preemption timer
authorArthur Chunqi Li <yzt356@gmail.com>
Mon, 16 Sep 2013 08:11:44 +0000 (16:11 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Oct 2013 16:22:54 +0000 (18:22 +0200)
commit7854cbca815562a49d50bbc6f31599312853d1f4
tree514f0a7a9e0bb345a371a4288d0ab2318cb4a7a3
parent8a3c1a33476f6bfebd07954e2277dbc88003bd37
KVM: nVMX: Fully support nested VMX preemption timer

This patch contains the following two changes:
1. Fix the bug in nested preemption timer support. If vmexit L2->L0
with some reasons not emulated by L1, preemption timer value should
be save in such exits.
2. Add support of "Save VMX-preemption timer value" VM-Exit controls
to nVMX.

With this patch, nested VMX preemption timer features are fully
supported.

Signed-off-by: Arthur Chunqi Li <yzt356@gmail.com>
Reviewed-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/uapi/asm/msr-index.h
arch/x86/kvm/vmx.c