qemu-e2k/accel
Tom Lendacky 92a5199b29 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>
2021-02-16 17:15:39 +01:00
..
hvf hvf: Add hypervisor entitlement to output binaries 2021-01-29 10:47:28 +00:00
kvm sev/i386: Don't allow a system reset under an SEV-ES guest 2021-02-16 17:15:39 +01:00
qtest accel: replace struct CpusAccel with AccelOpsClass 2021-02-05 10:24:15 -10:00
stubs sev: Remove false abstraction of flash encryption 2021-02-08 16:57:38 +11:00
tcg accel/tcg: Add URL of clang bug to comment about our workaround 2021-02-11 11:50:14 +00:00
xen accel: replace struct CpusAccel with AccelOpsClass 2021-02-05 10:24:15 -10:00
Kconfig meson: cleanup Kconfig.host handling 2021-01-02 21:03:36 +01:00
accel-common.c accel: introduce AccelCPUClass extending CPUClass 2021-02-05 10:24:15 -10:00
accel-softmmu.c accel: replace struct CpusAccel with AccelOpsClass 2021-02-05 10:24:15 -10:00
accel-softmmu.h accel: replace struct CpusAccel with AccelOpsClass 2021-02-05 10:24:15 -10:00
accel-user.c accel: extend AccelState and AccelClass to user-mode 2021-02-05 10:24:15 -10:00
dummy-cpus.c accel: move qtest CpusAccel functions to a common location 2020-10-24 07:23:19 +02:00
meson.build accel: extend AccelState and AccelClass to user-mode 2021-02-05 10:24:15 -10:00