Re: [PATCH 6/8] xen/debug: WARN_ON when 1-1 but no _PAGE_IOMAP flag set.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Konrad Rzeszutek Wilk
Date: Tuesday, January 4, 2011 - 11:46 am

On Tue, Jan 04, 2011 at 05:24:38PM +0000, Ian Campbell wrote:

I think the 'XEN_DEBUG' works better.

I was thinking to leave it as a way to weed out bugs, but I could as well
just leave it in my "debug" branch and not propose it upstream.

I am not sure how to remove the _PAGE_IOMAP fully. We need some _flag_ to
signal 'xen_pte_val' that the PTE should not be looked up in the M2P.

Otherwise, for identity mappings, the value is 0xfffff.. (or 0x55555.. sometimes)
and the PTE ends up being messed up. Instead there is a check to see if
_PAGE_IOMAP is part of the PTE, and if so, no M2P lookup is done.

I guess we could do the M2P irregardless and just see if it is 0xfffff... and
if so just return the PTE without any changes.

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

Messages in current thread:
[PATCH 6/8] xen/debug: WARN_ON when 1-1 but no _PAGE_IOMAP ..., Konrad Rzeszutek Wilk, (Thu Dec 30, 12:48 pm)
Re: [PATCH 6/8] xen/debug: WARN_ON when 1-1 but no _PAGE_I ..., Konrad Rzeszutek Wilk, (Tue Jan 4, 11:46 am)