From patchwork Sun Feb 7 11:28:49 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 77603 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o17BTOpF004120 for ; Sun, 7 Feb 2010 11:29:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754780Ab0BGL3W (ORCPT ); Sun, 7 Feb 2010 06:29:22 -0500 Received: from fmmailgate03.web.de ([217.72.192.234]:38998 "EHLO fmmailgate03.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754640Ab0BGL3V (ORCPT ); Sun, 7 Feb 2010 06:29:21 -0500 Received: from smtp07.web.de (fmsmtp07.dlan.cinetic.de [172.20.5.215]) by fmmailgate03.web.de (Postfix) with ESMTP id B436613D328A7; Sun, 7 Feb 2010 12:29:19 +0100 (CET) Received: from [92.74.50.170] (helo=[192.168.1.10]) by smtp07.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #314) id 1Ne5KH-0002k7-00; Sun, 07 Feb 2010 12:29:17 +0100 Message-ID: <4B6EA3F1.5000405@web.de> Date: Sun, 07 Feb 2010 12:28:49 +0100 From: Jan Kiszka User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Gleb Natapov CC: Avi Kivity , Marcelo Tosatti , kvm@vger.kernel.org, Anthony Liguori , Alexander Graf , Glauber Costa , qemu-devel@nongnu.org Subject: Re: [PATCH v2 00/21] qemu-kvm: Hook cleanups and extended use of upstream code References: <20100207094641.GH2471@redhat.com> In-Reply-To: <20100207094641.GH2471@redhat.com> X-Enigmail-Version: 0.95.7 X-Sender: jan.kiszka@web.de X-Provags-ID: V01U2FsdGVkX18qUt0YufymPVf9xnN6MjctboVRANjrC41IpiGZ vcCmM2SwUUnqJJGVRBo688yykIAoh9fcamvVGeuRUsA5dkMcLb 4JZ4p79N0= Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sun, 07 Feb 2010 11:29:24 +0000 (UTC) diff --git a/qemu-kvm.c b/qemu-kvm.c index 6a72b89..72c2ca0 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -1532,13 +1532,13 @@ static void do_kvm_cpu_synchronize_state(void *_env) CPUState *env = _env; kvm_arch_save_regs(env); + env->kvm_vcpu_dirty = 1; } void kvm_cpu_synchronize_state(CPUState *env) { if (!env->kvm_vcpu_dirty) { on_vcpu(env, do_kvm_cpu_synchronize_state, env); - env->kvm_vcpu_dirty = 1; } }