]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Store state of FIPS in virQEMUDriver
authorPeter Krempa <pkrempa@redhat.com>
Mon, 16 May 2022 10:47:19 +0000 (12:47 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 17 May 2022 17:31:07 +0000 (19:31 +0200)
commitb5fd6f2b68ef5524ea38d988fc7fd077af180b43
tree0ba1711774871a184934372c0a832c3aa0b276dc
parent552790edf26ae7f448d9b38f8ceda0a99a71e903
qemu: Store state of FIPS in virQEMUDriver

Rather than re-query all the time we can cache the state of FIPS of the
host as it will not change during the runtime of the guest.

Introduce a 'hostFips' flag to 'virQEMUDriver' and move the code
checking the state from 'qemuCheckFips' to 'qemuStateInitialize' and
also populate 'hostFips' in qemuxml2argvtest.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_command.c
src/qemu/qemu_conf.h
src/qemu/qemu_driver.c
tests/qemuxml2argvtest.c