[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH RFC V9 4/5] xen, libxc: Request page fault injection via libxc



Hi,

At 12:18 +0300 on 02 Sep (1409656686), Razvan Cojocaru wrote:
> While we need to set the data per-domain and have whatever VCPU inject
> the page fault - _but_only_if_ it's in usermode and its CR3 points to
> something interesting.

That's a strange and specific thing to ask the hypervisor to do for
you.  Given that you can already trap CR3 changes as mem-events can
you trigger the fault injection in response to the contect switch?
I guess that would probably catch it in kernel mode. :(

It also seems like it will be hard to do reliably -- HVM guests don't
trap on user<->kernel transitions so we're not guaranteed to be able
to stop in the right place.

I wonder if there's some trick you can play by tinkering with other
memory permissions to trigger an event at the right time (e.g. find
the process you want and walk its stack to find a user-space return
address and then mark it read-only?)

Tim.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.