From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: RE: what happens when a PoD page is touched? Date: Wed, 18 May 2011 11:23:22 +0100 Message-ID: <4DD3BA3A0200007800041DE3@vpn.id2.novell.com> References: <20110516083905.GP24068@whitby.uk.xensource.com><291EDFCB1E9E224A99088639C4762022B37FC178F9@LONPMAILBOX01.citrite.net><291EDFCB1E9E224A99088639C4762022B37FC178FA@LONPMAILBOX01.citrite.net><291EDFCB1E9E224A99088639C4762022B37FC17A16@LONPMAILBOX01.citrite.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: James Harper Cc: George Dunlap , Tim Deegan , Paul Durrant , xen devel List-Id: xen-devel@lists.xenproject.org >>> On 18.05.11 at 06:52, "James Harper" = wrote: > Just taking a step back for a sec, maybe I'm doing something else wrong. > My balloon down code allocates memory from Windows with > MmAllocatePagesForMdlEx then hands the pages to Xen with > XENMEM_decrease_reservation. Is that all I need to do? I notice that > Linux makes a call to set_phys_to_machine(INVALID_P2M_ENTRY) for each > page, even in the hvm case. Is that some function I need to mirror too > or is that just internal Linux housekeeping and not required under > Windows? Probably not: In the HVM case this function degenerates to just a couple of BUG_ON()s. Jan