]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
KVM: set debug registers after "schedulable" section
authorMarcelo Tosatti <mtosatti@redhat.com>
Fri, 1 Aug 2008 23:09:13 +0000 (20:09 -0300)
committerAvi Kivity <avi@qumranet.com>
Wed, 15 Oct 2008 08:15:19 +0000 (10:15 +0200)
commit29415c37f043d1d54dcf356601d738ff6633b72b
tree43958b606712801806e0ff8e3da5426b9c66feaf
parent8349b5cd816adf102c078553ec8ca63b3beb457c
KVM: set debug registers after "schedulable" section

The vcpu thread can be preempted after the guest_debug_pre() callback,
resulting in invalid debug registers on the new vcpu.

Move it inside the non-preemptable section.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/x86.c