[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 2/4] qapi: dealloc visitor, implement visit_s
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH v2 2/4] qapi: dealloc visitor, implement visit_start_union |
Date: |
Wed, 17 Sep 2014 16:27:15 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 |
On 09/17/2014 03:32 PM, Michael Roth wrote:
> If the .data field of a QAPI Union is NULL, we don't need to free
> any of the union fields.
>
> Make use of the new visit_start_union interface to access this
> information and instruct the generated code to not visit these
> fields when this occurs.
>
> Cc: address@hidden
> Reported-by: Fam Zheng <address@hidden>
> Suggested-by: Paolo Bonzini <address@hidden>
> Reviewed-by: Paolo Bonzini <address@hidden>
> Signed-off-by: Michael Roth <address@hidden>
> ---
> qapi/qapi-dealloc-visitor.c | 26 ++++++++++++++++++++++++++
> 1 file changed, 26 insertions(+)
>
The comment helps.
Reviewed-by: Eric Blake <address@hidden>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH v2 0/4] qapi: fix crash in dealloc visitor for union types, Michael Roth, 2014/09/17
- [Qemu-devel] [PATCH v2 3/4] tests: add QMP input visitor test for unions with no discriminator, Michael Roth, 2014/09/17
- [Qemu-devel] [PATCH v2 2/4] qapi: dealloc visitor, implement visit_start_union, Michael Roth, 2014/09/17
- Re: [Qemu-devel] [PATCH v2 2/4] qapi: dealloc visitor, implement visit_start_union,
Eric Blake <=
- [Qemu-devel] [PATCH v2 1/4] qapi: add visit_start_union and visit_end_union, Michael Roth, 2014/09/17
- [Qemu-devel] [PATCH v2 4/4] qemu-iotests: Test missing "driver" key for blockdev-add, Michael Roth, 2014/09/17