OvmfPkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the OvmfPkg package Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Andrew Fish <afish@apple.com>
This commit is contained in:
committed by
mergify[bot]
parent
d1050b9dff
commit
ac0a286f4d
@@ -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++;
|
||||
|
||||
//
|
||||
@@ -78,7 +78,7 @@ VmgExitHandleVc (
|
||||
// To access the correct backup page, increment the backup page pointer
|
||||
// based on the current VcCount.
|
||||
//
|
||||
GhcbBackup = (GHCB *) SevEsData->GhcbBackupPages;
|
||||
GhcbBackup = (GHCB *)SevEsData->GhcbBackupPages;
|
||||
GhcbBackup += (SevEsData->VcCount - 2);
|
||||
|
||||
CopyMem (GhcbBackup, Ghcb, sizeof (*Ghcb));
|
||||
|
@@ -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));
|
||||
|
@@ -28,7 +28,7 @@
|
||||
STATIC
|
||||
UINT64
|
||||
VmgExitErrorCheck (
|
||||
IN GHCB *Ghcb
|
||||
IN GHCB *Ghcb
|
||||
)
|
||||
{
|
||||
GHCB_EVENT_INJECTION Event;
|
||||
@@ -36,8 +36,10 @@ VmgExitErrorCheck (
|
||||
UINT64 Status;
|
||||
|
||||
ExitInfo.Uint64 = Ghcb->SaveArea.SwExitInfo1;
|
||||
ASSERT ((ExitInfo.Elements.Lower32Bits == 0) ||
|
||||
(ExitInfo.Elements.Lower32Bits == 1));
|
||||
ASSERT (
|
||||
(ExitInfo.Elements.Lower32Bits == 0) ||
|
||||
(ExitInfo.Elements.Lower32Bits == 1)
|
||||
);
|
||||
|
||||
Status = 0;
|
||||
if (ExitInfo.Elements.Lower32Bits == 0) {
|
||||
@@ -52,14 +54,15 @@ VmgExitErrorCheck (
|
||||
//
|
||||
Event.Uint64 = Ghcb->SaveArea.SwExitInfo2;
|
||||
if (Event.Elements.Valid &&
|
||||
Event.Elements.Type == GHCB_EVENT_INJECTION_TYPE_EXCEPTION) {
|
||||
(Event.Elements.Type == GHCB_EVENT_INJECTION_TYPE_EXCEPTION))
|
||||
{
|
||||
switch (Event.Elements.Vector) {
|
||||
case GP_EXCEPTION:
|
||||
case UD_EXCEPTION:
|
||||
//
|
||||
// Use returned event as return code
|
||||
//
|
||||
Status = Event.Uint64;
|
||||
case GP_EXCEPTION:
|
||||
case UD_EXCEPTION:
|
||||
//
|
||||
// Use returned event as return code
|
||||
//
|
||||
Status = Event.Uint64;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -67,7 +70,7 @@ VmgExitErrorCheck (
|
||||
if (Status == 0) {
|
||||
GHCB_EVENT_INJECTION GpEvent;
|
||||
|
||||
GpEvent.Uint64 = 0;
|
||||
GpEvent.Uint64 = 0;
|
||||
GpEvent.Elements.Vector = GP_EXCEPTION;
|
||||
GpEvent.Elements.Type = GHCB_EVENT_INJECTION_TYPE_EXCEPTION;
|
||||
GpEvent.Elements.Valid = 1;
|
||||
@@ -100,13 +103,13 @@ VmgExitErrorCheck (
|
||||
UINT64
|
||||
EFIAPI
|
||||
VmgExit (
|
||||
IN OUT GHCB *Ghcb,
|
||||
IN UINT64 ExitCode,
|
||||
IN UINT64 ExitInfo1,
|
||||
IN UINT64 ExitInfo2
|
||||
IN OUT GHCB *Ghcb,
|
||||
IN UINT64 ExitCode,
|
||||
IN UINT64 ExitInfo1,
|
||||
IN UINT64 ExitInfo2
|
||||
)
|
||||
{
|
||||
Ghcb->SaveArea.SwExitCode = ExitCode;
|
||||
Ghcb->SaveArea.SwExitCode = ExitCode;
|
||||
Ghcb->SaveArea.SwExitInfo1 = ExitInfo1;
|
||||
Ghcb->SaveArea.SwExitInfo2 = ExitInfo2;
|
||||
|
||||
@@ -140,8 +143,8 @@ VmgExit (
|
||||
VOID
|
||||
EFIAPI
|
||||
VmgInit (
|
||||
IN OUT GHCB *Ghcb,
|
||||
IN OUT BOOLEAN *InterruptState
|
||||
IN OUT GHCB *Ghcb,
|
||||
IN OUT BOOLEAN *InterruptState
|
||||
)
|
||||
{
|
||||
//
|
||||
@@ -170,8 +173,8 @@ VmgInit (
|
||||
VOID
|
||||
EFIAPI
|
||||
VmgDone (
|
||||
IN OUT GHCB *Ghcb,
|
||||
IN BOOLEAN InterruptState
|
||||
IN OUT GHCB *Ghcb,
|
||||
IN BOOLEAN InterruptState
|
||||
)
|
||||
{
|
||||
if (InterruptState) {
|
||||
@@ -192,8 +195,8 @@ VmgDone (
|
||||
VOID
|
||||
EFIAPI
|
||||
VmgSetOffsetValid (
|
||||
IN OUT GHCB *Ghcb,
|
||||
IN GHCB_REGISTER Offset
|
||||
IN OUT GHCB *Ghcb,
|
||||
IN GHCB_REGISTER Offset
|
||||
)
|
||||
{
|
||||
UINT32 OffsetIndex;
|
||||
@@ -221,8 +224,8 @@ VmgSetOffsetValid (
|
||||
BOOLEAN
|
||||
EFIAPI
|
||||
VmgIsOffsetValid (
|
||||
IN GHCB *Ghcb,
|
||||
IN GHCB_REGISTER Offset
|
||||
IN GHCB *Ghcb,
|
||||
IN GHCB_REGISTER Offset
|
||||
)
|
||||
{
|
||||
UINT32 OffsetIndex;
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user