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

Re: [Xen-devel] [PATCH] arm: xen: foreign mapping PTEs are special.



On Fri, 2013-12-06 at 17:48 +0000, Stefano Stabellini wrote:
> On Wed, 4 Dec 2013, Ian Campbell wrote:
> > These mappings are in fact special and require special handling in privcmd,
> > which already exists. Failure to mark the PTE as special on arm64 causes 
> > all sorts of bad PTE fun.
> > 
> > x86 already gets this correct.
> 
> Yes, but x86 does that for PV guests, not for autotranslate guests (for
> which the function return -EINVAL).
> 
> Given that in the ARM case we are changing the p2m underneath, why do we
> also need to mark them special?

It's not about the p2m, it's about the handling in privcmd wrt setup and
teardown of the stage one mapping which goes along with the p2m
manipulations.

Without this the normal rmap counting kicks in and complains about the
mapcount being -1.

It's possible that we could handle this by implementing vma fault
handling for the privcmd driver, but that would mean a lot more book
keeping (e.g. to know if the ioctl has been made for a particular
address or not) and would mean we diverged more from the pv paths.

Ian.


_______________________________________________
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®.