diff options
author | Avi Kivity <avi@redhat.com> | 2011-04-20 15:32:49 +0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-05-22 08:39:14 -0400 |
commit | 2d04a05bd7e93c13f13a82ac40de4065a99d069b (patch) | |
tree | 6fc122171050ca4b0a6aca5ab5aeb8d94add0108 /arch/x86/include/asm/kvm_host.h | |
parent | fd72c4192220d0086fb24356ac6ff9c3b1e067d9 (diff) | |
download | blackbird-op-linux-2d04a05bd7e93c13f13a82ac40de4065a99d069b.tar.gz blackbird-op-linux-2d04a05bd7e93c13f13a82ac40de4065a99d069b.zip |
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>
Diffstat (limited to 'arch/x86/include/asm/kvm_host.h')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index a8616ca8320e..9c3567e0f730 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -691,7 +691,6 @@ int kvm_fast_pio_out(struct kvm_vcpu *vcpu, int size, unsigned short port); void kvm_emulate_cpuid(struct kvm_vcpu *vcpu); int kvm_emulate_halt(struct kvm_vcpu *vcpu); int emulate_invlpg(struct kvm_vcpu *vcpu, gva_t address); -int emulate_clts(struct kvm_vcpu *vcpu); int kvm_emulate_wbinvd(struct kvm_vcpu *vcpu); void kvm_get_segment(struct kvm_vcpu *vcpu, struct kvm_segment *var, int seg); |