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.175, mailfrom: anthony.perard@citrix.com) Received: from esa6.hc3370-68.iphmx.com (esa6.hc3370-68.iphmx.com [216.71.155.175]) by groups.io with SMTP; Thu, 04 Jul 2019 07:58:53 -0700 Authentication-Results: esa6.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 (esa6.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=esa6.hc3370-68.iphmx.com; envelope-from="anthony.perard@citrix.com"; x-sender="anthony.perard@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa6.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=esa6.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 (esa6.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=esa6.hc3370-68.iphmx.com; envelope-from="anthony.perard@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: +XbzjX2jvpqVFu6In37KMpKPCDogyFCMsyBkQ/VH7FcjCZ3FZ6hqeNe6Z83iuuTLLclsPBuEza PJsM1kOPheRP60ao3r5+mEJs54E2jRWZJ0ktcHGef5aCCL6Y+cvFH+qXXBG8PtFNdqEGeR+wH3 ynPMrxoCDz8DphbKR6I09f60q5hstOf4DY068RB3LqR/eR+M0qiavMxOEEsiZGMGV77sZqZc4l LWoAGbali+LWNh4XzCVHbpQeZmJqF2PkrhfAdKm8G9RZUu+YpcaDOs0N0/mbb9NUtFkApGa3rU keA= X-SBRS: 2.7 X-MesageID: 2626073 X-Ironport-Server: esa6.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.63,451,1557201600"; d="scan'208";a="2626073" From: "Anthony PERARD" To: CC: , Ard Biesheuvel , Jordan Justen , Laszlo Ersek , Julien Grall , Anthony PERARD Subject: [PATCH v3 22/35] OvmfPkg: Import XENMEM_memory_map hypercall to Xen/memory.h Date: Thu, 4 Jul 2019 15:42:20 +0100 Message-ID: <20190704144233.27968-23-anthony.perard@citrix.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190704144233.27968-1-anthony.perard@citrix.com> References: <20190704144233.27968-1-anthony.perard@citrix.com> MIME-Version: 1.0 Return-Path: anthony.perard@citrix.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain The informations to make a XENMEM_memory_map hypercall is copied over from the public header of the Xen Project, with the type name modified to build on OVMF. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3D1689 Signed-off-by: Anthony PERARD Acked-by: Laszlo Ersek --- Notes: v3: - expanded the "This" that was starting the commit message body. OvmfPkg/Include/IndustryStandard/Xen/memory.h | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/OvmfPkg/Include/IndustryStandard/Xen/memory.h b/OvmfPkg/Includ= e/IndustryStandard/Xen/memory.h index 81e981331a..4a33a26d4e 100644 --- a/OvmfPkg/Include/IndustryStandard/Xen/memory.h +++ b/OvmfPkg/Include/IndustryStandard/Xen/memory.h @@ -65,6 +65,29 @@ struct xen_remove_from_physmap { typedef struct xen_remove_from_physmap xen_remove_from_physmap_t;=0D DEFINE_XEN_GUEST_HANDLE(xen_remove_from_physmap_t);=0D =0D +/*=0D + * Returns the pseudo-physical memory map as it was when the domain=0D + * was started (specified by XENMEM_set_memory_map).=0D + * arg =3D=3D addr of xen_memory_map_t.=0D + */=0D +#define XENMEM_memory_map 9=0D +struct xen_memory_map {=0D + /*=0D + * On call the number of entries which can be stored in buffer. On=0D + * return the number of entries which have been stored in=0D + * buffer.=0D + */=0D + UINT32 nr_entries;=0D +=0D + /*=0D + * Entries in the buffer are in the same format as returned by the=0D + * BIOS INT 0x15 EAX=3D0xE820 call.=0D + */=0D + XEN_GUEST_HANDLE(void) buffer;=0D +};=0D +typedef struct xen_memory_map xen_memory_map_t;=0D +DEFINE_XEN_GUEST_HANDLE(xen_memory_map_t);=0D +=0D #endif /* __XEN_PUBLIC_MEMORY_H__ */=0D =0D /*=0D --=20 Anthony PERARD