From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: Re: [PATCH] kvm: make vcpu life cycle separated from kvm instance Date: Mon, 5 Dec 2011 12:40:44 +0200 Message-ID: <20111205104044.GI12507@redhat.com> References: <4ED212A1.3060300@redhat.com> <1322807192-14147-1-git-send-email-kernelfans@gmail.com> <4EDB4A0D.1000609@redhat.com> <4EDC8F4B.7040308@redhat.com> <20111205094240.GE12507@redhat.com> <4EDC95E0.20503@redhat.com> <20111205101842.GH12507@redhat.com> <4EDC9B7D.9080209@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Liu ping fan , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, aliguori@us.ibm.com, jan.kiszka@web.de To: Avi Kivity Return-path: Content-Disposition: inline In-Reply-To: <4EDC9B7D.9080209@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Mon, Dec 05, 2011 at 12:22:53PM +0200, Avi Kivity wrote: > On 12/05/2011 12:18 PM, Gleb Natapov wrote: > > > > > > We can, but that's a bigger change. > > > > > Is it? I do not see a lot of accesses to vcpu array except those loops. > > > > Well actually some of those loops have to go away and be replaced by a > hash lookup with apic id as key. > Yes, but apic ids are guest controllable, so there should be separate hash that will hold vcpu to gust configured apic id mapping. Shouldn't prevent us from moving to rculist now. -- Gleb.