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.155.168, mailfrom: anthony.perard@citrix.com) Received: from esa5.hc3370-68.iphmx.com (esa5.hc3370-68.iphmx.com [216.71.155.168]) by groups.io with SMTP; Mon, 29 Jul 2019 08:58:25 -0700 Authentication-Results: esa5.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 (esa5.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=esa5.hc3370-68.iphmx.com; envelope-from="anthony.perard@citrix.com"; x-sender="anthony.perard@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa5.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=esa5.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 (esa5.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=esa5.hc3370-68.iphmx.com; envelope-from="anthony.perard@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: 8dgea5gdejrI6ADeXTluuLwyLWHv9Z5NbBX5+nnMS58IZj9CgrxkOIblrc1+foGVv8BJNCnCVz /AhIRiVRvpZU5yN1TVh8EXr3P9Xh4KzwblVOkwVBngbWh8X0+l1OiwVPuKxmGe1QqHvXYJ2M1i 1Cus8gtqcr3VkUcpySr/wZWGqdKwK5l99MKU0W97n5ZmNsz48rYtsmXweVUsQAIgk4HYFUIkVt btSqAKE1CsOt+juOWfv2CwQuyxl4LSwWk4Xvu1iPz9OEuz7qGyCJcJwJwf1OaAhkSZtR0J9Iwa JtU= X-SBRS: 2.7 X-MesageID: 3671583 X-Ironport-Server: esa5.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="3671583" From: "Anthony PERARD" To: CC: Julien Grall , , Jordan Justen , Ard Biesheuvel , Laszlo Ersek , Anthony PERARD Subject: [PATCH v4 16/35] OvmfPkg/XenHypercallLib: Enable it in PEIM Date: Mon, 29 Jul 2019 16:39:25 +0100 Message-ID: <20190729153944.24239-17-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 QWxsb3cgdG8gdXNlIFhlbiBoeXBlcmNhbGxzIGVhcmxpZXIsIGR1cmluZyB0aGUgUEVJTSBzdGFn ZSwgYnV0Clhlbkh5cGVyY2FsbExpYkluaXQoKSBtdXN0IGJlIGNhbGxlZCBvbmNlIHRoZSBYZW5J bmZvIEhPQiBpcyBjcmVhdGVkCndpdGggdGhlIEh5cGVyUGFnZSBzZXR1cC4KCkNoYW5nZSB0aGUg cmV0dXJuIHZhbHVlIG9mIFhlbkh5cGVyY2FsbExpYkluaXQgc28gZmFpbHVyZSBjYW4gYmUKZGV0 ZWN0ZWQgd2hlbiB0aGUgY2FsbCBzaG91bGRuJ3QgZmFpbCwgYnV0IHN0aWxsIGhhdmUgdGhlIGNv bnN0cnVjdG9yCmFsd2F5cyBzdWNjZWV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