]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - arch/x86/kvm/vmx.c
KVM: nVMX: Add preemption timer support
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 13 Mar 2013 10:31:24 +0000 (11:31 +0100)
committerGleb Natapov <gleb@redhat.com>
Thu, 14 Mar 2013 08:01:21 +0000 (10:01 +0200)
commit0238ea913c21a89387f93097acfbdfeebc9c9257
tree679e48065643a243ce9ee5ada932fd558ba39b40
parentc18911a23ce1dec27fa3325b50587de2569d26f8
KVM: nVMX: Add preemption timer support

Provided the host has this feature, it's straightforward to offer it to
the guest as well. We just need to load to timer value on L2 entry if
the feature was enabled by L1 and watch out for the corresponding exit
reason.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/x86/include/asm/vmx.h
arch/x86/include/uapi/asm/vmx.h
arch/x86/kvm/vmx.c