From patchwork Fri Dec 21 13:56:24 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jason J. Herne" X-Patchwork-Id: 207815 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 2CB3E2C0094 for ; Sat, 22 Dec 2012 00:57:16 +1100 (EST) Received: from localhost ([::1]:43774 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tm36A-0003tV-Cm for incoming@patchwork.ozlabs.org; Fri, 21 Dec 2012 08:57:14 -0500 Received: from eggs.gnu.org ([208.118.235.92]:56582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tm35V-0002Ko-Pe for qemu-devel@nongnu.org; Fri, 21 Dec 2012 08:56:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tm35T-0004rJ-2f for qemu-devel@nongnu.org; Fri, 21 Dec 2012 08:56:33 -0500 Received: from e7.ny.us.ibm.com ([32.97.182.137]:43095) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tm35S-0004rC-Ud for qemu-devel@nongnu.org; Fri, 21 Dec 2012 08:56:31 -0500 Received: from /spool/local by e7.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 21 Dec 2012 08:56:30 -0500 Received: from d01dlp01.pok.ibm.com (9.56.250.166) by e7.ny.us.ibm.com (192.168.1.107) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 21 Dec 2012 08:56:28 -0500 Received: from d01relay05.pok.ibm.com (d01relay05.pok.ibm.com [9.56.227.237]) by d01dlp01.pok.ibm.com (Postfix) with ESMTP id 2D35F38C801C for ; Fri, 21 Dec 2012 08:56:28 -0500 (EST) Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay05.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id qBLDuRn4344266 for ; Fri, 21 Dec 2012 08:56:27 -0500 Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id qBLDuPe1012882 for ; Fri, 21 Dec 2012 11:56:27 -0200 Received: from w500-1204.ibm.com (sig-9-49-152-5.mts.ibm.com [9.49.152.5]) by d01av03.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id qBLDuOrD012810; Fri, 21 Dec 2012 11:56:25 -0200 From: "Jason J. Herne" To: borntraeger@de.ibm.com, qemu-devel@nongnu.org, jan.kiszka@siemens.com, agraf@suse.de, jfrei@linux.vnet.ibm.com, graalfs@linux.vnet.ibm.com Date: Fri, 21 Dec 2012 08:56:24 -0500 Message-Id: <1356098184-4962-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: 12122113-5806-0000-0000-00001D475919 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 32.97.182.137 Cc: "Jason J. Herne" Subject: [Qemu-devel] [PATCH 6/7] 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 ad978ba..b38765d 100644 --- a/target-s390x/kvm.c +++ b/target-s390x/kvm.c @@ -337,7 +337,7 @@ static int kvm_sclp_service_call(CPUS390XState *env, 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]; @@ -371,7 +371,7 @@ static int handle_priv(CPUS390XState *env, 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; @@ -444,7 +444,7 @@ static int handle_sigp(CPUS390XState *env, 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;