OSDN Git Service

sev/i386: add command to initialize the memory encryption context
authorBrijesh Singh <brijesh.singh@amd.com>
Thu, 8 Mar 2018 12:48:44 +0000 (06:48 -0600)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 13 Mar 2018 16:35:16 +0000 (17:35 +0100)
commitd8575c6c0242bb1457589111e879f46348704534
tree2b360573a58ed3ee94714080371a2b45586868e4
parent9d8ad11429fed6c54dcc7e0018dcb494927e3440
sev/i386: add command to initialize the memory encryption context

When memory encryption is enabled, KVM_SEV_INIT command is used to
initialize the platform. The command loads the SEV related persistent
data from non-volatile storage and initializes the platform context.
This command should be first issued before invoking any other guest
commands provided by the SEV firmware.

Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/Makefile.objs
target/i386/monitor.c
target/i386/sev-stub.c [new file with mode: 0644]
target/i386/sev.c
target/i386/sev_i386.h
target/i386/trace-events