sev/i386: add sev_get_capabilities()
commit9f750794985d7386f088da941c76b73880b2b6c4
authorBrijesh Singh <brijesh.singh@amd.com>
Thu, 8 Mar 2018 12:49:00 +0000 (8 06:49 -0600)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 13 Mar 2018 16:36:06 +0000 (13 17:36 +0100)
tree926f1af83161267bf631bddd7ef7114956e900f0
parent31dd67f684c862303cf3bb18dba10567bc35e0ab
sev/i386: add sev_get_capabilities()

The function can be used to get the current SEV capabilities.
The capabilities include platform diffie-hellman key (pdh) and certificate
chain. The key can be provided to the external entities which wants to
establish a trusted channel between SEV firmware and guest owner.

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/monitor.c
target/i386/sev-stub.c
target/i386/sev.c
target/i386/sev_i386.h