|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] [PATCH] Calculate correct instruction length for data-fa
On 28 Apr 2006, at 10:02, Petersson, Mats wrote:
I'll look at your previous suggestion of merging the MMIO emulation
into
x86_emulate later on today. We probably do need to sum up the length
and
pass it back to the caller - as that code doesn't know how to update
the
correct field of the different processor architectures (vmcb vs. vmcs
vs. stack-frame for Para-virtual machine). But it shouldn't be
particularly hard to achieve this.
The emulator uses and updates the eip field of the passed-in regs
structure. We may want to change this interface in future by having the
caller explicitly pass in a buffer containing the instruction, and the
number of valid bytes in the buffer. Or add a 'fetch_insn_byte'
callback hook to the emulator interface.
-- Keir
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|