From nobody Mon Feb 9 21:19:40 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+44537+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1564415861; cv=none; d=zoho.com; s=zohoarc; b=kyiri/G3d1XiO0VmMDRcIAlPdJAigzmhfeocT5MRr+8l7hZ3LOrgr4zHb5ab42PEs3ufCvZhPHqCn4O+hcbyRmjndRqEVsdXuidn+Hm3zdXL4Pe680aLoPMNMWKNyzyvizjp5Ooyiex2/mNtTWKleS43iAMOCyvBjwoRCllHsPk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564415861; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To:ARC-Authentication-Results; bh=4SL/lRcND2Y4EJ5bjlwr1E6tnAKx0n3QwuPKd9XieU8=; b=Jx/+JwbNY+dUzppEG6p552TyIV7YhVECskDKqZKLpd5d8Pt3fIlIY4xrHPb8bCS34M9iJ6tVCtj2AihyrGjO+yaDheHSmAm7qDeUn4HWMZfSMzWKmuf8pZ7odbcDwGoP8pcuKqMEXFQiNSoaIys/7cm7U1+HTIO9Xt1c3bUui9g= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+44537+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 156441586128247.507306825389264; Mon, 29 Jul 2019 08:57:41 -0700 (PDT) Return-Path: X-Received: from esa4.hc3370-68.iphmx.com (esa4.hc3370-68.iphmx.com [216.71.155.144]) by groups.io with SMTP; Mon, 29 Jul 2019 08:57:40 -0700 Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+44537+1787277+3901457@groups.io; helo=web01.groups.io; Received-SPF: None (esa4.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=esa4.hc3370-68.iphmx.com; envelope-from="anthony.perard@citrix.com"; x-sender="anthony.perard@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa4.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=esa4.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 (esa4.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=esa4.hc3370-68.iphmx.com; envelope-from="anthony.perard@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: 3LiU+RgJhRr8I8JRH1hVsRwafmpxG0YVVkoTDGYRk3IRIMcMmojCFU9pzk9xQNbgByMMICC5yz 0LcCSeiqlkT8/Q4YHKoLIR+e5v6zpFT/c0MXAYpaiQ2rwGhaHFm6i5b2X09OD7Mev74rAub6d/ kRB4R3wkL/q0s6oUc8lGtb2tt8CtsLjWDay6T+P/tpNm6wlYg0RGKjQ/fIS4rQgkVF3hWTktpl JGlt36oiY416Gpos+BtcilnNbxZmUshFyfyLbT7VnYXP/OEP9E5gT65iQ1PDetUNDFdLfLSThY pt0= X-SBRS: 2.7 X-MesageID: 3710479 X-Ironport-Server: esa4.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="3710479" From: "Anthony PERARD" To: CC: Julien Grall , , Jordan Justen , Ard Biesheuvel , Laszlo Ersek , Anthony PERARD Subject: [edk2-devel] [PATCH v4 21/35] OvmfPkg: Import XENMEM_memory_map hypercall to Xen/memory.h Date: Mon, 29 Jul 2019 16:39:30 +0100 Message-ID: <20190729153944.24239-22-anthony.perard@citrix.com> In-Reply-To: <20190729153944.24239-1-anthony.perard@citrix.com> References: <20190729153944.24239-1-anthony.perard@citrix.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,anthony.perard@citrix.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1564415860; bh=4SL/lRcND2Y4EJ5bjlwr1E6tnAKx0n3QwuPKd9XieU8=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=EH2/kwZxINLLnVNXMVftPiV7VBeI8PPFzHure/+q6C0VtFAuzoXdc1PFZ5Ms32bR7Qc cbGi39KOFqqdBWxn4rvWp7xvN3iJm+VTu0uCdDR3uYolEhNZbeTyiQpjKGZ23YsB7f5Qy 7itnA/G0Oo8LcZmB/sh9j64a1J6f/zEYxRg= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" 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; DEFINE_XEN_GUEST_HANDLE(xen_remove_from_physmap_t); =20 +/* + * Returns the pseudo-physical memory map as it was when the domain + * was started (specified by XENMEM_set_memory_map). + * arg =3D=3D addr of xen_memory_map_t. + */ +#define XENMEM_memory_map 9 +struct xen_memory_map { + /* + * On call the number of entries which can be stored in buffer. On + * return the number of entries which have been stored in + * buffer. + */ + UINT32 nr_entries; + + /* + * Entries in the buffer are in the same format as returned by the + * BIOS INT 0x15 EAX=3D0xE820 call. + */ + XEN_GUEST_HANDLE(void) buffer; +}; +typedef struct xen_memory_map xen_memory_map_t; +DEFINE_XEN_GUEST_HANDLE(xen_memory_map_t); + #endif /* __XEN_PUBLIC_MEMORY_H__ */ =20 /* --=20 Anthony PERARD -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#44537): https://edk2.groups.io/g/devel/message/44537 Mute This Topic: https://groups.io/mt/32644060/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-