|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [RFC/RFA PATCH] qapi: detect extra members inside structs |
Date: | Mon, 19 Mar 2012 20:51:20 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1 |
Il 19/03/2012 20:34, Anthony Liguori ha scritto: >> >> Is this acceptable or just wrong? > > This is a feature. The idea is that with QMP, old clients just ignore > extra members in a structure. I've never felt that comfortable with > this as a semantic but this is how QMP was designed. For old clients that could be fine. But what about old servers? :) Perhaps we need an argument to the QMPInputVisitor constructor to control this. > If you don't allow this semantic, then it's impossible to ever add a > field to an existing type as that would break backwards compatibility. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |