[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] xen/arm: acpi: Support memory reserve configuration table


  • To: Leo Yan <leo.yan@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 18 Aug 2022 09:47:46 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=J0SyKFYYw8nQchJ4woRaOGSYS4C2uGr4MoMDxaLa5vE=; b=Sg5MfsWAKfkpPmlS/XudIgbgwrdA/0DdXtz5axrJodhIIVJkphgzHOzDjByn3friGh73t6qdyBMd8lW7TyTeUEQHjgkIde9fVOmec/yJ7WBCt09GFd/kM3y6cdN17Kz9LA/JeO6i/W8RusK5bh6cxhTL5Wn589JRptW4D6ubYa8RemmIPyQO7dtqDR2TJPPVOp9pDfrL9wjBrJGw155bO5BIuL5+P5+TIVVUhl4Nd6dkuAo4K725Qfh67XxAa6q+2frnI1MYC88DuDA6dSmWG4/+Ejfv/YNST+PTbnvKJLJPvryNy7tUxTOz8DXuN3FhW/1WpK2F3FXcgjYB6/AXvg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FNn5HKhrt5JVM7YYwa84HG9FdddMy/r2Oin5ptquwv8hdgoaq6riEdFV29mYzJl7IBXEQx/rfcCIrgF0KSrmS2zR8NRw+ewKE6c11yeDgzvLF+KCsnoduZLycLcxuv2xPc/duClQJx9wOmI8jNb/NrELzJkl49g+1CkFkD79E5srhvjLupsBs3hAr1SwPohizHbFe82FA5pN/dglPKjDlm2rVxdragMWyd3eqrNGitckL6BQxkE473uVW2RsE5lCKnd37rNtBQaN60Jz46WXhAFDHrhNhUJ/rgneZvp8Bq/0C6qKNipOAOg1IzEJCvbKz+HgE9FfS+2fYW2fRkcFgg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Ard Biesheuvel <ardb@xxxxxxxxxx>, Marc Zyngier <maz@xxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Rahul Singh <Rahul.Singh@xxxxxxx>, Peter Griffin <peter.griffin@xxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Julien Grall <jgrall@xxxxxxxxxx>
  • Delivery-date: Thu, 18 Aug 2022 07:47:57 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 18.08.2022 09:34, Leo Yan wrote:
> On Wed, Aug 17, 2022 at 03:17:53PM +0200, Jan Beulich wrote:
>> Furthermore - what if Linux decided to change their structure? Or
>> is there a guarantee that they won't? Generally such structures
>> belong in the public interface, guaranteeing forward compatibility
>> even if Linux decided to change / extend theirs (at which point
>> consuming code there would need to do translation, but maybe using
>> a Xen-defined struct [plus translation in Linux] right away would
>> be best).
> 
> I saw Ard has helped to answer this question in his email.  As Ard
> said, the general way is to rely on Linux EFI stub to allocate the
> data structure for MEMRESERVE configuration table.
> 
> Given Xen uses pseudo EFI booting (the ACPI table is passed via DT), in
> short term I don't think Xen can support Linux EFI stub, so we need to
> maintain this structure in Xen as well.
> 
> This structure eventually will not change frequently, so I assume
> later we will have little effort for maintainence it.

"Will not change frequently" isn't enough. Imo there needs to be a
public interface structure in Xen and translation code in Linux.
That's the only way the consuming code in Linux can remain (largely)
independent of changes to the structure in Linux (i.e. changes there
can be expected to be accompanied by updating of this code, perhaps
simply in order to keep things building).

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.