On Tue, Aug 22, 2017 at 03:22:54PM +0200, Marc-André Lureau wrote: > Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com> > --- > qapi-schema.json | 4 +++- > include/sysemu/arch_init.h | 3 --- > monitor.c | 3 --- > qmp.c | 7 ------- > stubs/arch-query-cpu-model-expansion.c | 12 ------------ > target/i386/cpu.c | 2 +- > target/s390x/cpu_models.c | 3 ++- > stubs/Makefile.objs | 1 - > 8 files changed, 6 insertions(+), 29 deletions(-) > delete mode 100644 stubs/arch-query-cpu-model-expansion.c > > diff --git a/qapi-schema.json b/qapi-schema.json > index 6c1adb35b5..127a2c71c6 100644 > --- a/qapi-schema.json > +++ b/qapi-schema.json > @@ -4535,7 +4535,9 @@ > { 'command': 'query-cpu-model-expansion', > 'data': { 'type': 'CpuModelExpansionType', > 'model': 'CpuModelInfo' }, > - 'returns': 'CpuModelExpansionInfo' } > + 'returns': 'CpuModelExpansionInfo', > + 'if': ['defined(NEED_CPU_H)', > + 'defined(TARGET_S390X) || defined(TARGET_I386)']}
Maybe this is already documented somewhere in the series (I'm still going through the other patches), but: why exactly is 'defined(NEED_CPU_H)' in the list, too? I always assumed that all the QAPI and QMP dispatching code would be compiled only once, and never be compiled with -DNEED_CPU_H defined. -- Eduardo