From: Wei Liu <Wei.Liu2@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: wei.liu2@citrix.com, Ian Campbell <Ian.Campbell@citrix.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [RFC] Extending numbers of event channels
Date: Mon, 3 Dec 2012 18:09:28 +0000 [thread overview]
Message-ID: <1354558168.18784.26.camel@iceland> (raw)
In-Reply-To: <50BCF6D502000078000AD6AB@nat28.tlf.novell.com>
On Mon, 2012-12-03 at 18:00 +0000, Jan Beulich wrote:
> >>> On 03.12.12 at 18:52, Wei Liu <Wei.Liu2@citrix.com> wrote:
> > On Mon, 2012-12-03 at 17:35 +0000, Jan Beulich wrote:
> >> >>> On 03.12.12 at 17:29, Wei Liu <Wei.Liu2@citrix.com> wrote:
> >> > Regarding Jan's comment in [0], I don't think allowing user to specify
> >> > arbitrary number of levels a good idea. Because only the last level
> >> > should be shared among vcpus, other level should be in percpu struct to
> >> > allow for quicker lookup. The idea to let user specify levels will be
> >> > too complicated in implementation and blow up percpu section (since the
> >> > size grows exponentially). Three levels should be quite enough. See
> >> > maths below.
> >>
> >> I didn't ask to implement more than three levels, I just asked for
> >> the interface to establish the number of levels a guest wants to
> >> use to allow for higher numbers (passing of which would result in
> >> -EINVAL in your implementation).
> >>
> >
> > Ah, I understand now. How about something like this:
> >
> > struct EVTCHNOP_reg_nlevel {
> > int levels;
> > void *level_specified_reg_struct;
> > }
>
> Yes, just "unsigned int" please.
>
Right, "unsigned int".
> >> > To sum up:
> >> > 1. Guest should allocate pages for third level evtchn.
> >> > 2. Guest should register third level pages via a new hypercall op.
> >>
> >> Doesn't the guest also need to set up space for the 2nd level?
> >>
> >
> > Yes. That will be embedded in percpu struct vcpu_info, which will be
> > also register via the same hypercall op.
>
> "struct vcpu_info"? Same hypercall? Or are you mixing up types?
>
What I meant was the second level will be embedded in struct vcpu_info,
and the 2nd level will be registered via some hypercall (not the struct
vcpu_info).
Wei.
> Jan
>
next prev parent reply other threads:[~2012-12-03 18:09 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-03 16:29 [RFC] Extending numbers of event channels Wei Liu
2012-12-03 17:35 ` Jan Beulich
2012-12-03 17:52 ` Wei Liu
2012-12-03 17:57 ` Ian Campbell
2012-12-03 18:15 ` Wei Liu
2012-12-03 18:00 ` Jan Beulich
2012-12-03 18:09 ` Wei Liu [this message]
2012-12-04 8:05 ` Jan Beulich
2012-12-04 9:30 ` Ian Campbell
2012-12-04 9:37 ` Jan Beulich
2012-12-03 17:43 ` Ian Campbell
2012-12-03 17:48 ` Jan Beulich
2012-12-03 17:50 ` Ian Campbell
2012-12-03 18:52 ` David Vrabel
2012-12-03 19:11 ` Wei Liu
2012-12-03 20:56 ` Wei Liu
2012-12-04 11:35 ` David Vrabel
2012-12-06 10:03 ` Tim Deegan
2012-12-04 11:29 ` George Dunlap
2012-12-04 13:45 ` Jan Beulich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1354558168.18784.26.camel@iceland \
--to=wei.liu2@citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=JBeulich@suse.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.