]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: Fix wrong interrupt injection in enable_irq_windows
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 19 Feb 2010 15:23:01 +0000 (16:23 +0100)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Apr 2010 09:38:11 +0000 (12:38 +0300)
commiteaf8d645e6132342249ecfdfac759af517e07ed6
treede627a861eecd58bbc183f88819e9ba2a41a11b0
parent8d941addaa0c6c7661fdd3e9b9ec71e1b71c75d8
KVM: SVM: Fix wrong interrupt injection in enable_irq_windows

The nested_svm_intr() function does not execute the vmexit
anymore. Therefore we may still be in the nested state after
that function ran. This patch changes the nested_svm_intr()
function to return wether the irq window could be enabled.

Cc: stable@kernel.org
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/svm.c