From patchwork Thu Jan 10 15:29:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jason J. Herne" X-Patchwork-Id: 211071 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id BD5E82C0346 for ; Fri, 11 Jan 2013 02:40:30 +1100 (EST) Received: from localhost ([::1]:49500 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtKF1-0002HD-As for incoming@patchwork.ozlabs.org; Thu, 10 Jan 2013 10:40:27 -0500 Received: from eggs.gnu.org ([208.118.235.92]:37332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtKEq-0002ET-Am for qemu-devel@nongnu.org; Thu, 10 Jan 2013 10:40:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TtKEm-0002yD-As for qemu-devel@nongnu.org; Thu, 10 Jan 2013 10:40:16 -0500 Received: from e36.co.us.ibm.com ([32.97.110.154]:58463) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtKEm-0002xh-4o for qemu-devel@nongnu.org; Thu, 10 Jan 2013 10:40:12 -0500 Received: from /spool/local by e36.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 10 Jan 2013 08:30:08 -0700 Received: from d03dlp02.boulder.ibm.com (9.17.202.178) by e36.co.us.ibm.com (192.168.1.136) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 10 Jan 2013 08:29:51 -0700 Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by d03dlp02.boulder.ibm.com (Postfix) with ESMTP id E7A743E40067 for ; Thu, 10 Jan 2013 08:29:44 -0700 (MST) Received: from d03av05.boulder.ibm.com (d03av05.boulder.ibm.com [9.17.195.85]) by d03relay04.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r0AFTngV369696 for ; Thu, 10 Jan 2013 08:29:49 -0700 Received: from d03av05.boulder.ibm.com (loopback [127.0.0.1]) by d03av05.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r0AFTj7g020833 for ; Thu, 10 Jan 2013 08:29:46 -0700 Received: from w500-1204.endicott.ibm.com (w500-1204.endicott.ibm.com [9.60.75.168] (may be forged)) by d03av05.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id r0AFTijh020769; Thu, 10 Jan 2013 08:29:44 -0700 From: "Jason J. Herne" To: agraf@suse.de, borntraeger@de.ibm.com, aliguori@us.ibm.com, mtosatti@redhat.com, qemu-devel@nongnu.org, R65777@freescale.com, jan.kiszka@siemens.com Date: Thu, 10 Jan 2013 10:29:27 -0500 Message-Id: <1357831767-4049-1-git-send-email-jjherne@us.ibm.com> X-Mailer: git-send-email 1.7.9.5 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13011015-7606-0000-0000-0000074CAE48 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 32.97.110.154 Cc: "Jason J. Herne" Subject: [Qemu-devel] [PATCH 7/7 v2] KVM regsync: S390 Relax register synchronization parameters X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: "Jason J. Herne" Some S390 code paths do not need to synchronize the full register state. This patch changes those paths to only synchronize the runtime register set. Signed-off-by: Jason J. Herne Reviewed-by: Christian Borntraeger --- target-s390x/kvm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/target-s390x/kvm.c b/target-s390x/kvm.c index 81fe1a7..d338078 100644 --- a/target-s390x/kvm.c +++ b/target-s390x/kvm.c @@ -354,7 +354,7 @@ static int kvm_sclp_service_call(S390CPU *cpu, struct kvm_run *run, uint64_t code; int r = 0; - cpu_synchronize_state(env, KVM_REGSYNC_FULL_STATE); + cpu_synchronize_state(env, KVM_REGSYNC_RUNTIME_STATE); sccb = env->regs[ipbh0 & 0xf]; code = env->regs[(ipbh0 & 0xf0) >> 4]; @@ -388,7 +388,7 @@ static int handle_priv(S390CPU *cpu, struct kvm_run *run, uint8_t ipa1) static int handle_hypercall(CPUS390XState *env, struct kvm_run *run) { - cpu_synchronize_state(env, KVM_REGSYNC_FULL_STATE); + cpu_synchronize_state(env, KVM_REGSYNC_RUNTIME_STATE); env->regs[2] = s390_virtio_hypercall(env, env->regs[2], env->regs[1]); return 0; @@ -463,7 +463,7 @@ static int handle_sigp(S390CPU *cpu, struct kvm_run *run, uint8_t ipa1) S390CPU *target_cpu; CPUS390XState *target_env; - cpu_synchronize_state(env, KVM_REGSYNC_FULL_STATE); + cpu_synchronize_state(env, KVM_REGSYNC_RUNTIME_STATE); /* get order code */ order_code = run->s390_sieic.ipb >> 28;