On 6/4/21 8:51 AM, Alex Bennée wrote:
From: Claudio Fontana<cfont...@suse.de>

in cpu_reset(), implemented in the common cpu.c,
add a call to a new accel_cpu_reset(), which ensures that the CPU accel
interface is also reset when the CPU is reset.

Use this first for x86/kvm, simply moving the kvm_arch_reset_vcpu() call.

Signed-off-by: Claudio Fontana<cfont...@suse.de>
Signed-off-by: Alex Bennée<alex.ben...@linaro.org>
---
  include/hw/core/accel-cpu.h | 2 ++
  include/qemu/accel.h        | 6 ++++++
  accel/accel-common.c        | 9 +++++++++
  hw/core/cpu-common.c        | 3 ++-
  target/i386/cpu.c           | 4 ----
  target/i386/kvm/kvm-cpu.c   | 6 ++++++
  6 files changed, 25 insertions(+), 5 deletions(-)

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to