[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 Thu, Sep 18, 2014 at 8:54 PM, Ian Campbell <ian.campbell@xxxxxxxxxx> wrote: On Mon, 2014-09-15 at 16:02 +0200, Tamas K Lengyel wrote: Ack, that would make sense.
I tend to write equality tests this way where one side of the test is a constant. It has happened in the past that such equality tests were used as a cover in attempting to sneak bugdoors into Linux (see https://freedom-to-tinker.com/blog/felten/the-linux-backdoor-attempt-of-2003 for more info).
The radix tree approach has been retired in v7 as I found the page_info approach you suggested more palatable. Thus this entire block is gone in the latest revision. > @@ -627,15 +741,11 @@ static int apply_one_level(struct domain *d, Ack, I think this already was fixed in v7.
I find the approach as it is right now a bit more straight forward as all the inputs that affect the permissions are explicitly there as inputs. I'll switch it to what you suggest if you feel strongly about it though. > From a performance perspective my understanding is that bitmasks under-perform pure numeric comparisons. I see that with the FSC_FLT defines the masking approach has been taken which I guess I'll switch to as to reduce bloating but it might be worth taking a second look at.
It's also supported by clang but you are right.
Ack. Somehow I was oblivious to the fact we already have defines for these.. I guess I was looking for the values defined in the manual in 0b form. Either way, since we already have defines for these and I only care about the permission defines anyway, I'll drop the new enums and use the approach that's in place already. Thanks! Tamas
_______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |