diff options
author | Laurent Vivier <Laurent.Vivier@bull.net> | 2007-09-18 05:27:27 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 10:52:47 -0500 |
commit | 1be3aa47182e94944e57b176a5c4ee4e74f1ce33 (patch) | |
tree | 413c3e2c81aabd8fdcbfb21b994e600575a6949b /drivers/kvm/x86_emulate.h | |
parent | 8b4caf6650808024c37ec4b29cf81b308af998b1 (diff) |
KVM: emulate_instruction() calls now x86_decode_insn() and x86_emulate_insn()
emulate_instruction() calls now x86_decode_insn() and x86_emulate_insn().
x86_emulate_insn() is x86_emulate_memop() without the decoding part.
Signed-off-by: Laurent Vivier <Laurent.Vivier@bull.net>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/x86_emulate.h')
-rw-r--r-- | drivers/kvm/x86_emulate.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/kvm/x86_emulate.h b/drivers/kvm/x86_emulate.h index c354200d5834..28acad416bca 100644 --- a/drivers/kvm/x86_emulate.h +++ b/drivers/kvm/x86_emulate.h | |||
@@ -178,12 +178,9 @@ struct x86_emulate_ctxt { | |||
178 | #define X86EMUL_MODE_HOST X86EMUL_MODE_PROT64 | 178 | #define X86EMUL_MODE_HOST X86EMUL_MODE_PROT64 |
179 | #endif | 179 | #endif |
180 | 180 | ||
181 | /* | 181 | int x86_decode_insn(struct x86_emulate_ctxt *ctxt, |
182 | * x86_emulate_memop: Emulate an instruction that faulted attempting to | 182 | struct x86_emulate_ops *ops); |
183 | * read/write a 'special' memory area. | 183 | int x86_emulate_insn(struct x86_emulate_ctxt *ctxt, |
184 | * Returns -1 on failure, 0 on success. | 184 | struct x86_emulate_ops *ops); |
185 | */ | ||
186 | int x86_emulate_memop(struct x86_emulate_ctxt *ctxt, | ||
187 | struct x86_emulate_ops *ops); | ||
188 | 185 | ||
189 | #endif /* __X86_EMULATE_H__ */ | 186 | #endif /* __X86_EMULATE_H__ */ |