[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 0/3] simplify struct QOM properties and use t
From: |
Marc-André Lureau |
Subject: |
Re: [Qemu-devel] [PATCH v2 0/3] simplify struct QOM properties and use the result for GUEST_PANICKED |
Date: |
Thu, 23 Feb 2017 08:34:31 +0000 |
On Wed, Feb 22, 2017 at 10:07 PM Paolo Bonzini <address@hidden> wrote:
> 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
>
With the test leaks fixed,
Reviewed-by: Marc-André Lureau <address@hidden>
>
>
> 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(-)
>
> --
> 2.9.3
>
>
> --
Marc-André Lureau
- [Qemu-devel] [PATCH v2 0/3] simplify struct QOM properties and use the result for GUEST_PANICKED, Paolo Bonzini, 2017/02/22
- [Qemu-devel] [PATCH 1/3] qom-qobject: introduce object_property_{g, s}et_ptr, Paolo Bonzini, 2017/02/22
- [Qemu-devel] [PATCH 2/3] cpu: implement get_crash_info through QOM properties, Paolo Bonzini, 2017/02/22
- [Qemu-devel] [PATCH 3/3] vl: pass CPUState to qemu_system_guest_panicked, Paolo Bonzini, 2017/02/22
- Re: [Qemu-devel] [PATCH v2 0/3] simplify struct QOM properties and use the result for GUEST_PANICKED, no-reply, 2017/02/22
- Re: [Qemu-devel] [PATCH v2 0/3] simplify struct QOM properties and use the result for GUEST_PANICKED,
Marc-André Lureau <=