VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/OvmfPkg/VirtHstiDxe/QemuCommon.c@ 106190

Last change on this file since 106190 was 105670, checked in by vboxsync, 8 months ago

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

  • Property svn:eol-style set to native
File size: 664 bytes
Line 
1/** @file
2
3SPDX-License-Identifier: BSD-2-Clause-Patent
4
5**/
6
7#include <Library/BaseLib.h>
8#include <Library/DebugLib.h>
9
10#include "VirtHstiDxe.h"
11
12VOID
13VirtHstiQemuCommonInit (
14 VIRT_ADAPTER_INFO_PLATFORM_SECURITY *VirtHsti
15 )
16{
17 VirtHstiSetSupported (VirtHsti, 0, VIRT_HSTI_BYTE0_READONLY_CODE_FLASH);
18}
19
20VOID
21VirtHstiQemuCommonVerify (
22 VOID
23 )
24{
25 CHAR16 *ErrorMsg;
26
27 switch (VirtHstiQemuFirmwareFlashCheck (PcdGet32 (PcdBfvBase))) {
28 case QEMU_FIRMWARE_FLASH_WRITABLE:
29 ErrorMsg = L"qemu code pflash is writable";
30 break;
31 default:
32 ErrorMsg = NULL;
33 }
34
35 VirtHstiTestResult (ErrorMsg, 0, VIRT_HSTI_BYTE0_READONLY_CODE_FLASH);
36}
Note: See TracBrowser for help on using the repository browser.

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