From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrea Arcangeli Subject: Re: [PATCH 1/1] direct mmio for passthrough - kernel part Date: Wed, 2 Apr 2008 13:53:45 +0200 Message-ID: <20080402115345.GP19189@duo.random> References: <47F29057.7050004@qumranet.com> <47F2955B.6060200@codemonkey.ws> <47F30C63.4080402@qumranet.com> <20080402070306.GG19189@duo.random> <47F356FA.6010409@qumranet.com> <20080402102820.GI19189@duo.random> <47F36722.2000405@qumranet.com> <47F36B19.8020006@qumranet.com> <20080402115019.GO19189@duo.random> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel@lists.sourceforge.net, allen.m.kay@intel.com, Ben-Ami Yassour1 To: Avi Kivity Return-path: Content-Disposition: inline In-Reply-To: <20080402115019.GO19189@duo.random> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces@lists.sourceforge.net Errors-To: kvm-devel-bounces@lists.sourceforge.net List-Id: kvm.vger.kernel.org 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 ;) ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace