|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [RFC PATCH V3 05/22] Change MAX_EVTCHNS macro to max_evtchns inline function
On Thu, 2013-02-28 at 11:58 +0000, David Vrabel wrote:
> On 27/02/13 14:33, Wei Liu wrote:
> > The calculation of max event channels depends on the actual ABI in use. Try
> > to
> > avoid gcc-ism macro.
> [...]
> > +static inline unsigned int max_evtchns(struct domain *d)
> > +{
> > + return BITS_PER_EVTCHN_WORD(d) * BITS_PER_EVTCHN_WORD(d);
> > +}
>
> This value doesn't change over the life of the domain. Calculate it once
> and save it in a new d->max_evtchns field?
>
This can change during domain life cycle. But it is doable to save it in
d->max_evtchns and change it when necessary.
Wei.
> David
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |