]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:22:59 +0000 (11:22 -0700)
commitbdb19d4b8a480be7bd1da9ee8f0efb9ee5d15a8a
treec8d3fe65f3851b6a529baedde13a9f8c8178e033
parentd3994940c979188e63b7554335591608ba4fd5ee
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
(Cherry-picked from commit 8fe546547cf6857a9d984bfe2f2194910f3fc5d0)
arch/x86/kvm/svm.c