|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] [PATCH] enable port accesses with (almost) full register
On 18/9/06 11:40, "Jan Beulich" <jbeulich@xxxxxxxxxx> wrote:
> It'll be immediately needed if string I/O instructions are to also go that
> path, unless you'd want them to access the original user buffer (and
> trap the eventual page fault).
We emulate INS/OUTS as a sequence of IN/OUT plus copy_to/from_guest. Unless
the SMM code depends on us not having 'clobbered' %eax (which we would need
to do to emulate OUTS with OUT) then we should be okay there. I guess how
complicated the save/restore code needs to be depends on just how accurately
we need to set up the register state for this HP SMM code -- for example, I
guess we get away with SS:ESP being incorrect; can we get away with EAX as
well? Hmm... I guess you have made your point that there are devils in the
detail of doing this emulation. ;-)
> Also, I might need a little more clarification on the stack (ab)use for
> creating stubs.
Just declare a char-array automatic variable, fill it with machine code, and
call it.
-- Keir
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- Re: [Xen-devel] [PATCH] enable port accesses with (almost) full register context, (continued)
- Re: [Xen-devel] [PATCH] enable port accesses with (almost) full register context, Keir Fraser
- Re: [Xen-devel] [PATCH] enable port accesses with (almost) full register context, Jan Beulich
- Re: [Xen-devel] [PATCH] enable port accesses with (almost) full register context, Keir Fraser
- Re: [Xen-devel] [PATCH] enable port accesses with (almost) full register context, Jan Beulich
- Re: [Xen-devel] [PATCH] enable port accesses with (almost) full register context, Keir Fraser
- Re: [Xen-devel] [PATCH] enable port accesses with (almost) full register context, Jan Beulich
- Re: [Xen-devel] [PATCH] enable port accesses with (almost) full register context, Keir Fraser
- Re: [Xen-devel] [PATCH] enable port accesses with (almost) full register context, Jan Beulich
- Re: [Xen-devel] [PATCH] enable port accesses with (almost) full register context, Keir Fraser
- Re: [Xen-devel] [PATCH] enable port accesses with (almost) full register context, Jan Beulich
- Re: [Xen-devel] [PATCH] enable port accesses with (almost) full register context,
Keir Fraser <=
- Re: [Xen-devel] [PATCH] enable port accesses with (almost) full register context, Jan Beulich
- Re: [Xen-devel] [PATCH] enable port accesses with (almost) full register context, Keir Fraser
- Re: [Xen-devel] [PATCH] enable port accesses with (almost) full register context, Jan Beulich
|
|
|
|
|