[libvirt] [PATCH 03/22] qemu: Copy CPU models in virQEMUCapsGetCPUDefinitions

Ján Tomko jtomko at redhat.com
Mon Oct 7 14:00:12 UTC 2019


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 at 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 at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20191007/f699080a/attachment-0001.sig>


More information about the libvir-list mailing list