On Wed, Jul 11, 2018 at 06:19:33PM +0200, Paolo Bonzini wrote: > On 11/07/2018 18:00, Eduardo Habkost wrote: > >> @@ -237,7 +237,7 @@ int x86_cpu_write_elf32_note(WriteCoreDumpFunction f, > >> CPUState *cs, > >> * please count up QEMUCPUSTATE_VERSION if you have changed definition of > >> * QEMUCPUState, and modify the tools using this information accordingly. > > Where are the tools using this information, that need to be > > updated? Won't this break existing versions of those tools? > > I think it's okay to _not_ change the version, since the format is > backwards-compatible. Each QEMUCPUState struct is in a separate ELF > note, and the presence of the new field is visible in both 1) the size > of the note 2) the size field of the struct.
If we do it, can we please make the documentation (or at least code comments, as documentation doesn't seem to exist) clearly state that the new field is optional in version 1? -- Eduardo
