Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NFnsY-0000Jn-PN for qemu-devel@nongnu.org; Wed, 02 Dec 2009 07:00:18 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NFnsS-0000ED-EX for qemu-devel@nongnu.org; Wed, 02 Dec 2009 07:00:17 -0500 Received: from [199.232.76.173] (port=48518 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFnsS-0000Dl-6i for qemu-devel@nongnu.org; Wed, 02 Dec 2009 07:00:12 -0500 Received: from mail-pz0-f173.google.com ([209.85.222.173]:52871) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NFnsQ-0003kk-FF for qemu-devel@nongnu.org; Wed, 02 Dec 2009 07:00:11 -0500 Received: by pzk3 with SMTP id 3so80933pzk.20 for ; Wed, 02 Dec 2009 04:00:07 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20091202105927.GB9537@redhat.com> References: <1259671897-22232-1-git-send-email-glommer@redhat.com> <20091202105927.GB9537@redhat.com> Date: Wed, 2 Dec 2009 10:00:07 -0200 Message-ID: <5d6222a80912020400m2a42afbahba74f79deed85441@mail.gmail.com> Subject: Re: [Qemu-devel] [PATCH v2 0/11] From: Glauber Costa Content-Type: text/plain; charset=UTF-8 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gleb Natapov Cc: qemu-devel@nongnu.org, Glauber Costa , avi@redhat.com, agraf@suse.de, aliguori@us.ibm.com On Wed, Dec 2, 2009 at 8:59 AM, Gleb Natapov wrote: > On Tue, Dec 01, 2009 at 10:51:26AM -0200, Glauber Costa wrote: >> This is a repost of the -smp series. Note that it depends on irqchip-in-kernel, >> that is already in staging. Also, you'll have to enable the io-thread, for the time >> being. >> >> >From the last version, main change is that I am not calling queue_work automatically >> from vcpu ioctls. queue_work is only used currently for the gdb stub. >> >> All other uses were by-passed by the new qemu_register_vcpu_reset(), since most >> of it uses (all racy) came from the reset handlers. >> > Looks good to me except one thing. I don't see how you are addressing > the problem fixed by commit b8a7857071b477b28d3055e33ff0298fc91f329a > in qemu-kvm. The problem is that mp_state can change in kernel between > call to kvm_cpu_synchronize_state() and vcpu re-entry. In this case old > mp_state will overwrite new one. I plan to do it in a patch that already lives on my tree. It basically flushes register state in early post_load -- Glauber Costa. "Free as in Freedom" http://glommer.net "The less confident you are, the more serious you have to act."