[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH for-4.5 v6 13/17] xen/arm: Data abort exception (R/W) mem_events.
On Tue, Sep 16, 2014 at 6:50 PM, Ian Campbell <ian.campbell@xxxxxxxxxx> wrote: On Tue, 2014-09-16 at 12:07 +0200, Tamas K Lengyel wrote: It wouldn't really be via the default_access, I would just have a separate function that is used to remove pre-existing mem_access entries, as that would only happen when the user initiates a mem_access op with rwx permissions. Right now I just bundled that into this path, but as this also gets called by non-memaccess paths its better to separate the two.
Not particularly, because we are locking at a different level here.. x86 locks on a gfn level as that's where the permission are stored vs. in ARM we need to lock on a p2m level because the tree might get modified otherwise. So abstracting this code while having the appropriate locks sprinkled into it is not very nice.. Essentially at all lock location for both archs we would need to call down to the arch specific function which would determine where it needs to lock.. and that wouldn't really help in making the code easy to follow. Tamas _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |