qemu/accel/kvm
Xiaoyao Li b4b7fb5a77 cpu: Don't set vcpu_dirty when guest_state_protected
QEMU calls kvm_arch_put_registers() when vcpu_dirty is true in
kvm_vcpu_exec(). However, for confidential guest, like TDX, putting
registers is disallowed due to guest state is protected.

Only set vcpu_dirty to true with guest state is not protected when
creating the vcpu.

Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Link: https://lore.kernel.org/r/20250508150002.689633-43-xiaoyao.li@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-05-28 19:35:54 +02:00
..
kvm-accel-ops.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
kvm-all.c cpu: Don't set vcpu_dirty when guest_state_protected 2025-05-28 19:35:54 +02:00
kvm-cpus.h accel/kvm: Remove unused 'system/cpus.h' header in kvm-cpus.h 2025-03-06 15:46:18 +01:00
meson.build target/i386/kvm: Restrict SEV stubs to x86 architecture 2021-10-13 10:47:49 +02:00
trace-events KVM: Dynamic sized kvm memslots array 2024-10-17 19:41:30 +02:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00