Re: [PATCH v4 10/24] x86/virt/seamldr: Allocate and populate a module update request

From: Chao Gao

Date: Fri Mar 13 2026 - 08:18:27 EST


On Fri, Mar 13, 2026 at 12:56:19AM +0800, Edgecombe, Rick P wrote:
>On Thu, 2026-03-12 at 22:36 +0800, Chao Gao wrote:
>> > > + if (blob->version != 0x100) {
>> > Do we need a macro for this 0x100?
>>
>> Maybe not, as this is a one-off check (i.e., the version/macro won't be used
>> anywhere else). If someone has a strong opinion on this, I can add one.
>
>Seems like kind of a magic number as it is. What would the macro name be, and
>would it make the code more understandable?

Yes. Adding a macro can improve readability. So, will do.

Thanks, Yan and Rick.