From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=softfail (domain: citrix.com, ip: , mailfrom: anthony.perard@citrix.com) Received: from esa2.hc3370-68.iphmx.com (esa2.hc3370-68.iphmx.com []) by groups.io with SMTP; Mon, 29 Jul 2019 08:58:33 -0700 Authentication-Results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=anthony.perard@citrix.com; spf=Pass smtp.mailfrom=anthony.perard@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 anthony.perard@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="anthony.perard@citrix.com"; x-sender="anthony.perard@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa2.hc3370-68.iphmx.com: domain of anthony.perard@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="anthony.perard@citrix.com"; x-sender="anthony.perard@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="anthony.perard@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: 35yr0l/1cxY4/TNGEsX1tzlNc8m2G44FBjK5wQEeIzaJG9HZGFgx4tDmh84YM0ACIrs0yVHi1d eMkAd2O42x4rZgwEaqnxErMx/k77kQviXLsC6g9ex+MIJ8D8UXhuVJ3Yn4ugLWyX3OLdnz2KHV S0dF2uzISIvA7woXyToy6DAeB4MGPaaFhx029JRF1t2+KtFaGvAEQ1ghcZmppkBCxVC6hzV+kC a0MDD/NwHHVdaaUa4yRq5OdEKujjnoqq88tZFhUfLS+b+h+VL6Poks6wRQSai42S+suL96DJZS VQY= X-SBRS: 2.7 X-MesageID: 3565757 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,323,1559534400"; d="scan'208";a="3565757" From: "Anthony PERARD" To: CC: Julien Grall , , Jordan Justen , Ard Biesheuvel , Laszlo Ersek , Anthony PERARD Subject: [PATCH v4 22/35] OvmfPkg/XenPlatformPei: no hvmloader: get the E820 table via hypercall Date: Mon, 29 Jul 2019 16:39:31 +0100 Message-ID: <20190729153944.24239-23-anthony.perard@citrix.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729153944.24239-1-anthony.perard@citrix.com> References: <20190729153944.24239-1-anthony.perard@citrix.com> MIME-Version: 1.0 Return-Path: anthony.perard@citrix.com Content-Transfer-Encoding: base64 Content-Type: text/plain V2hlbiB0aGUgWGVuIFBWSCBlbnRyeSBwb2ludCBoYXMgYmVlbiB1c2VkLCBodm1sb2FkZXIgaGFz bid0IHJ1biBhbmQKaGFzbid0IHByZXBhcmVkIGFuIEU4MjAgdGFibGUuIFRoZSBvbmx5IHdheSBs ZWZ0IHRvIGdldCBhbiBFODIwIHRhYmxlCmlzIHRvIGFzayBYZW4gdmlhIGFuIGh5cGVyY2FsbCwg dGhlIGNhbGwgY2FuIG9ubHkgYmUgbWFkZSBvbmNlIHNvIGtlZXAKdGhlIHJlc3VsdCBjYWNoZWQg Zm9yIGxhdGVyLgoKUmVmOiBodHRwczovL2J1Z3ppbGxhLnRpYW5vY29yZS5vcmcvc2hvd19idWcu Y2dpP2lkPTE2ODkKU2lnbmVkLW9mZi1ieTogQW50aG9ueSBQRVJBUk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mllcyk7DQorDQorICAvLyBSZXR1cm5zIGEgZXJybm8NCisgIFJldHVybkNvZGUgPSBYZW5I eXBlcmNhbGxNZW1vcnlPcCAoWEVOTUVNX21lbW9yeV9tYXAsICZQYXJhbWV0ZXJzKTsNCisgIEFT U0VSVCAoUmV0dXJuQ29kZSA9PSAwKTsNCisNCisgIG1FODIwRW50cmllc0NvdW50ID0gUGFyYW1l dGVycy5ucl9lbnRyaWVzOw0KKw0KKyAgLy8NCisgIC8vIFNvcnQgRTgyMCBlbnRyaWVzDQorICAv Lw0KKyAgZm9yIChMb29wSW5kZXggPSAxOyBMb29wSW5kZXggPCBtRTgyMEVudHJpZXNDb3VudDsg TG9vcEluZGV4KyspIHsNCisgICAgZm9yIChJbmRleCA9IExvb3BJbmRleDsgSW5kZXggPCBtRTgy MEVudHJpZXNDb3VudDsgSW5kZXgrKykgew0KKyAgICAgIGlmIChtRTgyMEVudHJpZXNbSW5kZXgg LSAxXS5CYXNlQWRkciA+IG1FODIwRW50cmllc1tJbmRleF0uQmFzZUFkZHIpIHsNCisgICAgICAg IFRtcEVudHJ5ID0gbUU4MjBFbnRyaWVzW0luZGV4XTsNCisgICAgICAgIG1FODIwRW50cmllc1tJ bmRleF0gPSBtRTgyMEVudHJpZXNbSW5kZXggLSAxXTsNCisgICAgICAgIG1FODIwRW50cmllc1tJ bmRleCAtIDFdID0gVG1wRW50cnk7DQorICAgICAgfQ0KKyAgICB9DQorICB9DQorDQorICAqQ291 bnQgPSBtRTgyMEVudHJpZXNDb3VudDsNCisgICpFbnRyaWVzID0gbUU4MjBFbnRyaWVzOw0KKw0K KyAgcmV0dXJuIEVGSV9TVUNDRVNTOw0KIH0NCiANCiAvKioNCi0tIApBbnRob255IFBFUkFSRAoK