aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2011-03-28 10:53:59 -0400
committerAvi Kivity <avi@redhat.com>2011-05-11 07:56:58 -0400
commit5037f6f324cdcc6c9071dc774aba992f96c7e5ff (patch)
tree600ae6a745b1952e2de36d8a7a14034438190041 /arch/x86/include
parent1d6b114f20d06ac0749686e4d7b7c7913d9116db (diff)
KVM: x86 emulator: define callbacks for using the guest fpu within the emulator
Needed for emulating fpu instructions. Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/kvm_emulate.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_emulate.h b/arch/x86/include/asm/kvm_emulate.h
index c00aed12755d..4c0e68226113 100644
--- a/arch/x86/include/asm/kvm_emulate.h
+++ b/arch/x86/include/asm/kvm_emulate.h
@@ -158,6 +158,8 @@ struct x86_emulate_ops {
158 int (*set_dr)(int dr, unsigned long value, struct kvm_vcpu *vcpu); 158 int (*set_dr)(int dr, unsigned long value, struct kvm_vcpu *vcpu);
159 int (*set_msr)(struct kvm_vcpu *vcpu, u32 msr_index, u64 data); 159 int (*set_msr)(struct kvm_vcpu *vcpu, u32 msr_index, u64 data);
160 int (*get_msr)(struct kvm_vcpu *vcpu, u32 msr_index, u64 *pdata); 160 int (*get_msr)(struct kvm_vcpu *vcpu, u32 msr_index, u64 *pdata);
161 void (*get_fpu)(struct x86_emulate_ctxt *ctxt); /* disables preempt */
162 void (*put_fpu)(struct x86_emulate_ctxt *ctxt); /* reenables preempt */
161}; 163};
162 164
163/* Type, address-of, and value of an instruction's operand. */ 165/* Type, address-of, and value of an instruction's operand. */