[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 6/9] x86/p2m: avoid unnecessary calls of write_p2m_entry_pre() hook


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Fri, 8 Jan 2021 16:38:27 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oL8nIqqTbXjIE7TbilB8EyZ9oVa08ewr2MVRgYVq81s=; b=GmkXurMLXAHSwzViCcsbpsiVqUrk/l+dxmUcXgJm0o+/UPlWzZ/sEEfOxvBR0iiWPkKPgU6VN2LP9nESVKdtYabKhvAiK0KJc+iG+8IWXbuIE9N0G9LEQVUBUqqRSe/xSgBOU/ZYiMrz4u8yRYtab3rieOtGSoXMrP5zAv+sDjmiQryxulDH9XgV1Tjl6PBMxrsAIt5irqL8aNODGY1IbxALkcJ9QO5zS5+yRpAlxKWK8WI7MMUikoSqxMW1hnfejATF46/NS/+DUgYsQ7+pml31/WI1xvgFFtxc1vuarU0dpe1nKSmFEqOoztk4jclbLm6gkk5UWZXOagbQYBFt9w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UnD725JCmin/gzupC5niDFAvBwEcNn43N2XISnOEd8rOkBHTgblw4uENZWkoE2hCJIX6WIxsT/jBASzh0o1QEt8azWhWkQcRJIzPfibWgHHcfE1JNjpYKNdE4+/iZrrgOzTJqPbHfJWsIvXzQOLxUfR3hES3sr6+T2M3aFL71NAfA6BsVH00eXHupdD0AUUNeVbKwWkZGwGMKoTKWXy27pNLpTh8KYqtiewPiJvDOVZ4dSS7tg9CAdQNGVH/1xBhCayFSvzJf6bypqP5aNSMVYCMSmuIVtC7/ecb5LZjM6QSu/3dTps7lMma62tC9SiWBkqpRGmtxlwuhZfh3ujfoQ==
  • Authentication-results: esa3.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, George Dunlap <George.Dunlap@xxxxxxxxxxxxx>
  • Delivery-date: Fri, 08 Jan 2021 15:38:40 +0000
  • Ironport-sdr: MaV1h2Ot5W3i2Nu0a/XqNz3O+zEkBL4DPSVhD3d6Oqrle3BeB+qZMq2rM3UAtf8WoBtCT6jqtU B8S7WSqKrQR1Bfg82s44SuSJc6mj/YBiNFjL95rFeCwW0Ay96c0mh4leJiDemzzvqRqPec1w3+ DkbOFYU25gqo/cvRRA50Q0Byc0CIUPm1mYKLdFmfRprrzvt6pyBeBoUq1nYKmUHVnqbRGX8oWt NcYK10h3A4FH9AXa3BzsooFt5Omt2GV6hA1CZTqzRpPGCI/LIasDIejdd1jULbPTtwmkHcaWAj fGQ=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Fri, Nov 06, 2020 at 10:37:35AM +0100, Jan Beulich wrote:
> When shattering a large page, we first construct the new page table page
> and only then hook it up. The "pre" hook in this case does nothing, for
> the page starting out all blank. Avoid 512 calls into shadow code in
> this case by passing in INVALID_GFN, indicating the page being updated
> is (not yet) associated with any GFN. (The alternative to this change
> would be to actually pass in a correct GFN, which can't be all the same
> on every loop iteration.)
> 
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

Acked-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>

I agree it's silly to pass the gfn when populating the page table
page, as there's no gfn being updated (yet).

Thanks, Roger.



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.