[libvirt] [PATCH v5 03/15] qemu_monitor: use cpu def instead of char for expansion
Jiri Denemark
jdenemar at redhat.com
Wed Oct 2 13:51:23 UTC 2019
On Thu, Sep 19, 2019 at 16:24:54 -0400, Collin Walling wrote:
> When expanding a CPU model via query-cpu-model-expansion, any features
> that were a part of the original model are discarded. For exmaple,
> when expanding modelA with features f1, f2, a full expansion may reveal
> feature f3, but the expanded model will not include f1 or f2.
>
> Let's pass a virCPUDefPtr to the expansion function in preparation for
> taking features into consideration.
>
> Signed-off-by: Collin Walling <walling at linux.ibm.com>
> ---
> src/qemu/qemu_capabilities.c | 9 +++++++--
> src/qemu/qemu_monitor.c | 7 +++----
> src/qemu/qemu_monitor.h | 2 +-
> src/qemu/qemu_monitor_json.c | 8 ++++----
> src/qemu/qemu_monitor_json.h | 2 +-
> tests/cputest.c | 7 ++++++-
> 6 files changed, 22 insertions(+), 13 deletions(-)
Reviewed-by: Jiri Denemark <jdenemar at redhat.com>
More information about the libvir-list
mailing list