On 27/11/2018 11:45, Razvan Cojocaru wrote:
> On 11/27/18 1:32 PM, Roger Pau Monné wrote:
>> Would it be possible to add some kind of flag to the emulator to
>> signal whether p2m restrictions should be enforced/ignored?
>> hvmemul_acquire_page seems like a suitable place, but I'm not that
>> familiar with the emulator.
>>
>> Then you could generate vm events from the emulator itself, which
>> AFAICT is the only way to handle this instruction execution issue.
> I hope so, we'll definitely look into that.

FWIW, There is already a plan(tm).  It was discussed at least in part in
Budapest.

The emulator needs to start honouring P2M permissions and generating
vm_events.

Then, a vm_event response can reply saying "please emulate the
instruction with this temporary change to the permissions", so
write-ability to a read-only page can be granted at the discretion of
the introspection agent.

That said, there is a huge amount of work required to make this happen,
and I haven't had time to do a clear design yet.

~Andrew

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to