Re: [PATCH 7/8] xen/mmu: Introduce IDENTITY_FRAME_BIT

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ian Campbell
Date: Tuesday, January 4, 2011 - 9:26 am

On Thu, 2010-12-30 at 19:48 +0000, Konrad Rzeszutek Wilk wrote:

I don't think the inner-if buys us anything here and the whole thing is
equivalent to:
	if (mfn != INVALID_P2M_ENTRY)
		mfn &= ~(FOREIGN_FRAME_BIT|IDENTITY_FRAME_BIT);

Not sure if the FOREIGN_FRAME_BIT|IDENTITY_FRAME_BIT construct gets
enough use to be worthy of a #define FRAME_TYPE_MASK etc.


It's probably worth defining IDENTITY_FRAME(m) in the pattern of
FOREIGN_FRAME(m).

Ian.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 7/8] xen/mmu: Introduce IDENTITY_FRAME_BIT, Konrad Rzeszutek Wilk, (Thu Dec 30, 12:48 pm)
Re: [PATCH 7/8] xen/mmu: Introduce IDENTITY_FRAME_BIT, Ian Campbell, (Tue Jan 4, 9:26 am)
Re: [PATCH 7/8] xen/mmu: Introduce IDENTITY_FRAME_BIT, Konrad Rzeszutek Wilk, (Tue Jan 4, 9:45 am)