From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W02s9-0002i3-Av for qemu-devel@nongnu.org; Mon, 06 Jan 2014 00:37:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W02ry-0003bD-Bk for qemu-devel@nongnu.org; Mon, 06 Jan 2014 00:37:09 -0500 Received: from e23smtp05.au.ibm.com ([202.81.31.147]:35591) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W02rx-0003b0-LU for qemu-devel@nongnu.org; Mon, 06 Jan 2014 00:36:58 -0500 Received: from /spool/local by e23smtp05.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 6 Jan 2014 15:36:54 +1000 From: Alexey Kardashevskiy Date: Mon, 6 Jan 2014 16:36:40 +1100 Message-Id: <1388986600-26301-3-git-send-email-aik@ozlabs.ru> In-Reply-To: <1388986600-26301-1-git-send-email-aik@ozlabs.ru> References: <1388986600-26301-1-git-send-email-aik@ozlabs.ru> Subject: [Qemu-devel] [PATCH 2/2] PPC: KVM: fix "set one register" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alexey Kardashevskiy , qemu-ppc@nongnu.org, Alexander Graf Due to missing @one_reg_id assignment in _spr_register(), the kvm_get_one_reg/kvm_set_one_reg API has never really been working. This enabled the API and removes use of the API for LPCR as kvm_arch_get_registers/kvm_arch_put_registers run a loop for all 1024 SPR and LPCR is one of them. Signed-off-by: Alexey Kardashevskiy --- target-ppc/translate_init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 144de3d..149a932 100644 --- a/target-ppc/translate_init.c +++ b/target-ppc/translate_init.c @@ -628,6 +628,9 @@ static inline void _spr_register(CPUPPCState *env, int num, spr->oea_read = oea_read; spr->oea_write = oea_write; #endif +#if defined(CONFIG_KVM) + spr->one_reg_id = one_reg_id, +#endif env->spr[num] = initial_value; } -- 1.8.4.rc4