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: anthony.perard@citrix.com) Received: from esa2.hc3370-68.iphmx.com (esa2.hc3370-68.iphmx.com [216.71.145.153]) by groups.io with SMTP; Mon, 29 Jul 2019 08:58:30 -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: BKOdQFmFnh0tZwkpIzua02Lda7VCjhizyL/mLtpGqFYwPbnMG6z1ur0inNLIDkMNKt3Y1WHL0L zb2KRmEau6n90H6H054LeXfCWITDpy+93Z+EAZQZd+KhNh1I0UK9/nFOUtGeeeKID/ni3OmOGb 3lNRjZxzoK36zYjMoKdaPYnwJi9Abu4RCLVc0y2P8B1I2If8mS7GDl6YejXjrbL2S9BnFZGgX6 hg//L8KoFcFA8IslncgXgCIryUZYnHSgD8CFA+qX8zMcEcRXSoZiJuuXeOXFVkgY2Vt0BlizUE rpw= X-SBRS: 2.7 X-MesageID: 3565752 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="3565752" From: "Anthony PERARD" To: CC: Julien Grall , , Jordan Justen , Ard Biesheuvel , Laszlo Ersek , Anthony PERARD Subject: [PATCH v4 33/35] OvmfPkg: Introduce XenIoPvhDxe to initialize Grant Tables Date: Mon, 29 Jul 2019 16:39:42 +0100 Message-ID: <20190729153944.24239-34-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 WGVuSW9QdmhEeGUgdXNlIFhlbklvTW1pb0xpYiB0byByZXNlcnZlIHNvbWUgc3BhY2UgdG8gYmUg dXNlIGJ5IHRoZQpHcmFudCBUYWJsZXMuCgpUaGUgY2FsbCBpcyBvbmx5IGRvbmUgaWYgaXQgaXMg bmVjZXNzYXJ5LCB3ZSBzaW1wbHkgZGV0ZWN0IGlmIHRoZQpndWVzdCBpcyBQVkgsIGFzIGluIHRo aXMgY2FzZSB0aGVyZSBpcyBjdXJyZW50bHkgbm8gUENJIGJ1cywgYW5kIG5vClBDSSBYZW4gcGxh dGZvcm0gZGV2aWNlIHdoaWNoIHdvdWxkIHN0YXJ0IHRoZSBYZW5Jb1BjaUR4ZSBhbmQgYWxsb2Nh dGUKdGhlIHNwYWNlIGZvciB0aGUgR3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