Skip to content

Commit

Permalink
XXX: kvm nesting reproducer
Browse files Browse the repository at this point in the history
  • Loading branch information
tpressure committed Apr 15, 2024
1 parent 824ebb9 commit d64c9d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions accel/kvm/kvm-all.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,8 @@ int kvm_init_vcpu(CPUState *cpu, Error **errp)
}
}

/** XXX: always transfer complete register state */
cpu->kvm_run->kvm_dirty_regs |= KVM_SYNC_X86_VALID_FIELDS;
ret = kvm_arch_init_vcpu(cpu);
if (ret < 0) {
error_setg_errno(errp, -ret,
Expand Down Expand Up @@ -2868,6 +2870,9 @@ int kvm_cpu_exec(CPUState *cpu)

run_ret = kvm_vcpu_ioctl(cpu, KVM_RUN, 0);

/** XXX: always mark registers as dirty */
cpu->kvm_run->kvm_dirty_regs |= KVM_SYNC_X86_VALID_FIELDS;

attrs = kvm_arch_post_run(cpu, run);

#ifdef KVM_HAVE_MCE_INJECTION
Expand Down

0 comments on commit d64c9d5

Please sign in to comment.