summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/Library/VmgExitLib/SecVmgExitVcHandler.c
diff options
context:
space:
mode:
Diffstat (limited to 'OvmfPkg/Library/VmgExitLib/SecVmgExitVcHandler.c')
-rw-r--r--OvmfPkg/Library/VmgExitLib/SecVmgExitVcHandler.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/OvmfPkg/Library/VmgExitLib/SecVmgExitVcHandler.c b/OvmfPkg/Library/VmgExitLib/SecVmgExitVcHandler.c
index 85853d334b..fe8680f831 100644
--- a/OvmfPkg/Library/VmgExitLib/SecVmgExitVcHandler.c
+++ b/OvmfPkg/Library/VmgExitLib/SecVmgExitVcHandler.c
@@ -54,10 +54,10 @@ VmgExitHandleVc (
ASSERT (Msr.GhcbInfo.Function == 0);
ASSERT (Msr.Ghcb != 0);
- Ghcb = Msr.Ghcb;
+ Ghcb = Msr.Ghcb;
GhcbBackup = NULL;
- SevEsData = (SEV_ES_PER_CPU_DATA *) (Ghcb + 1);
+ SevEsData = (SEV_ES_PER_CPU_DATA *)(Ghcb + 1);
SevEsData->VcCount++;
//
@@ -84,7 +84,7 @@ VmgExitHandleVc (
// To access the correct backup page, increment the backup page pointer
// based on the current VcCount.
//
- GhcbBackup = (GHCB *) FixedPcdGet32 (PcdOvmfSecGhcbBackupBase);
+ GhcbBackup = (GHCB *)FixedPcdGet32 (PcdOvmfSecGhcbBackupBase);
GhcbBackup += (SevEsData->VcCount - 2);
CopyMem (GhcbBackup, Ghcb, sizeof (*Ghcb));