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

Go to the source code of this file.

Functions

VOID EFIAPI AsmGetRelocationMap (OUT MP_RELOCATION_MAP *AddressMap)
 
EFI_PHYSICAL_ADDRESS EFIAPI RelocateMailbox (VOID)
 
VOID EFIAPI AlterAcpiTable (IN EFI_EVENT Event, IN VOID *Context)
 

Detailed Description

Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file TdxAcpiTable.h.

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.