/* Immutable values */
bool privileged;
char *embeddedRoot;
- bool hostFips; /* FIPS mode is enabled on the host */
/* Immutable pointers. Caller must provide locking */
virStateInhibitCallback inhibitCallback;
if (qemuMigrationDstErrorInit(qemu_driver) < 0)
goto error;
- /* qemu-5.1 and older requires use of '-enable-fips' flag when the host
- * is in FIPS mode. We store whether FIPS is enabled */
- if (virFileExists("/proc/sys/crypto/fips_enabled")) {
- g_autofree char *buf = NULL;
-
- if (virFileReadAll("/proc/sys/crypto/fips_enabled", 10, &buf) > 0)
- qemu_driver->hostFips = STREQ(buf, "1\n");
- }
-
if (privileged) {
g_autofree char *channeldir = NULL;
{
virCheckFlags(FLAG_EXPECT_FAILURE |
FLAG_EXPECT_PARSE_ERROR |
- FLAG_FIPS_HOST |
FLAG_REAL_CAPS |
FLAG_SLIRP_HELPER |
FLAG_ALLOW_DUPLICATE_OUTPUT |
qemuDomainObjPrivate *priv = vm->privateData;
size_t i;
- drv->hostFips = flags & FLAG_FIPS_HOST;
-
if (qemuProcessCreatePretendCmdPrepare(drv, vm, migrateURI,
VIR_QEMU_PROCESS_START_COLD) < 0)
return NULL;
DO_TEST_CAPS_ARCH_LATEST_PARSE_ERROR("pvpanic-pci-invalid-address-aarch64", "aarch64");
DO_TEST_CAPS_ARCH_LATEST("pvpanic-pci-no-address-aarch64", "aarch64");
- DO_TEST_CAPS_ARCH_LATEST_FULL("fips-enabled", "x86_64", ARG_FLAGS, FLAG_FIPS_HOST);
+ DO_TEST_CAPS_LATEST("fips-enabled");
DO_TEST_CAPS_LATEST("shmem-plain-doorbell");
DO_TEST_CAPS_LATEST_PARSE_ERROR("shmem-invalid-size");
typedef enum {
FLAG_EXPECT_FAILURE = 1 << 0,
FLAG_EXPECT_PARSE_ERROR = 1 << 1,
- FLAG_FIPS_HOST = 1 << 2, /* simulate host with FIPS mode enabled */
- FLAG_REAL_CAPS = 1 << 3,
- FLAG_SLIRP_HELPER = 1 << 4,
- FLAG_ALLOW_DUPLICATE_OUTPUT = 1 << 5, /* allow multiple tests with the same output file */
+ FLAG_REAL_CAPS = 1 << 2,
+ FLAG_SLIRP_HELPER = 1 << 3,
+ FLAG_ALLOW_DUPLICATE_OUTPUT = 1 << 4, /* allow multiple tests with the same output file */
} testQemuInfoFlags;
struct testQemuConf {