kvm: synchronize state from cpu context
commit2705d56a6a7e9c7833e04d33aedbc01d2280a280
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 4 May 2010 12:45:23 +0000 (4 09:45 -0300)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 11 May 2010 17:02:22 +0000 (11 14:02 -0300)
tree95c33a7acfb882d07f817c23db80fbb22afb6216
parente82bcec25f19846bfb899d55c9fb5915516b378a
kvm: synchronize state from cpu context

It is not safe to retrieve the KVM internal state of a given cpu
while its potentially modifying it.

Queue the request to run on cpu context, similarly to qemu-kvm.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
kvm-all.c