Il mer 6 nov 2024, 14:57 Xiaoyao Li <xiaoyao...@intel.com> ha scritto:

> 8<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> --- a/accel/kvm/kvm-all.c
> +++ b/accel/kvm/kvm-all.c
> @@ -457,7 +457,9 @@ int kvm_create_vcpu(CPUState *cpu)
>
>       cpu->kvm_fd = kvm_fd;
>       cpu->kvm_state = s;
> -    cpu->vcpu_dirty = true;
> +    if (!s->guest_state_protected) {
> +        cpu->vcpu_dirty = true;
> +    }
>

Yes, that works.

Paolo

      cpu->dirty_pages = 0;
>       cpu->throttle_us_per_full = 0;
>
> > Paolo
> >
>
>

Reply via email to