diff options
author | Tom Lendacky <thomas.lendacky@amd.com> | 2021-01-26 11:36:47 -0600 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-02-16 17:15:39 +0100 |
commit | 92a5199b29f6519aa5f774f4b96dc41954f641d1 (patch) | |
tree | d6346db204e09ea7c5b2546dded9bb7ae457aa88 /target/mips/kvm.c | |
parent | b2f73a0784b7a5eae2022ccf3293792bd008cc64 (diff) | |
download | qemu-92a5199b29f6519aa5f774f4b96dc41954f641d1.zip qemu-92a5199b29f6519aa5f774f4b96dc41954f641d1.tar.gz qemu-92a5199b29f6519aa5f774f4b96dc41954f641d1.tar.bz2 |
sev/i386: Don't allow a system reset under an SEV-ES guest
An SEV-ES guest does not allow register state to be altered once it has
been measured. When an SEV-ES guest issues a reboot command, Qemu will
reset the vCPU state and resume the guest. This will cause failures under
SEV-ES. Prevent that from occuring by introducing an arch-specific
callback that returns a boolean indicating whether vCPUs are resettable.
Cc: Peter Maydell <peter.maydell@linaro.org>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: Aleksandar Rikalo <aleksandar.rikalo@syrmia.com>
Cc: David Gibson <david@gibson.dropbear.id.au>
Cc: David Hildenbrand <david@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Reviewed-by: Venu Busireddy <venu.busireddy@oracle.com>
Message-Id: <1ac39c441b9a3e970e9556e1cc29d0a0814de6fd.1611682609.git.thomas.lendacky@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/mips/kvm.c')
-rw-r--r-- | target/mips/kvm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target/mips/kvm.c b/target/mips/kvm.c index 84fb10e..123ec1b 100644 --- a/target/mips/kvm.c +++ b/target/mips/kvm.c @@ -1290,3 +1290,8 @@ int mips_kvm_type(MachineState *machine, const char *vm_type) return -1; } + +bool kvm_arch_cpu_check_are_resettable(void) +{ + return true; +} |