xen-devel
RE: [Xen-devel] Fetching instructions after page-fault, near page bounda
> -----Original Message-----
> From: Keir Fraser [mailto:Keir.Fraser@xxxxxxxxxxxx]
> Sent: 02 June 2006 17:40
> To: Petersson, Mats
> Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Xen-devel] Fetching instructions after
> page-fault, near page boundary?
>
>
> On 2 Jun 2006, at 17:34, Petersson, Mats wrote:
>
> > Does anyone see a problem with this method?
>
> I wouldn't trust it. What if you have code running in paged
> memory (e.g., random privileged userspace process)? Pages can
> disappear under your feet. I think you need to remember how
> many bytes you managed to read and do the job thoroughly.
> It's not that much extra code.
But that means that we'd have to parse the instruction bytes in Xen
(since we can't read them as trivially in QEMU) and figure out how many
bytes the instruction is. Since both AMD and Intel have problems with
getting the correct number of bytes from the processor during a
page-fault intercept, it's no help that Intel SOMETIMES have a correct
number of bytes in a VMCS entry...
How do we do it properly, if there's non-present page, re-inject the
page-fault, I guess?
--
Mats
>
> -- Keir
>
>
>
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] Fetching instructions after page-fault, near page boundary?, Petersson, Mats
- Re: [Xen-devel] Fetching instructions after page-fault, near page boundary?, Keir Fraser
- RE: [Xen-devel] Fetching instructions after page-fault, near page boundary?,
Petersson, Mats <=
- Re: [Xen-devel] Fetching instructions after page-fault, near page boundary?, Keir Fraser
- RE: [Xen-devel] Fetching instructions after page-fault, near page boundary?, Petersson, Mats
- Re: [Xen-devel] Fetching instructions after page-fault, near page boundary?, Keir Fraser
- RE: [Xen-devel] Fetching instructions after page-fault, near page boundary?, Petersson, Mats
- Re: [Xen-devel] Fetching instructions after page-fault, near page boundary?, Keir Fraser
- [Xen-devel] Usage of "container_of" in QEMU, Petersson, Mats
- [Xen-devel] Re: Usage of "container_of" in QEMU, Keir Fraser
Re: [Xen-devel] Fetching instructions after page-fault, near page boundary?, Anthony Liguori
|
|
|