From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60960) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhFeo-0001t5-GX for qemu-devel@nongnu.org; Mon, 05 May 2014 05:58:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WhFei-00033l-84 for qemu-devel@nongnu.org; Mon, 05 May 2014 05:57:58 -0400 Received: from cantor2.suse.de ([195.135.220.15]:34174 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhFei-00033g-1C for qemu-devel@nongnu.org; Mon, 05 May 2014 05:57:52 -0400 Message-ID: <5367609D.30601@suse.de> Date: Mon, 05 May 2014 11:57:49 +0200 From: =?ISO-8859-15?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <1399280501-25512-1-git-send-email-pranavkumar@linaro.org> In-Reply-To: <1399280501-25512-1-git-send-email-pranavkumar@linaro.org> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [RFC PATCH V4 6/6] target-arm: Implement kvm_arch_reset_vcpu() for KVM ARM64 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pranavkumar Sawargaonkar , qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, Anup Patel , patches@apm.com, robherring2@gmail.com, Paolo Bonzini , kvmarm@lists.cs.columbia.edu, christoffer.dall@linaro.org Am 05.05.2014 11:01, schrieb Pranavkumar Sawargaonkar: > To implement kvm_arch_reset_vcpu(), we simply re-init the VCPU > using kvm_arm_vcpu_init() so that all registers of VCPU are set > to their reset values by in-kernel KVM code. >=20 > Signed-off-by: Pranavkumar Sawargaonkar > Signed-off-by: Anup Patel > --- > target-arm/kvm64.c | 4 ++++ > 1 file changed, 4 insertions(+) >=20 > diff --git a/target-arm/kvm64.c b/target-arm/kvm64.c > index f7cc3ef..4855b4b 100644 > --- a/target-arm/kvm64.c > +++ b/target-arm/kvm64.c > @@ -259,4 +259,8 @@ int kvm_arch_get_registers(CPUState *cs) > =20 > void kvm_arch_reset_vcpu(CPUState *cs) > { > + /* Re-init VCPU so that all registers are set to > + * their respective reset values. > + */ > + kvm_arm_vcpu_init(cs, 0x0); > } >=20 CC'ing Paolo, who was about to drop kvm_arch_reset_vcpu(). Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrnbe= rg