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

Re: [PATCH] xen/arm: acpi: Include header file for version number





On 07/09/2022 09:53, Bertrand Marquis wrote:
Otherwise if we start adding those kinds of checks, we will have to add them in 
at least 3 places in xen code.

The solution I proposed above is easy to implement right now. My gut feeling is 
tweaking __stringify (or else) will take a bit more time.

If you (or Leo) can come up with a solution quickly then fine. Otherwise, I 
think we still want some hardening for backporting purpose.

I think a define in compile.h using stringify is the easiest solution:

Ah! I thought you were suggesting to tweak __stringify. This is ...

#define XEN_STR_VERSION "__stringify(XEN_VERSION)"."__stringify(XEN_SUBVERSION)”

And then change the code in the following source code to use it:
arch/arm/domain_build.c
arch/arm/acpi/domain_build.c
common/efi/boot.c

... much better.

Cheers,

--
Julien Grall



 


Rackspace

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