mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
qemuGetSEVInfoToParams: Reformat to standard coding style
The function was formatted weirdly which prompted additions to conform to the unusual style. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
5ce184f33c
commit
8cd1fdb79a
@ -19914,30 +19914,30 @@ qemuGetSEVInfoToParams(virQEMUCaps *qemuCaps,
|
||||
virCheckFlags(VIR_TYPED_PARAM_STRING_OKAY, -1);
|
||||
|
||||
if (virTypedParamsAddString(&sevParams, &n, &maxpar,
|
||||
VIR_NODE_SEV_PDH, sev->pdh) < 0)
|
||||
VIR_NODE_SEV_PDH, sev->pdh) < 0)
|
||||
return -1;
|
||||
|
||||
if (virTypedParamsAddString(&sevParams, &n, &maxpar,
|
||||
VIR_NODE_SEV_CERT_CHAIN, sev->cert_chain) < 0)
|
||||
VIR_NODE_SEV_CERT_CHAIN, sev->cert_chain) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (virTypedParamsAddUInt(&sevParams, &n, &maxpar,
|
||||
VIR_NODE_SEV_CBITPOS, sev->cbitpos) < 0)
|
||||
VIR_NODE_SEV_CBITPOS, sev->cbitpos) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (virTypedParamsAddUInt(&sevParams, &n, &maxpar,
|
||||
VIR_NODE_SEV_REDUCED_PHYS_BITS,
|
||||
sev->reduced_phys_bits) < 0)
|
||||
VIR_NODE_SEV_REDUCED_PHYS_BITS,
|
||||
sev->reduced_phys_bits) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (virTypedParamsAddUInt(&sevParams, &n, &maxpar,
|
||||
VIR_NODE_SEV_MAX_GUESTS,
|
||||
sev->max_guests) < 0)
|
||||
VIR_NODE_SEV_MAX_GUESTS,
|
||||
sev->max_guests) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (virTypedParamsAddUInt(&sevParams, &n, &maxpar,
|
||||
VIR_NODE_SEV_MAX_ES_GUESTS,
|
||||
sev->max_es_guests) < 0)
|
||||
VIR_NODE_SEV_MAX_ES_GUESTS,
|
||||
sev->max_es_guests) < 0)
|
||||
goto cleanup;
|
||||
|
||||
*params = g_steal_pointer(&sevParams);
|
||||
|
Loading…
Reference in New Issue
Block a user