From patchwork Sun Sep 13 08:30:11 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gleb Natapov X-Patchwork-Id: 47136 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n8D8USZo018114 for ; Sun, 13 Sep 2009 08:30:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751159AbZIMIaX (ORCPT ); Sun, 13 Sep 2009 04:30:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751186AbZIMIaQ (ORCPT ); Sun, 13 Sep 2009 04:30:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:8446 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751159AbZIMIaL (ORCPT ); Sun, 13 Sep 2009 04:30:11 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8D8UEaE017532 for ; Sun, 13 Sep 2009 04:30:15 -0400 Received: from dhcp-1-237.tlv.redhat.com (dhcp-1-237.tlv.redhat.com [10.35.1.237]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8D8UDhd001147; Sun, 13 Sep 2009 04:30:14 -0400 Received: by dhcp-1-237.tlv.redhat.com (Postfix, from userid 13519) id 1AB4C18D466; Sun, 13 Sep 2009 11:30:13 +0300 (IDT) From: Gleb Natapov To: avi@redhat.com Cc: kvm@vger.kernel.org Subject: [PATCH 2/4] Use kvm_cpu_synchronize_state() instead of kvm_arch_(save|load)_regs() Date: Sun, 13 Sep 2009 11:30:11 +0300 Message-Id: <1252830613-2185-2-git-send-email-gleb@redhat.com> In-Reply-To: <1252830613-2185-1-git-send-email-gleb@redhat.com> References: <1252830613-2185-1-git-send-email-gleb@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Signed-off-by: Gleb Natapov --- qemu-kvm-x86.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/qemu-kvm-x86.c b/qemu-kvm-x86.c index ee678df..6e5bcc5 100644 --- a/qemu-kvm-x86.c +++ b/qemu-kvm-x86.c @@ -1671,10 +1671,9 @@ uint32_t kvm_arch_get_supported_cpuid(CPUState *env, uint32_t function, void kvm_arch_process_irqchip_events(CPUState *env) { - kvm_arch_save_regs(env); + kvm_cpu_synchronize_state(env); if (env->interrupt_request & CPU_INTERRUPT_INIT) do_cpu_init(env); if (env->interrupt_request & CPU_INTERRUPT_SIPI) do_cpu_sipi(env); - kvm_arch_load_regs(env); }