kvm: validate context for kvm cpu get/put operations
commitdbaa07c404d05676df8a081e60b6e66344eafc51
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 4 May 2010 12:45:26 +0000 (4 09:45 -0300)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 11 May 2010 17:02:22 +0000 (11 14:02 -0300)
tree694871aaa1853bb7422dfb385119eea9340904b8
parentced6c05143b49a910342862ed9c14204e1177ee4
kvm: validate context for kvm cpu get/put operations

Validate that KVM vcpu state is only read/written from cpu thread itself
or that cpu is stopped.

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