提交 6b90f4bb 编写于 作者: J Ján Tomko

Rename virDomainSevDefPtr to virDomainSEVDefPtr

Some identifiers use Sev, some SEV. Prefer the latter.
Signed-off-by: NJán Tomko <jtomko@redhat.com>
Reviewed-by: NBrijesh Singh <brijesh.singh@amd.com>
Tested-by: NBrijesh Singh <brijesh.singh@amd.com>
Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
上级 6718132d
...@@ -2962,7 +2962,7 @@ virDomainCachetuneDefFree(virDomainCachetuneDefPtr cachetune) ...@@ -2962,7 +2962,7 @@ virDomainCachetuneDefFree(virDomainCachetuneDefPtr cachetune)
static void static void
virDomainSEVDefFree(virDomainSevDefPtr def) virDomainSEVDefFree(virDomainSEVDefPtr def)
{ {
if (!def) if (!def)
return; return;
...@@ -15845,13 +15845,13 @@ virDomainMemoryTargetDefParseXML(xmlNodePtr node, ...@@ -15845,13 +15845,13 @@ virDomainMemoryTargetDefParseXML(xmlNodePtr node,
} }
static virDomainSevDefPtr static virDomainSEVDefPtr
virDomainSEVDefParseXML(xmlNodePtr sevNode, virDomainSEVDefParseXML(xmlNodePtr sevNode,
xmlXPathContextPtr ctxt) xmlXPathContextPtr ctxt)
{ {
char *type = NULL; char *type = NULL;
xmlNodePtr save = ctxt->node; xmlNodePtr save = ctxt->node;
virDomainSevDefPtr def; virDomainSEVDefPtr def;
unsigned long policy; unsigned long policy;
if (VIR_ALLOC(def) < 0) if (VIR_ALLOC(def) < 0)
...@@ -26754,7 +26754,7 @@ virDomainKeyWrapDefFormat(virBufferPtr buf, virDomainKeyWrapDefPtr keywrap) ...@@ -26754,7 +26754,7 @@ virDomainKeyWrapDefFormat(virBufferPtr buf, virDomainKeyWrapDefPtr keywrap)
static void static void
virDomainSEVDefFormat(virBufferPtr buf, virDomainSevDefPtr sev) virDomainSEVDefFormat(virBufferPtr buf, virDomainSEVDefPtr sev)
{ {
if (!sev) if (!sev)
return; return;
......
...@@ -2324,10 +2324,10 @@ typedef enum { ...@@ -2324,10 +2324,10 @@ typedef enum {
VIR_DOMAIN_LAUNCH_SECURITY_LAST, VIR_DOMAIN_LAUNCH_SECURITY_LAST,
} virDomainLaunchSecurity; } virDomainLaunchSecurity;
typedef struct _virDomainSevDef virDomainSevDef; typedef struct _virDomainSEVDef virDomainSEVDef;
typedef virDomainSevDef *virDomainSevDefPtr; typedef virDomainSEVDef *virDomainSEVDefPtr;
struct _virDomainSevDef { struct _virDomainSEVDef {
int sectype; /* enum virDomainLaunchSecurity */ int sectype; /* enum virDomainLaunchSecurity */
char *dh_cert; char *dh_cert;
char *session; char *session;
...@@ -2529,7 +2529,7 @@ struct _virDomainDef { ...@@ -2529,7 +2529,7 @@ struct _virDomainDef {
virDomainKeyWrapDefPtr keywrap; virDomainKeyWrapDefPtr keywrap;
/* SEV-specific domain */ /* SEV-specific domain */
virDomainSevDefPtr sev; virDomainSEVDefPtr sev;
/* Application-specific custom metadata */ /* Application-specific custom metadata */
xmlNodePtr metadata; xmlNodePtr metadata;
......
...@@ -9692,7 +9692,7 @@ qemuBuildTPMCommandLine(virCommandPtr cmd, ...@@ -9692,7 +9692,7 @@ qemuBuildTPMCommandLine(virCommandPtr cmd,
static int static int
qemuBuildSevCommandLine(virDomainObjPtr vm, virCommandPtr cmd, qemuBuildSevCommandLine(virDomainObjPtr vm, virCommandPtr cmd,
virDomainSevDefPtr sev) virDomainSEVDefPtr sev)
{ {
virBuffer buf = VIR_BUFFER_INITIALIZER; virBuffer buf = VIR_BUFFER_INITIALIZER;
qemuDomainObjPrivatePtr priv = vm->privateData; qemuDomainObjPrivatePtr priv = vm->privateData;
......
...@@ -5854,7 +5854,7 @@ qemuProcessPrepareSevGuestInput(virDomainObjPtr vm) ...@@ -5854,7 +5854,7 @@ qemuProcessPrepareSevGuestInput(virDomainObjPtr vm)
qemuDomainObjPrivatePtr priv = vm->privateData; qemuDomainObjPrivatePtr priv = vm->privateData;
virDomainDefPtr def = vm->def; virDomainDefPtr def = vm->def;
virQEMUCapsPtr qemuCaps = priv->qemuCaps; virQEMUCapsPtr qemuCaps = priv->qemuCaps;
virDomainSevDefPtr sev = def->sev; virDomainSEVDefPtr sev = def->sev;
if (!sev) if (!sev)
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册