[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 2/2] xen: implement VCPUOP_register_runstate_phys_memory_area
>>> On 23.04.19 at 10:10, <andrii.anisov@xxxxxxxxx> wrote: > --- a/xen/include/xen/sched.h > +++ b/xen/include/xen/sched.h > @@ -163,15 +163,23 @@ struct vcpu > void *sched_priv; /* scheduler-specific data */ > > struct vcpu_runstate_info runstate; > + > + spinlock_t mapped_runstate_lock; Besides other comments given elsewhere already - does this really need to be a per-vCPU lock? Guests aren't expected to invoke the API frequently, so quite likely a per-domain lock would suffice. Quite possibly domain_{,un}lock() could actually be (re-)used. Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |