|
From: | Philippe Mathieu-Daudé |
Subject: | Re: [PATCH v2 06/53] hw/core: introduce 'format_state' callback to replace 'dump_state' |
Date: | Tue, 14 Sep 2021 17:53:30 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
On 9/14/21 4:19 PM, Daniel P. Berrangé wrote: > The 'dump_state' callback assumes it will be outputting to a FILE > object. This is fine for HMP, but not so useful for QMP. Introduce > a new 'format_state' callback that returns a formatted GString > instead. > > Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> > --- > hw/core/cpu-common.c | 15 +++++++++++++++ > include/hw/core/cpu.h | 13 ++++++++++++- > 2 files changed, 27 insertions(+), 1 deletion(-) Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
[Prev in Thread] | Current Thread | [Next in Thread] |