From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N8mOZ-0002yQ-Us for qemu-devel@nongnu.org; Thu, 12 Nov 2009 22:00:20 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N8mOT-0002xi-M0 for qemu-devel@nongnu.org; Thu, 12 Nov 2009 22:00:19 -0500 Received: from [199.232.76.173] (port=33842 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8mOT-0002xf-AJ for qemu-devel@nongnu.org; Thu, 12 Nov 2009 22:00:13 -0500 Received: from mail2.shareable.org ([80.68.89.115]:43091) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N8mOS-0005r9-S8 for qemu-devel@nongnu.org; Thu, 12 Nov 2009 22:00:13 -0500 Date: Fri, 13 Nov 2009 03:00:03 +0000 From: Jamie Lokier Subject: Re: [Qemu-devel] Re: [PATCH] qemu/virtio: make wmb compiler barrier + comments Message-ID: <20091113030003.GE19405@shareable.org> References: <20091026131715.GA25271@redhat.com> <200911111301.03427.paul@codesourcery.com> <20091111131253.GC23036@redhat.com> <200911111345.35249.paul@codesourcery.com> <20091111140819.GA29736@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Scott Tsai Cc: qemu-devel@nongnu.org, Paul Brook , "Michael S. Tsirkin" Scott Tsai wrote: > I do have a newbie question, when exactly would vrtio have to handle > concurrent access from multiple threads? > My current reading of the code suggests: > 1. when CONFIG_IOTHREAD is true > 2. when CONFIG_KVM is true and the guest machine has multiple CPUs It's enough to have CONFIG_KVM with a single guest CPU, isn't it? Because the guest CPU can still run concurrently with the I/O thread on kvm, and the host may have multiple CPUs even though the guest does not. -- Jamie