qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v9 15/17] tpm: Convert to new qapi union layout


From: Markus Armbruster
Subject: Re: [Qemu-devel] [PATCH v9 15/17] tpm: Convert to new qapi union layout
Date: Thu, 22 Oct 2015 16:19:02 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Eric Blake <address@hidden> writes:

> We have two issues with our qapi union layout:
> 1) Even though the QMP wire format spells the tag 'type', the
> C code spells it 'kind', requiring some hacks in the generator.
> 2) The C struct uses an anonymous union, which places all tag
> values in the same namespace as all non-variant members. This
> leads to spurious collisions if a tag value matches a QMP name.
>
> Make the conversion to the new layout for TPM-related code.
>
> Signed-off-by: Eric Blake <address@hidden>

PATCH 08-15 appear to be a purely mechanical switch to u. and from kind
to type, except for a qapi.py hunk that looks like it should be in PATCH
07, and a comment update to tests/qapi-schema/union-clash-type.json.
Did I miss anything?

Combined diffstat isn't so bad:

 36 files changed, 393 insertions(+), 394 deletions(-)

I've seen worse tree-wide changes, some of them my own.  I'd be tempted
to squash the complete switch together.  But squashing is easy, so we
can keep it separate while we review, and decide when we're done.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]