]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: cache host arch separately from virCapsPtr
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 26 Nov 2019 17:51:22 +0000 (17:51 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 9 Dec 2019 10:15:15 +0000 (10:15 +0000)
commitbce3b0807eef821841afa688c621bd9457f06946
treec59330f914e5ba19a94a4a08862a40558bfa61c0
parent5c7cd74a520693a4f1cf49ad4a6d4730a5c5d76a
qemu: cache host arch separately from virCapsPtr

As part of a goal to eliminate the need to use virCapsPtr for anything
other than the virConnectGetCapabilies() API impl, cache the host arch
against the QEMU driver struct and use that field directly.

In the tests we move virArchFromHost() globally in testutils.c so that
every test runs with a fixed default architecture reported.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
15 files changed:
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
src/qemu/qemu_command.c
src/qemu/qemu_conf.c
src/qemu/qemu_conf.h
src/qemu/qemu_domain.c
src/qemu/qemu_driver.c
src/qemu/qemu_process.c
tests/domaincapstest.c
tests/qemumemlocktest.c
tests/qemuxml2argvtest.c
tests/testutils.c
tests/testutils.h
tests/testutilsqemu.c
tests/testutilsqemu.h