On 12/15/21 15:04, Alex Bennée wrote: > As --enable-profiler isn't defended in CI we missed this breakage. > Move the qmp handler into accel/tcg so we have access to the helpers > we need. While we are at it ensure we gate the feature on CONFIG_TCG. > > Signed-off-by: Alex Bennée <alex.ben...@linaro.org> > Suggested-by: Daniel P. Berrangé <berra...@redhat.com> > Reported-by: Mark Cave-Ayland <mark.cave-ayl...@ilande.co.uk> > Fixes: 37087fde0e ("qapi: introduce x-query-profile QMP command") > Resolves: https://gitlab.com/qemu-project/qemu/-/issues/773 > Reviewed-by: Daniel P. Berrangé <berra...@redhat.com> > Message-Id: <20211214195048.1438209-1-alex.ben...@linaro.org> > > --- > v3 > - also add #ifdef CONFIG_TCG to hmp-commands-info.hx > --- > qapi/machine.json | 1 + > accel/tcg/cpu-exec.c | 31 +++++++++++++++++++++++++++++++ > monitor/qmp-cmds.c | 31 ------------------------------- > hmp-commands-info.hx | 2 ++ > 4 files changed, 34 insertions(+), 31 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>