From patchwork Fri Jan 21 20:48:09 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 79928 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 13497B70E4 for ; Sat, 22 Jan 2011 08:05:38 +1100 (EST) Received: from localhost ([127.0.0.1]:43369 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PgO4H-00027r-Hp for incoming@patchwork.ozlabs.org; Fri, 21 Jan 2011 15:58:49 -0500 Received: from [140.186.70.92] (port=53246 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PgNuX-0005AH-Nt for qemu-devel@nongnu.org; Fri, 21 Jan 2011 15:48:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PgNuW-00044o-1y for qemu-devel@nongnu.org; Fri, 21 Jan 2011 15:48:45 -0500 Received: from fmmailgate02.web.de ([217.72.192.227]:44081) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PgNuV-00044K-OR for qemu-devel@nongnu.org; Fri, 21 Jan 2011 15:48:44 -0500 Received: from smtp02.web.de ( [172.20.0.184]) by fmmailgate02.web.de (Postfix) with ESMTP id 795A21939EA86; Fri, 21 Jan 2011 21:48:27 +0100 (CET) Received: from [92.75.143.98] (helo=localhost.localdomain) by smtp02.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #2) id 1PgNuF-0007KF-01; Fri, 21 Jan 2011 21:48:27 +0100 From: Jan Kiszka To: Avi Kivity , Marcelo Tosatti Date: Fri, 21 Jan 2011 21:48:09 +0100 Message-Id: <166496cc3fa1b11c5be6a1196e059c82ac0ae0e3.1295642900.git.jan.kiszka@web.de> X-Mailer: git-send-email 1.7.1 In-Reply-To: References: In-Reply-To: References: X-Sender: jan.kiszka@web.de X-Provags-ID: V01U2FsdGVkX1+8FYSCCS5dc4qCVe0lwJ2phcQptuov8TbJx2Ap xC+cWBrfhinV9e67NDwYFLCpFDZntUkN8XvuhtjqQN0vgv52gA yRK2IKg5M= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org Subject: [Qemu-devel] [PATCH 05/18] kvm: x86: Align kvm_arch_put_registers code with comment X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Jan Kiszka The ordering doesn't matter in this case, but better keep it consistent. Signed-off-by: Jan Kiszka --- target-i386/kvm.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 0ba13fc..9bb34ab 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -1388,12 +1388,12 @@ int kvm_arch_put_registers(CPUState *env, int level) if (ret < 0) { return ret; } - /* must be last */ - ret = kvm_guest_debug_workarounds(env); + ret = kvm_put_debugregs(env); if (ret < 0) { return ret; } - ret = kvm_put_debugregs(env); + /* must be last */ + ret = kvm_guest_debug_workarounds(env); if (ret < 0) { return ret; }