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

Re: [RFC PATCH] libacpi: Fix cross building x86 on arm


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Date: Wed, 24 Aug 2022 12:43:25 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=2; 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=O9MI+PVZgQEw8wLHxna5/MS9fcGtnjZIqZi//fxtens=; b=VLag+RbPntCSsqhMmkVf8MK4XWV9GGzeKP2BbY61tjuwXzcjH/NEPhLqCH5gD3LCCVai6kD6Keb5cz5Ww68kRaIQldqgmc3FvNmNrfa4zQLwN1F0vQ7hw4p8p5DEkbCnPWOtCML5d3kf0pcDUZvubQk5gAhAtMFZYK/GIa4z+b2KFm9vLPnSzY30PgYRTVtB79ii6eVLNhFckMorRMhQNmdKksNGlyNtpJ60owadtcbFi376jLn93SDI8ClH6PM3Sb/iVHeK36Nb1q3AQ5uht5pOCxecwJ+iIklAbsLpaGrV1GOSICTM5JcexdJLxxMfV+mZb5yrTfFI8fFr4lWs3g==
  • 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=O9MI+PVZgQEw8wLHxna5/MS9fcGtnjZIqZi//fxtens=; b=dBrtUb477s+4qljmNzkt6++XR19P1IzoyCQgl2ngWe6Gcp4/9V1L/1lShx4XKA0BO1YlH6UCM1HHq/9/B+3dY7VuMQqUZCLAqsi2aHuSqEKjUyDukv8N/nk+71M+2n/lGrEfOQbO2hBRQIo0I1oj5sC0wDlhs2kaIhsNwFvxKxDj0ZjPrBz/MCOL8nm5eJaL9DBrlHaTjzIIdJWlwsPDm8fCCOzt+d1rPs1fI/5kdO7v4LZfyjZN8smgt9aNwrM55xaYc9Iahiknvm6SiXq6Yz9Ybt0l2vmFIEPmOMfaOcELZEu/lYOHcu1CBa1mFwSSScYiPFLySgDlfxQJ0b7Zlg==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=P7NZQkUbQ6h4/YGW1aB2/C3J5teNdG/CDI4cHp7hFHAvIzmsIDuH+6vChGA2lWUEPQOPVx4UaE0366GLaepzZeWO+c3VBo50OdUChpU918k0gWjCTVNu1DMZwUUE6Uc6AriJFlCOLiU4ZMdmzaSZbBlzofnZJZ1Fv01aNrFhTH7yjhZMpMUfSNSHIMcenozjbFQhtTRJEglkFyNMuePEOTqxcrlMO+fKYjND3a6dOLVDm5KZLv/RR+KxL7ZSSl4FeqBD+iDEXfJdXWOfAzNrMXqpo+zPGs59sRLxmGhCW7bUEbQ1L05yvPR9soqQne5XMdW2LjdTZUdLVA1GePzZiA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dcIe5dBmKcIX+0vYT4JEHuRqjMaRUs7+0yR1W1quYoaI39rr03JRIBB7zMu6jvtvVVAxDjWrMeQBqipg1uTVlghPAUhYWD9DVjfWHZnE/Rvei90+05yd0muFpBax5hTGmqqEP9YdQntR6H27rwrAFvTAlAiWEWsJlIsiSkyDNmQTdDYA23owsIYZhURG2clV3qFO4r3JGk3DBWGs71Pl2SdJcPtbrViGVC/jL+IG+z7eFLX0p0G89FvrTM0yWPiKU6GIL5cpOdl2/jExYk3acBsDfz6TdDVucyBEY1587TAxbmqVHij3UzWpZDDjf1EClJ7czpqWanWRA3tQpWserg==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, "julien@xxxxxxx" <julien@xxxxxxx>, Wei Liu <wl@xxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 24 Aug 2022 12:43:44 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHYttqU3r7Sk/IKHkKroerrTRS8F628a1KAgAARJACAABAJgIAAAokAgAAIAACAAAnuAIAAA0iAgAEG1gCAAFVqgA==
  • Thread-topic: [RFC PATCH] libacpi: Fix cross building x86 on arm


> On 24 Aug 2022, at 08:37, Jan Beulich <jbeulich@xxxxxxxx> wrote:
> 
> On 23.08.2022 17:56, Bertrand Marquis wrote:
>>> On 23 Aug 2022, at 16:45, Jan Beulich <jbeulich@xxxxxxxx> wrote:
>>> On 23.08.2022 17:09, Bertrand Marquis wrote:
>>>> How about moving those to a xen-acpi.h header and include that one in 
>>>> xen.h ?
>>> 
>>> In principle okay, if there wasn't the need for HVM_MAX_VCPUS. With a
>>> suitable comment it may be okay to live there. I'd be curious what
>>> others think.
>> 
>> The problem with this already exists in the current status as this is 
>> defined in
>> hvm_info_table.h which is never included from arch-x86/xen.h
> 
> You're referring to it being necessary to explicitly include both headers.
> That's not what I'm referring to, though: The tool imo shouldn't include
> hvm_info_table.h, and hence the HVM_MAX_VCPUS would need to move as well.

Any suggestion where ?
The more I dig, the more I find that everything is including xen.h and going 
round.
Arch-x86_*.h headers are including arch-x86/xen.h including xen.h

> 
>> Including hvm_info_table.h from xen-acpi.h could create include path issues.
> 
> Include path issues? Both are / would be public headers. But as said, I
> don't think any new header introduced for the purpose at hand should
> include _any_ other public header.

For now I can create a arch-x86/xen-acpi.h and move there the XEN_ACPI_*
definitions and include that one instead in mk_dsdt.h.
The change will be small and should not have much impact.

Modifying HVM_MAX_VCPUS is not per say needed and I think would not be
enough to make the situation cleaner.

> 
>> But as those are used nowhere apart from mk_dsdt, I would probably skip the
>> include of xen-acpi.h from xen.h.
> 
> Hmm, yes, that's reasonable I guess as far as XEN_ACPI_* go. Of course
> HVM_MAX_VCPUS is a different matter.
> 
>> Any chance that those XEN_ACPI_ are needed by some external tools that
>> could get broken by this modification ?
> 
> Requiring them to include another header is, I think, a tolerable form
> of breakage, the more that such breakage isn't very likely anyway.

Then if you are ok with it, I will just submit the xen-acpi.h creation patch 
and fix
mk_dsdt compilation for x86 on arm.

The rest would require more thinking and I do not think it should be done now.

Can you confirm you agree ?

Cheers
Bertrand

> 
> Jan




 


Rackspace

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