diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index 3d1ac76ecbfd887795f240dfd0ffe0f3bc4cd831..31ae3f39a6a243e7475cf5677b2477bb62b79369 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -6046,6 +6046,7 @@ qemuProcessSEVCreateFile(virDomainObjPtr vm, const char *data) { qemuDomainObjPrivatePtr priv = vm->privateData; + virQEMUDriverPtr driver = priv->driver; char *configFile; int ret = -1; @@ -6058,6 +6059,9 @@ qemuProcessSEVCreateFile(virDomainObjPtr vm, goto cleanup; } + if (qemuSecurityDomainSetPathLabel(driver, vm, configFile, true) < 0) + goto cleanup; + ret = 0; cleanup: VIR_FREE(configFile);