From: Claudio Fontana<cfontana@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<cfontana@suse.de>
Signed-off-by: Alex Bennée<alex.bennee@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(-)