diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2024-05-31 12:44:44 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-06-05 11:01:06 +0200 |
| commit | a808132f6d8e855bd83a400570ec91d2e00bebe3 (patch) | |
| tree | c168e1d1bc6a3bd8cdc4f386a11ca47b5c831e93 /include | |
| parent | 73ae63b162fc1fed520f53ad200712964d7d0264 (diff) | |
| download | qemu-a808132f6d8e855bd83a400570ec91d2e00bebe3.zip qemu-a808132f6d8e855bd83a400570ec91d2e00bebe3.tar.gz qemu-a808132f6d8e855bd83a400570ec91d2e00bebe3.tar.bz2 | |
i386/sev: Add a class method to determine KVM VM type for SNP guests
SEV guests can use either KVM_X86_DEFAULT_VM, KVM_X86_SEV_VM,
or KVM_X86_SEV_ES_VM depending on the configuration and what
the host kernel supports. SNP guests on the other hand can only
ever use KVM_X86_SNP_VM, so split determination of VM type out
into a separate class method that can be set accordingly for
sev-guest vs. sev-snp-guest objects and add handling for SNP.
Signed-off-by: Pankaj Gupta <pankaj.gupta@amd.com>
Message-ID: <20240530111643.1091816-14-pankaj.gupta@amd.com>
[Remove unnecessary function pointer declaration. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
