diff options
| author | Brijesh Singh <brijesh.singh@amd.com> | 2022-04-26 18:03:10 +0000 |
|---|---|---|
| committer | Suravee Suthikulpanit <suravee.suthikulpanit@amd.com> | 2022-07-13 17:27:26 -0500 |
| commit | bf9ac8c4471fd5c9b98828fc1a3cb6b4cd29344a (patch) | |
| tree | 2622d10753c1a86acca013e4170c9e04f40ff2b1 /scripts/objdiff | |
| parent | 0543aac866ffb4e6030031068e93d8031edf7a8e (diff) | |
| download | cachepc-linux-bf9ac8c4471fd5c9b98828fc1a3cb6b4cd29344a.tar.gz cachepc-linux-bf9ac8c4471fd5c9b98828fc1a3cb6b4cd29344a.zip | |
crypto: ccp: Handle the legacy SEV command when SNP is enabled
The behavior of the SEV-legacy commands is altered when the SNP firmware
is in the INIT state. When SNP is in INIT state, all the SEV-legacy
commands that cause the firmware to write to memory must be in the
firmware state before issuing the command..
A command buffer may contains a system physical address that the firmware
may write to. There are two cases that need to be handled:
1) system physical address points to a guest memory
2) system physical address points to a host memory
To handle the case #1, change the page state to the firmware in the RMP
table before issuing the command and restore the state to shared after the
command completes.
For the case #2, use a bounce buffer to complete the request.
Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
