qemu/accel
Tom Dohrmann e7713eb088 accel/kvm: check for KVM_CAP_READONLY_MEM on VM
KVM_CAP_READONLY_MEM used to be a global capability, but with the
introduction of AMD SEV-SNP confidential VMs, this extension is not
always available on all VM types [1,2].

Query the extension on the VM level instead of on the KVM level.

[1] https://patchwork.kernel.org/project/kvm/patch/20240809190319.1710470-2-seanjc@google.com/
[2] https://patchwork.kernel.org/project/kvm/patch/20240902144219.3716974-1-erbse.13@gmx.de/

Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Tom Dohrmann <erbse.13@gmx.de>
Link: https://lore.kernel.org/r/20240903062953.3926498-1-erbse.13@gmx.de
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 64e0e63ea1)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2024-11-08 13:02:41 +03:00
..
hvf accel/tcg: Move can_do_io to CPUNegativeOffsetState 2023-10-03 08:01:02 -07:00
kvm accel/kvm: check for KVM_CAP_READONLY_MEM on VM 2024-11-08 13:02:41 +03:00
qtest meson: Replace CONFIG_SOFTMMU -> CONFIG_SYSTEM_ONLY 2023-06-20 10:01:30 +02:00
stubs accel/tcg: Factor tcg_cpu_reset_hold() out 2023-11-07 12:13:27 +01:00
tcg accel/tcg: Fix typo causing tb->page_addr[1] to not be recorded 2024-06-20 15:22:00 +03:00
xen accel/xen: Fix DM state change notification in dm_restrict mode 2023-03-23 09:56:54 +00:00
accel-blocker.c accel: introduce accelerator blocker API 2023-01-11 09:59:39 +01:00
accel-system.c accel: Rename accel_softmmu* -> accel_system* 2023-10-07 19:02:57 +02:00
accel-system.h accel: Rename accel_softmmu* -> accel_system* 2023-10-07 19:02:57 +02:00
accel-target.c accel: Rename accel_softmmu* -> accel_system* 2023-10-07 19:02:57 +02:00
accel-user.c accel: extend AccelState and AccelClass to user-mode 2021-02-05 10:24:15 -10:00
dummy-cpus.c accel/tcg: Move can_do_io to CPUNegativeOffsetState 2023-10-03 08:01:02 -07:00
Kconfig accel: Remove HAX accelerator 2023-08-31 19:46:43 +02:00
meson.build accel: Rename accel_softmmu* -> accel_system* 2023-10-07 19:02:57 +02:00