KVM: x86 emulator: emulate CLTS internally
authorAvi Kivity <avi@redhat.com>
Wed, 20 Apr 2011 12:32:49 +0000 (15:32 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 22 May 2011 12:39:14 +0000 (08:39 -0400)
commit2d04a05bd7e93c13f13a82ac40de4065a99d069b
tree6fc122171050ca4b0a6aca5ab5aeb8d94add0108
parentfd72c4192220d0086fb24356ac6ff9c3b1e067d9
KVM: x86 emulator: emulate CLTS internally

Avoid using ctxt->vcpu; we can do everything with ->get_cr() and ->set_cr().

A side effect is that we no longer activate the fpu on emulated CLTS; but that
should be very rare.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/emulate.c
arch/x86/kvm/x86.c