For people who would be interested to try this series, I used attached
script.
$ ./qmp_schema.sh ./build/qemu-system-x86_64 -M none > x86_64
$ ./qmp_schema.sh ./build/qemu-system-s390x -M none > s390x
$ vimdiff x86_64 s390x
diff --git a/qmp_schema.sh b/qmp_schema.sh
new file mode 100755
in
This series compiles QAPI generated once, while keeping the same schema and
commands exposed to the QAPI consumer.
Steps:
- Introduce a new json entry, named 'runtime_if' (name is not definitive,
see patch 1), to allow dynamic check about exposing a given entry/command or
not.
- Conditionally e