diff options
author | Gleb Natapov <gleb@redhat.com> | 2010-03-18 09:20:17 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-05-17 05:16:15 -0400 |
commit | 38ba30ba51a003360f177d5b8349439fe44fc55b (patch) | |
tree | 27c6667cf9b0470e13d371bd9b86c8a605e2e52c /arch/x86/include | |
parent | 2dafc6c234b6064189405f42e1602e9a0abe5a44 (diff) |
KVM: x86 emulator: Emulate task switch in emulator.c
Implement emulation of 16/32 bit task switch in emulator.c
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/kvm_emulate.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_emulate.h b/arch/x86/include/asm/kvm_emulate.h index f901467a18b0..bd469296f5e5 100644 --- a/arch/x86/include/asm/kvm_emulate.h +++ b/arch/x86/include/asm/kvm_emulate.h | |||
@@ -11,6 +11,8 @@ | |||
11 | #ifndef _ASM_X86_KVM_X86_EMULATE_H | 11 | #ifndef _ASM_X86_KVM_X86_EMULATE_H |
12 | #define _ASM_X86_KVM_X86_EMULATE_H | 12 | #define _ASM_X86_KVM_X86_EMULATE_H |
13 | 13 | ||
14 | #include <asm/desc_defs.h> | ||
15 | |||
14 | struct x86_emulate_ctxt; | 16 | struct x86_emulate_ctxt; |
15 | 17 | ||
16 | /* | 18 | /* |
@@ -210,5 +212,8 @@ int x86_decode_insn(struct x86_emulate_ctxt *ctxt, | |||
210 | struct x86_emulate_ops *ops); | 212 | struct x86_emulate_ops *ops); |
211 | int x86_emulate_insn(struct x86_emulate_ctxt *ctxt, | 213 | int x86_emulate_insn(struct x86_emulate_ctxt *ctxt, |
212 | struct x86_emulate_ops *ops); | 214 | struct x86_emulate_ops *ops); |
215 | int emulator_task_switch(struct x86_emulate_ctxt *ctxt, | ||
216 | struct x86_emulate_ops *ops, | ||
217 | u16 tss_selector, int reason); | ||
213 | 218 | ||
214 | #endif /* _ASM_X86_KVM_X86_EMULATE_H */ | 219 | #endif /* _ASM_X86_KVM_X86_EMULATE_H */ |