VirtualBox

Ignore:
Timestamp:
Aug 14, 2024 1:16:30 PM (7 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
164367
Message:

Devices/EFI/FirmwareNew: Merge edk2-stable-202405 and make it build on aarch64, bugref:4643

Location:
trunk/src/VBox/Devices/EFI/FirmwareNew
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/FirmwareNew

  • trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/Library/BaseMemEncryptSevLib/X64/PeiSnpSystemRamValidate.c

    r99404 r105670  
    33  SEV-SNP Page Validation functions.
    44
    5   Copyright (c) 2021 AMD Incorporated. All rights reserved.<BR>
     5  Copyright (c) 2021 - 2024, AMD Incorporated. All rights reserved.<BR>
    66
    77  SPDX-License-Identifier: BSD-2-Clause-Patent
     
    1717#include "SnpPageStateChange.h"
    1818#include "VirtualMemory.h"
     19
     20STATIC UINT8  mPscBufferPage[EFI_PAGE_SIZE];
    1921
    2022typedef struct {
     
    114116        NumPages = EFI_SIZE_TO_PAGES (OverlapRange.StartAddress - BaseAddress);
    115117
    116         InternalSetPageState (BaseAddress, NumPages, SevSnpPagePrivate, TRUE);
     118        InternalSetPageState (
     119          BaseAddress,
     120          NumPages,
     121          SevSnpPagePrivate,
     122          TRUE,
     123          mPscBufferPage,
     124          sizeof (mPscBufferPage)
     125          );
    117126      }
    118127
     
    123132    // Validate the remaining pages.
    124133    NumPages = EFI_SIZE_TO_PAGES (EndAddress - BaseAddress);
    125     InternalSetPageState (BaseAddress, NumPages, SevSnpPagePrivate, TRUE);
     134    InternalSetPageState (
     135      BaseAddress,
     136      NumPages,
     137      SevSnpPagePrivate,
     138      TRUE,
     139      mPscBufferPage,
     140      sizeof (mPscBufferPage)
     141      );
    126142    BaseAddress = EndAddress;
    127143  }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette