Re: [PATCH] kvm: make vcpu life cycle separated from kvm instance

From: Gleb Natapov
Date: Mon Dec 05 2011 - 05:40:48 EST


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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/