]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - arch/x86/kvm/vmx.c
KVM: nVMX: Fix injection of PENDING_INTERRUPT and NMI_WINDOW exits to L1
authorJan Kiszka <jan.kiszka@siemens.com>
Sun, 14 Apr 2013 10:12:45 +0000 (12:12 +0200)
committerGleb Natapov <gleb@redhat.com>
Sun, 14 Apr 2013 15:27:05 +0000 (18:27 +0300)
commit3b656cf764cbc43d3efb9bf5f45c618d4cf0989f
tree2f2fd183f9826f49158cc30303e84a7edf555cfc
parent188424ba10313bbbc015727d418b7f18593becdd
KVM: nVMX: Fix injection of PENDING_INTERRUPT and NMI_WINDOW exits to L1

Check if the interrupt or NMI window exit is for L1 by testing if it has
the corresponding controls enabled. This is required when we allow
direct injection from L0 to L2

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/x86/kvm/vmx.c