KVM: x86: Move kvm_trace_exit into atomic vmexit section
commitde9c133ca07278a1a5172f2842e039da61a54b4f
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 12 Sep 2011 08:52:24 +0000 (12 10:52 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 12 Sep 2011 12:39:16 +0000 (12 09:39 -0300)
tree85d8feefa9bd00e0772f76e4ebb3828799aaa88f
parent0452580cf0ac496e4940bdbe527e548a7335fca2
KVM: x86: Move kvm_trace_exit into atomic vmexit section

This avoids that events causing the vmexit are recorded before the
actual exit reason.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c