From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: citrix.com, ip: 216.71.145.153, mailfrom: roger.pau@citrix.com) Received: from esa2.hc3370-68.iphmx.com (esa2.hc3370-68.iphmx.com [216.71.145.153]) by groups.io with SMTP; Thu, 08 Aug 2019 03:46:05 -0700 Authentication-Results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=roger.pau@citrix.com; spf=Pass smtp.mailfrom=roger.pau@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com Received-SPF: None (esa2.hc3370-68.iphmx.com: no sender authenticity information available from domain of roger.pau@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="roger.pau@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa2.hc3370-68.iphmx.com: domain of roger.pau@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="roger.pau@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ~all" Received-SPF: None (esa2.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: NadQIsAcnjp7EmaTgrIoVN21iVu/T3zkib1J0gnqpJNT1+iwM1frDDymzn2BW5WHIoxKwxIz4L MORPd0gV7AyvkA2GwaZyBsmOHWO9zfYVRtLLrHM7J8gXos0Qs0ar8wW2rvydVSDUReJ5TLqsYl aZkXqwKpKvEQ9i5yG5YlM7ygvUksSCZ3AcV5HSIGDZgnxq6EV5Kt1Wh4+wncVfYT/6oig5tcz7 og0Ni5Je477ZONjDXdK3I+kbZsFAY0vRRNBS9BJ7MbOH7xhTqvT6C71t250fgq2Yx7psW/clw7 koQ= X-SBRS: 2.7 X-MesageID: 4017724 X-Ironport-Server: esa2.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.64,360,1559534400"; d="scan'208";a="4017724" Date: Thu, 8 Aug 2019 12:45:58 +0200 From: =?UTF-8?B?Um9nZXIgUGF1IE1vbm7DqQ==?= To: Anthony PERARD CC: , Julien Grall , , Jordan Justen , Ard Biesheuvel , Laszlo Ersek Subject: Re: [edk2-devel] [PATCH v4 22/35] OvmfPkg/XenPlatformPei: no hvmloader: get the E820 table via hypercall Message-ID: <20190808104558.vm6dfic5dntjsnt4@Air-de-Roger> References: <20190729153944.24239-1-anthony.perard@citrix.com> <20190729153944.24239-23-anthony.perard@citrix.com> <20190807150849.b6alhjw2lgcjpmxx@Air-de-Roger> <20190808104118.GS1242@perard.uk.xensource.com> MIME-Version: 1.0 In-Reply-To: <20190808104118.GS1242@perard.uk.xensource.com> User-Agent: NeoMutt/20180716 Return-Path: roger.pau@citrix.com X-ClientProxiedBy: AMSPEX02CAS02.citrite.net (10.69.22.113) To AMSPEX02CL02.citrite.net (10.69.22.126) Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit On Thu, Aug 08, 2019 at 11:41:18AM +0100, Anthony PERARD wrote: > On Wed, Aug 07, 2019 at 05:14:33PM +0200, Roger Pau Monné wrote: > > On Mon, Jul 29, 2019 at 04:39:31PM +0100, Anthony PERARD wrote: > > > When the Xen PVH entry point has been used, hvmloader hasn't run and > > > hasn't prepared an E820 table. The only way left to get an E820 table > > > is to ask Xen via an hypercall, the call can only be made once so keep > > > the result cached for later. > > > > I think we agreed that the above is not true, and that the memory > > map can be fetched as many times as desired using the hypercall > > interface. > > Yes, I'll change the commit message. How about: > > When the Xen PVH entry point has been used, hvmloader hasn't run and > hasn't prepared an E820 table. The only way left to get an E820 table > is to ask Xen via an hypercall. We keep the result cached to avoid > making a second hypercall which would give the same result. LGTM, thanks.