mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-18 10:35:20 +00:00
qemu: Report snp-policy in virDomainGetLaunchSecurityInfo()
Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
914b986275
commit
be26d0ebbe
@ -6312,6 +6312,16 @@ int virDomainSetLifecycleAction(virDomainPtr domain,
|
|||||||
*/
|
*/
|
||||||
# define VIR_DOMAIN_LAUNCH_SECURITY_SEV_POLICY "sev-policy"
|
# define VIR_DOMAIN_LAUNCH_SECURITY_SEV_POLICY "sev-policy"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* VIR_DOMAIN_LAUNCH_SECURITY_SEV_SNP_POLICY:
|
||||||
|
*
|
||||||
|
* Macro represents the policy of the SEV-SNP guest,
|
||||||
|
* as VIR_TYPED_PARAM_ULLONG.
|
||||||
|
*
|
||||||
|
* Since: 10.5.0
|
||||||
|
*/
|
||||||
|
# define VIR_DOMAIN_LAUNCH_SECURITY_SEV_SNP_POLICY "sev-snp-policy"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* VIR_DOMAIN_LAUNCH_SECURITY_SEV_SECRET_HEADER:
|
* VIR_DOMAIN_LAUNCH_SECURITY_SEV_SECRET_HEADER:
|
||||||
*
|
*
|
||||||
|
@ -19088,6 +19088,12 @@ qemuDomainGetSEVInfo(virDomainObj *vm,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case QEMU_MONITOR_SEV_GUEST_TYPE_SEV_SNP:
|
case QEMU_MONITOR_SEV_GUEST_TYPE_SEV_SNP:
|
||||||
|
if (virTypedParamsAddULLong(params, nparams, &maxpar,
|
||||||
|
VIR_DOMAIN_LAUNCH_SECURITY_SEV_SNP_POLICY,
|
||||||
|
info.data.sev_snp.snp_policy) < 0)
|
||||||
|
goto endjob;
|
||||||
|
break;
|
||||||
|
|
||||||
case QEMU_MONITOR_SEV_GUEST_TYPE_LAST:
|
case QEMU_MONITOR_SEV_GUEST_TYPE_LAST:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user