Skip to content

simplify struct QOM properties and use the result for GUEST_PANICKED

Paolo Bonzini qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 8 repliesIn review
  2. v13 patches 7 repliesSuperseded

Changes in v2 from the cover letter

include missing changes to tests/qapi-schema/qapi-schema-test.out tweaks to doc comments
wrap long lines

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3qom-qobject: introduce object_property_{g, s}et_ptrinclude/qom/qom-qobject.h qom/qom-qobject.c tests/Makefile.include +3 more+309 -47 replies
2/3cpu: implement get_crash_info through QOM propertiesinclude/qom/cpu.h qom/cpu.c target/i386/cpu.c+5 -90 replies
3/3vl: pass CPUState to qemu_system_guest_panickedinclude/sysemu/sysemu.h kvm-all.c vl.c+12 -50 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchEric BlakeMarc-André Lureau
SeriesR-b
1/3R-b R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/3] simplify struct QOM properties and use the result for GUEST_PANICKED

This is an alternative approach to simplifying the crash information patches.

Currently, crash information is exposed twice, through a QOM property and through a method. This is because accessing QOM properties with QAPI struct types is a huge pain in the neck. Patch 1 fixes this by providing a simple and well-tested API, that takes care of integrating the QOM->QObject->QAPI steps into a single function.

Patch 2 then eliminates the get_crash_info method. Patch 3 finally cleans up qemu_system_guest_panicked by passing a CPUState* argument instead of a GuestPanicInformation struct.

Paolo

v1->v2:
include missing changes to tests/qapi-schema/qapi-schema-test.out tweaks to doc comments
wrap long lines

Paolo Bonzini (3):
qom-qobject: introduce object_property_{g,s}et_ptr
cpu: implement get_crash_info through QOM properties
vl: pass CPUState to qemu_system_guest_panicked

 include/qom/cpu.h                       |   1 -
 include/qom/qom-qobject.h               |  68 +++++++++++-
 include/sysemu/sysemu.h                 |   2 +-
 kvm-all.c                               |   2 +-
 qom/cpu.c                               |  11 +-
 qom/qom-qobject.c                       |  52 ++++++++++
 target/i386/cpu.c                       |   2 +-
 tests/Makefile.include                  |   2 +-
 tests/check-qom-proplist.c              | 177 +++++++++++++++++++++++++++++++-
 tests/qapi-schema/qapi-schema-test.json |   8 ++
 tests/qapi-schema/qapi-schema-test.out  |   6 ++
 vl.c                                    |  13 ++-
 12 files changed, 326 insertions(+), 18 deletions(-)
Signature · 1 line
2.9.3