TianoCore EDK2 master
Loading...
Searching...
No Matches
TdxAcpiTable.c File Reference

Go to the source code of this file.

Functions

EFI_PHYSICAL_ADDRESS EFIAPI RelocateMailbox (VOID)
 
VOID EFIAPI AlterAcpiTable (IN EFI_EVENT Event, IN VOID *Context)
 

Detailed Description

OVMF ACPI QEMU support

Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.

Copyright (C) 2012-2014, Red Hat, Inc.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file TdxAcpiTable.c.

Function Documentation

◆ AlterAcpiTable()

VOID EFIAPI AlterAcpiTable ( IN EFI_EVENT  Event,
IN VOID *  Context 
)

Alter the MADT when ACPI Table from QEMU is available.

Parameters
[in]EventEvent whose notification function is being invoked
[in]ContextPointer to the notification function's context

Definition at line 129 of file TdxAcpiTable.c.

◆ RelocateMailbox()

EFI_PHYSICAL_ADDRESS EFIAPI RelocateMailbox ( VOID  )

At the beginning of system boot, a 4K-aligned, 4K-size memory (Td mailbox) is pre-allocated by host VMM. BSP & APs do the page accept together in that memory region.

After that TDVF is designed to relocate the mailbox to a 4K-aligned, 4K-size memory block which is allocated in the ACPI Nvs memory. APs are waken up and spin around the relocated mailbox for further command.

Returns
EFI_PHYSICAL_ADDRESS Address of the relocated mailbox

Definition at line 44 of file TdxAcpiTable.c.