On Thu, Oct 03, 2019 at 04:00:21PM +0200, Jiri Denemark wrote:
Rather than returning a direct pointer the list stored in qemuCaps
the
function now creates a new copy of the CPU models list.
The main purpose of this seemingly useless change is to update callers
to free the result returned by virQEMUCapsGetCPUDefinitions because the
internals of this function will change significantly in the following
patches.
Signed-off-by: Jiri Denemark <jdenemar(a)redhat.com>
---
src/qemu/qemu_capabilities.c | 23 ++++++++++++++++++-----
src/qemu/qemu_driver.c | 2 +-
src/qemu/qemu_process.c | 7 +++++--
tests/cputest.c | 1 -
4 files changed, 24 insertions(+), 9 deletions(-)
Reviewed-by: Ján Tomko <jtomko(a)redhat.com>
Jano