From: Laurent Vivier <Laurent.Vivier-6ktuUTfB/bM@public.gmane.org>
To: kvm-devel <kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: [PATCH 0/5] Split the emulator: decode & execute
Date: Wed, 29 Aug 2007 18:39:45 +0200 [thread overview]
Message-ID: <46D5A151.80000@bull.net> (raw)
These patches split the emulator in two parts: one to decode the instruction,
the other to execute it. The decode part is then called only when needed.
[PATCH 1/5] x86_emulate-remove_unused, some cleanup: remove unused functions
[PATCH 2/5] x86_emulate-context, move all x86_emulate_memop() common variables
between decode and execute to a structure decode_cache.
struct decode_cache {
u8 twobyte;
u8 b;
u8 lock_prefix;
u8 rep_prefix;
u8 op_bytes;
u8 ad_bytes;
struct operand src;
struct operand dst;
unsigned long *override_base;
unsigned int d;
unsigned long regs[NR_VCPU_REGS];
unsigned long eip;
/* modrm */
u8 modrm;
u8 modrm_mod;
u8 modrm_reg;
u8 modrm_rm;
u8 use_modrm_ea;
unsigned long modrm_ea;
unsigned long modrm_val;
};
[PATCH 3/5] x86_emulate-decode_insn, move all decoding process to function
x86_decode_insn().
[PATCH 4/5] x86_emulate-split, emulate_instruction() calls now x86_decode_insn()
and x86_emulate_insn(). x86_emulate_insn() is x86_emulate_memop()
without the decoding part.
[PATCH 5/5] x86_emulate-optimize, move emulate_ctxt to kvm_vcpu to keep emulate
context when we exit from kvm module. Call x86_decode_insn() only
when needed. Modify x86_emulate_insn() to not modify the context if
it must be re-entered.
Signed-off-by: Laurent Vivier <Laurent.Vivier-6ktuUTfB/bM@public.gmane.org>
--
------------- Laurent.Vivier-6ktuUTfB/bM@public.gmane.org --------------
"Software is hard" - Donald Knuth
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
next reply other threads:[~2007-08-29 16:39 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-29 16:39 Laurent Vivier [this message]
[not found] ` <46D5A151.80000-6ktuUTfB/bM@public.gmane.org>
2007-08-31 20:26 ` [PATCH 0/5] Split the emulator: decode & execute Andi Kleen
[not found] ` <200708312226.23678.ak-l3A5Bk7waGM@public.gmane.org>
2007-09-01 14:19 ` Avi Kivity
2007-09-09 12:15 ` Avi Kivity
[not found] ` <46E3E3D4.1050206-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-09-12 11:31 ` Laurent Vivier
[not found] ` <46E7CDF5.8050403-6ktuUTfB/bM@public.gmane.org>
2007-09-12 11:40 ` Avi Kivity
2007-09-14 16:14 ` Laurent Vivier
[not found] ` <46EAB36E.2060004-6ktuUTfB/bM@public.gmane.org>
2007-09-14 16:57 ` Avi Kivity
[not found] ` <46EABD97.5060503-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-09-17 16:14 ` Laurent Vivier
[not found] ` <46EEA801.20404-6ktuUTfB/bM@public.gmane.org>
2007-09-17 17:29 ` Avi Kivity
[not found] ` <46EEB971.9000507-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-09-17 19:08 ` Laurent Vivier (Bull)
[not found] ` <46EED091.2090404-6ktuUTfB/bM@public.gmane.org>
2007-09-17 19:16 ` Avi Kivity
[not found] ` <46EED2A2.8090803-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-09-17 19:59 ` Laurent Vivier
[not found] ` <46EEDC92.80304-6ktuUTfB/bM@public.gmane.org>
2007-09-18 5:59 ` Avi Kivity
[not found] ` <46EF695D.1020203-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-09-18 7:40 ` Laurent Vivier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46D5A151.80000@bull.net \
--to=laurent.vivier-6ktuutfb/bm@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox