File: shutdown.plantuml

package info (click to toggle)
tboot 1.10.5-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,000 kB
  • sloc: ansic: 56,029; python: 6,595; perl: 2,303; sh: 455; asm: 442; makefile: 377
file content (27 lines) | stat: -rw-r--r-- 534 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@startuml Shutdown

start
if (CPU is AP?) then (true)
    :catch CPU in VMX;
    stop
else (false)
    :wait until all APs in VMX/
    :release locality 0 and 1;
    :request locality 2;
    if (S3 enter flow?) then (yes)
        :restore DMAR table;
        :seal state into TPM;
    endif
    :cap PCRs;
    :force APs to exit VMX;
    :prepare & call GETSEC[SEXIT];
    if (S3 enter flow?) then (yes)
        :set resume entry;
        :enter S3;
        stop;
    else (no)
        :shutdown;
        stop
    endif
endif
@enduml