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:39:54 -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: 8q3tlYICukgJ6BSSfvy3UDOVQWAYS8kiKL6aTnHIdTfPDiZM0n70PxgYspbqd78ZGiXwL/4NQz 6mE93V4wxW4LVtzB05UvdljuVto1M2xyc8JtFuK4mtwDQ4CR6W2E4uAnzvpOUSHc9Ef/dJqBq7 aVb0SzYl8cpPnvC4TWKkKc/XoyO/P2dQhy+HaXJgRZJ5IghxrA4HpYWkMjofrU7If7VsBMVtYz YrostINP1SUHguDdGKmZPmraMdxf8xwzIeLNFufMnzDpkLfeU9cy1QkmvblpDnGvcmcfGNBqwT kEs= X-SBRS: 2.7 X-MesageID: 3564633 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="3564633" From: "Anthony PERARD" To: CC: Julien Grall , , Jordan Justen , Ard Biesheuvel , Laszlo Ersek , Anthony PERARD Subject: [PATCH v4 04/35] OvmfPkg: Introduce XenPlatformPei Date: Mon, 29 Jul 2019 16:39:13 +0100 Message-ID: <20190729153944.24239-5-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 SW50cm9kdWNlIFhlblBsYXRmb3JtUGVpLCBhIGNvcHkgb2YgT3ZtZlBrZy9QbGF0Zm9ybVBlaSB3 aXRob3V0IHNvbWUKb2YgUUVNVSBzcGVjaWZpYyBpbml0aWFsaXphdGlvbiwgWGVuIGRvZXMgbm90 IHN1cHBvcnQgUWVtdUZ3Q2ZnLgoKVGhpcyBuZXcgbW9kdWxlIHdpbGwgYmUgYWRqdXN0ZWQgdG8g YWNjb21tb2RhdGUgWGVuIFBWSC4KCmZ3X2NmZyBkZXBlbmRlbnRzIHRoYXQgaGF2ZSBiZWVuIHJl bW92ZWQsIHdoaWNoIGFyZSBkeW5hbWljYWxseSBza2lwcGVkCndoZW4gcnVubmluZyBQbGF0Zm9y bVBlaSBvbiBYZW46Ci0gR2V0Rmlyc3ROb25BZGRyZXNzKCk6IGNvbn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gs IGFkZCBBU1NFUlQgYmVmb3JlIENwdURlYWRMb29wKQogICAgICAtIHJlYmFzZWQsIFNQRFgKCiBP dm1mUGtnL092bWZYZW4uZHNjICAgICAgICAgICAgICAgICAgICAgICB8ICAgMiArLQogT3ZtZlBr Zy9Pdm1mWGVuLmZkZiAgICAgICAgICAgICAgICAgICAgICAgfCAgIDIgKy0KIE92bWZQa2cvWGVu UGxhdGZvcm1QZWkvWGVuUGxhdGZvcm1QZWkuaW5mIHwgIDk2ICsrKysrCiBPdm1mUGtnL1hlblBs YXRmb3JtUGVpL0Ntb3MuaCAgICAgICAgICAgICB8ICA1MiArKysKIE92bWZQa2cvWGVuUGxhdGZv cm1QZWkvUGxhdGZvcm0uaCAgICAgICAgIHwgMTA4ICsrKysrKwogT3ZtZlBrZy9YZW5QbGF0Zm9y bVBlaS9YZW4uaCAgICAgICAgICAgICAgfCAgMzkgKysKIE92bWZQa2cvWGVuUGxhdGZvcm1QZWkv QW1kU2V2LmMgICAgICAgICAgIHwgIDY0ICsrKysKIE92bWZQa2cvWGVuUGxhdGZvcm1QZWkvQ2xl YXJDYWNoZS5jICAgICAgIHwgMTEyICsrKysrKwogT3ZtZlBrZy9YZW5QbGF0Zm9ybVBlaS9DbW9z LmMgICAgICAgICAgICAgfCAgNjAgKysrCiBPdm1mUGtnL1hlblBsYXRmb3JtUGVpL0Z2LmMgICAg ICAgICAgICAgICB8ICA3NiArKysrCiBPdm1mUGtnL1hlblBsYXRmb3JtUGVpL01lbURldGVjdC5j ICAgICAgICB8IDQyMSArKysrKysrKysrKysrKysrKysrKwogT3ZtZlBrZy9YZW5QbGF0Zm9ybVBl aS9QbGF0Zm9ybS5jICAgICAgICAgfCA0NDQgKysrKysrKysrKysrKysrKysrKysrKwogT3ZtZlBr Zy9YZW5QbGF0Zm9ybVBlaS9YZW4uYyAgICAgICAgICAgICAgfCAyMTkgKysrKysrKysrKysKIE1h aW50YWluZXJzLnR4dCAgICAgICAgICAgICAgICAgICAgICAgICAg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gICAgKipQZWlTZXJ2aWNlcywN CisgIElOIEVGSV9QRUlfTk9USUZZX0RFU0NSSVBUT1IgICpOb3RpZnlEZXNjcmlwdG9yLA0KKyAg SU4gVk9JRCAgICAgICAgICAgICAgICAgICAgICAgKlBwaQ0KKyAgKQ0KK3sNCisgIEVGSV9QRUlf TVBfU0VSVklDRVNfUFBJICpNcFNlcnZpY2VzOw0KKyAgRUZJX1NUQVRVUyAgICAgICAgICAgICAg U3RhdHVzOw0KKw0KKyAgREVCVUcgKChERUJVR19JTkZPLCAiJWE6ICVhXG4iLCBnRWZpQ2FsbGVy QmFzZU5hbWUsIF9fRlVOQ1RJT05fXykpOw0KKw0KKyAgLy8NCisgIC8vIENsZWFyIGNhY2hlIG9u IGFsbCB0aGUgQVBzIGluIHBhcmFsbGVsLg0KKyAgLy8NCisgIE1wU2VydmljZXMgPSBQcGk7DQor ICBTdGF0dXMgPSBNcFNlcnZpY2VzLT5TdGFydHVwQWxsQVBzICgNCisgICAgICAgICAgICAgICAg ICAgICAgICAgKENPTlNUIEVGSV9QRUlfU0VSVklDRVMgKiopUGVpU2VydmljZXMsDQorICAgICAg ICAgICAgICAgICAgICAgICAgIE1wU2VydmljZXMsDQorICAgICAgICAgICAgICAgICAgICAgICAg IENsZWFyQ2FjaGUsICAgICAgICAgIC8vIFByb2NlZHVyZQ0KKyAgICAgICAgICAgICAgICAgICAg ICAgICBGQUxTRSwgICAgICAgICAgICAgICAvLyBTaW5nbGVUaHJlYWQNCisgICAgICAgICAgICAg ICAgICAgICAgICAgMCwgICAgICAgICAgICAgICAgICAgLy8gVGltZW91dEluTWljcm9TZWNvbmRz OiBpbmYuDQorICAgICAgICAgICAgICAgICAgICAgICAgIE5VTEwgICAgICAgICAgICAgICAgIC8v IFByb2NlZHVyZUFyZ3VtZW50DQorICAgICAgICAgICAgICAgICAgICAgICAgICk7DQorICBpZiAo RUZJX0VSUk9SIChTdGF0dXMpICYmIFN0YXR1cyAhPSBFRklfTk9UX1NUQVJURU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BFRklfT1VUX09GX1JFU09VUkNFUzsNCisgIH0NCisNCisgIGZvciAoSW5kZXggPSAwOyBJbmRl eCA8IFRyYW5zZmVyUGFnZXM7IEluZGV4KyspIHsNCisgICAgQXNtV3JpdGVNc3I2NCAoVHJhbnNm ZXJSZWcsDQorICAgICAgICAgICAgICAgICAgIChVSU5UTikgbVhlbkluZm8uSHlwZXJQYWdlcyAr DQorICAgICAgICAgICAgICAgICAgIChJbmRleCA8PCBFRklfUEFHRV9TSElGVCkgKyBJbmRleCk7 DQorICB9DQorDQorICBBc21DcHVpZCAoWGVuTGVhZiArIDEsICZYZW5WZXJzaW9uLCBOVUxMLCBO VUxMLCBOVUxMKTsNCisgIERFQlVHICgoREVCVUdfRVJST1IsICJEZXRlY3RlZCBYZW4gdmVyc2lv biAlZC4lZFxuIiwNCisgICAgICAgICAgWGVuVmVyc2lvbiA+PiAxNiwgWGVuVmVyc2lvbiAmIDB4 RkZGRikpOw0KKyAgbVhlbkluZm8uVmVyc2lvbk1ham9yID0gKFVJTlQxNikoWGVuVmVyc2lvbiA+ PiAxNik7DQorICBtWGVuSW5mby5WZXJzaW9uTWlub3IgPSAoVUlOVDE2KShYZW5WZXJzaW9uICYg MHhGRkZGKTsNCisNCisgIC8qIFRCRDogTG9jYXRlIGh2bV9pbmZvIGFuZCByZXNlcnZlIGl0IGF3 YXkuICovDQorICBtWGVuSW5mby5Idm1JbmZvID0gTlVMTDsNCisNCisgIEJ1aWxkR3VpZERhdGFI b2IgKA0KKyAgICAmZ0VmaVhlbkluZm9HdWlkLA0KKyAgICAmbVhlbkluZm8sDQorICAgIHNpemVv ZihtWGVuSW5mbykNCisgICAgKTsNCisNCisgIHJldHVybiBFRklfU1VDQ0VTUzsNCit9DQorDQor LyoqDQorICBGaWd1cmVzIG91dCBpZiB3ZSBhcmUgcnVubmluZyBpbnNpZGUgWGVuIEhWTS4NCisN CisgIEByZXR2YWwgVFJVRSAgIFhlbiB3YXMgZGV0ZWN0ZWQNCisgIEByZXR2YWwgRkFMU0UgIFhl biB3YXMgbm90IGRldGVjdGVkDQorDQorKiovDQorQk9PTEVBTg0KK1hlbkRldGVjdCAoDQorICBW T0lEDQorICApDQorew0KKyAgVUlOVDggU2lnbmF0dXJlWzEzXTsNCisNCisgIGlmIChtWGVuTGVh ZiAhPSAwKSB7DQorICAgIHJldHVybiBUUlVFOw0KKyAgfQ0KKw0KKyAgU2lnbmF0dXJlWzEyXSA9 ICdcMCc7DQorICBmb3IgKG1YZW5MZWFmID0gMHg0MDAwMDAwMDsgbVhlbkxlYWYgPCAweDQwMDEw MDAwOyBtWGVuTGVhZiArPSAweDEwMCkgew0KKyAgICBBc21DcHVpZCAobVhlbkxlYWYsDQorICAg ICAgICAgICAgICBOVUxMLA0KKyAgICAgICAgICAgICAgKFVJTlQzMiAqKSAmU2lnbmF0dXJlWzBd LA0KKyAgICAgICAgICAgICAgKFVJTlQzMiAqKSAmU2lnbmF0dXJlWzRdLA0KKyAgICAgICAgICAg ICAgKFVJTlQzMiAqKSAmU2lnbmF0dXJlWzhdKTsNCisNCisgICAgaWYgKCFBc2NpaVN0ckNtcCAo KENIQVI4ICopIFNpZ25hdHVyZSwgIlhlblZNTVhlblZNTSIpKSB7DQorICAgICAgcmV0dXJuIFRS VUU7DQorICAgIH0NCisgIH0NCisNCisgIG1YZW5MZWFmID0gMDsNCisgIHJldHVybiBGQUxTRTsN Cit9DQorDQorDQorVk9JRA0KK1hlblB1Ymxpc2hSYW1SZWdpb25zICgNCisgIFZPSUQNCisgICkN Cit7DQorICBFRklfRTgyMF9FTlRSWTY0ICAqRTgyME1hcDsNCisgIFVJTlQzMiAgICAgICAgICAg IEU4MjBFbnRyaWVzQ291bnQ7DQorICBFRklfU1RBVFVTICAgICAgICBTdGF0dXM7DQorDQorICBE RUJVRyAoKERFQlVHX0lORk8sICJVc2luZyBtZW1vcnkgbWFwIHByb3ZpZGVkIGJ5IFhlblxuIikp Ow0KKw0KKyAgLy8NCisgIC8vIFBhcnNlIFJBTSBpbiBFODIwIG1hcA0KKyAgLy8NCisgIEU4MjBF bnRyaWVzQ291bnQgPSAwOw0KKyAgU3RhdHVzID0gWGVuR2V0RTgyME1hcCAoJkU4MjBNYXAsICZF ODIwRW50cmllc0NvdW50KTsNCisNCisgIEFTU0VSVF9FRklfRVJST1IgKFN0YXR1cyk7DQorDQor ICBpZiAoRTgyMEVudHJpZXNDb3VudCA+IDApIHsNCisgICAgRUZJX0U4MjBfRU5UUlk2NCAqRW50 cnk7DQorICAgIFVJTlQzMiBMb29wOw0KKw0KKyAgICBmb3IgKExvb3AgPSAwOyBMb29wIDwgRTgy MEVudHJpZXNDb3VudDsgTG9vcCsrKSB7DQorICAgICAgRW50cnkgPSBFODIwTWFwICsgTG9vcDsN CisNCisgICAgICAvLw0KKyAgICAgIC8vIE9ubHkgY2FyZSBhYm91dCBSQU0NCisgICAgICAvLw0K KyAgICAgIGlmIChFbnRyeS0+VHlwZSAhPSBFZmlBY3BpQWRkcmVzc1JhbmdlTWVtb3J5KSB7DQor ICAgICAgICBjb250aW51ZTsNCisgICAgICB9DQorDQorICAgICAgQWRkTWVtb3J5QmFzZVNpemVI b2IgKEVudHJ5LT5CYXNlQWRkciwgRW50cnktPkxlbmd0aCk7DQorDQorICAgICAgTXRyclNldE1l bW9yeUF0dHJpYnV0ZSAoRW50cnktPkJhc2VBZGRyLCBFbnRyeS0+TGVuZ3RoLCBDYWNoZVdyaXRl QmFjayk7DQorICAgIH0NCisgIH0NCit9DQorDQorDQorLyoqDQorICBQZXJmb3JtIFhlbiBQRUkg aW5pdGlhbGl6YXRpb24uDQorDQorICBAcmV0dXJuIEVGSV9TVUNDRVNTICAgICBYZW4gaW5pdGlh bGl6ZWQgc3VjY2Vzc2Z1bGx5DQorICBAcmV0dXJuIEVGSV9OT1RfRk9VTkQgICBOb3QgcnVubmlu ZyB1bmRlciBYZW4NCisNCisqKi8NCitFRklfU1RBVFVTDQorSW5pdGlhbGl6ZVhlbiAoDQorICBW T0lEDQorICApD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