On 10/16/2026 2:45 AM, [email protected] wrote:
>> This allows a specific cpu to report the size of the ELF notes it needs
>> to dump its state, alongside get_dump_info.
>>
>> Signed-off-by: Pierrick Bouvier <[email protected]>
>> Message-ID: <[email protected]>
>>
>> diff --git a/include/hw/core/sysemu-cpu-ops.h 
>> b/include/hw/core/sysemu-cpu-ops.h
>> index 0b6bb42dc2cb..31f1674d3247 100644
>> --- a/include/hw/core/sysemu-cpu-ops.h
>> +++ b/include/hw/core/sysemu-cpu-ops.h
>> @@ -101,6 +101,13 @@ typedef struct SysemuCPUOps {
>>       */
>>      int (*get_dump_info)(const CPUState *cpu, ArchDumpInfo *info,
>>                           const struct GuestPhysBlockList 
>> *guest_phys_blocks);
>> +    /**
>> +     * @get_note_size: returns the size of the ELF notes needed to dump
>> +     * @nr_cpus cpus, for the ELF @class and @machine reported by
>> +     * @get_dump_info, or -1 if this is not supported.
> 
> dump_init() asserts the result is never negative and implementation don't. 
> Let's
> have "... for the ELF @class and @machine reported by @get_dump_info. Must be
> set if @get_dump_info is set."
> 

Updated for v3, thanks.

Reply via email to