Re: [PATCH 1/1] direct mmio for passthrough - kernel part

Andrea Arcangeli
2008-04-02T11:53:45Z

On Wed, Apr 02, 2008 at 01:50:19PM +0200, Andrea Arcangeli wrote:
> if (pfn_valid(pfn)) {
> page = pfn_to_page(pfn);
> if (!PageReserved(page)) {
> BUG_ON(page_count(page) != 1);
> if (is_writeable_pte(*spte))
> SetPageDirty(page);
> if (*spte & PT_ACCESSED_MASK)
> mark_page_accessed(page);
> }
> }

warning the indenting of the above in text-mode was wrong... read it
like a c compiler would do sorry ;)