KVM: SVM: reorganize svm_interrupt_allowed
authorJoerg Roedel <joerg.roedel@amd.com>
Wed, 16 Sep 2009 13:24:15 +0000 (15:24 +0200)
committerAvi Kivity <avi@redhat.com>
Thu, 3 Dec 2009 07:32:11 +0000 (09:32 +0200)
commit7fcdb5103d10d2eb75876637a2efa9679cce14d3
treef8879cd7baeab1e2d40a2dbadac8df638200ba8b
parentbfc33beaed3ecf0f92612dc7fb7095029ae7722e
KVM: SVM: reorganize svm_interrupt_allowed

This patch reorganizes the logic in svm_interrupt_allowed to
make it better to read. This is important because the logic
is a lot more complicated with Nested SVM.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/svm.c