VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/OvmfPkg/Include/TdxCommondefs.inc

Last change on this file was 99404, checked in by vboxsync, 19 months ago

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

  • Property svn:eol-style set to native
File size: 2.2 KB
Line 
1;------------------------------------------------------------------------------
2; @file
3; TDX Common defitions used by the APs in mailbox
4;
5; Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
6; SPDX-License-Identifier: BSD-2-Clause-Patent
7;
8;------------------------------------------------------------------------------
9
10CommandOffset equ 00h
11ApicidOffset equ 04h
12WakeupVectorOffset equ 08h
13OSArgsOffset equ 10h
14FirmwareArgsOffset equ 800h
15WakeupArgsRelocatedMailBox equ 800h
16AcceptPageArgsPhysicalStart equ 800h
17AcceptPageArgsPhysicalEnd equ 808h
18AcceptPageArgsTopStackAddress equ 810h
19AcceptPageArgsApStackSize equ 818h
20CpuArrivalOffset equ 900h
21CpusExitingOffset equ 0a00h
22TalliesOffset equ 0a08h
23ErrorsOffset equ 0e08h
24
25SIZE_4KB equ 1000h
26SIZE_2MB equ 200000h
27SIZE_1GB equ 40000000h
28
29PAGE_ACCEPT_LEVEL_4K equ 0
30PAGE_ACCEPT_LEVEL_2M equ 1
31PAGE_ACCEPT_LEVEL_1G equ 2
32
33TDX_PAGE_ALREADY_ACCEPTED equ 0x00000b0a
34TDX_PAGE_SIZE_MISMATCH equ 0xc0000b0b
35
36; Errors of APs in Mailbox
37ERROR_NON equ 0
38ERROR_INVALID_ACCEPT_PAGE_SIZE equ 1
39ERROR_ACCEPT_PAGE_ERROR equ 2
40ERROR_INVALID_FALLBACK_PAGE_LEVEL equ 3
41
42MpProtectedModeWakeupCommandNoop equ 0
43MpProtectedModeWakeupCommandWakeup equ 1
44MpProtectedModeWakeupCommandSleep equ 2
45MpProtectedModeWakeupCommandAcceptPages equ 3
46
47MailboxApicIdInvalid equ 0xffffffff
48MailboxApicidBroadcast equ 0xfffffffe
49
50%define TDCALL_TDINFO 0x1
51%define TDCALL_TDACCEPTPAGE 0x6
Note: See TracBrowser for help on using the repository browser.

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