]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/i386/sev: Use legacy SEV VM types for older machine types
authorMichael Roth <michael.roth@amd.com>
Tue, 9 Apr 2024 23:07:43 +0000 (18:07 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 23 Apr 2024 15:35:25 +0000 (17:35 +0200)
commitea7fbd37537b3a598335c21ccb2ea674630fc810
treebf21dea8a7bb50878e062b7537adcdf8d3a7e5ab
parent023267334da375226720e62963df9545aa8fc2fd
hw/i386/sev: Use legacy SEV VM types for older machine types

Newer 9.1 machine types will default to using the KVM_SEV_INIT2 API for
creating SEV/SEV-ES going forward. However, this API results in guest
measurement changes which are generally not expected for users of these
older guest types and can cause disruption if they switch to a newer
QEMU/kernel version. Avoid this by continuing to use the older
KVM_SEV_INIT/KVM_SEV_ES_INIT APIs for older machine types.

Signed-off-by: Michael Roth <michael.roth@amd.com>
Message-ID: <20240409230743.962513-4-michael.roth@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/i386/pc.c
target/i386/sev.c