Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 00d0f7cb6617f50be90e7dbb90a83d87b33f7695
      
https://github.com/qemu/qemu/commit/00d0f7cb6617f50be90e7dbb90a83d87b33f7695
  Author: Christoffer Dall <christoffer.d...@linaro.org>
  Date:   2014-05-27 (Tue, 27 May 2014)

  Changed paths:
    M target-arm/cpu.c

  Log Message:
  -----------
  target-arm: Fix segfault on startup when KVM enabled

Commit 50a2c6e55fa introduced a bug where QEMU would segfault on startup
when using KVM on ARM hosts, because kvm_arm_reset_cpu() accesses
cpu->cpreg_reset_values, which is not allocated before
kvm_arch_init_vcpu(). Fix this by not calling cpu_reset() until after
qemu_init_vcpu().

Acked-by: Paolo Bonzini <pbonz...@redhat.com>
Reviewed-by: Peter Maydell <peter.mayd...@linaro.org>
Reviewed-by: Andreas Faerber <afaer...@suse.de>
Signed-off-by: Christoffer Dall <christoffer.d...@linaro.org>
Message-id: 1401194263-13010-1-git-send-email-christoffer.d...@linaro.org
Signed-off-by: Peter Maydell <peter.mayd...@linaro.org>


Reply via email to