[PATCH v14 03/19] x86: Secure Launch Resource Table header file
ross.philipson at oracle.com
ross.philipson at oracle.com
Wed Apr 23 13:04:49 PDT 2025
On 4/23/25 11:23 AM, ALOK TIWARI wrote:
>
>
> On 21-04-2025 21:56, Ross Philipson wrote:
>> +static inline int
>> +slr_add_entry(struct slr_table *table,
>> + struct slr_entry_hdr *entry)
>> +{
>> + struct slr_entry_hdr *end;
>> +
>> + if ((table->size + entry->size) > table->max_size)
>> + return -1;
>> +
>> + memcpy((u8 *)table + table->size - sizeof(*end), entry, entry-
>> >size);
>> + table->size += entry->size;
>> +
>> + end = (struct slr_entry_hdr *)((u8 *)table + table->size -
>> sizeof(*end));
>
> remove extra ' ' before =
Ack thanks
>
>> + end->tag = SLR_ENTRY_END;
>> + end->size = sizeof(*end);
>> +
>> + return 0;
>
>
> Thanks,
> Alok
More information about the kexec
mailing list