|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [RFC] Extend the number of event channels availabe to guests
On 20/09/12 16:42, Jan Beulich wrote: On 20.09.12 at 16:05, Attilio Rao<attilio.rao@xxxxxxxxxx> wrote:On 20/09/12 08:47, Jan Beulich wrote:On 20.09.12 at 01:49, Attilio Rao<attilio.rao@xxxxxxxxxx> wrote:Proposal The proposal is pretty simple: the eventchannel search will become a three-level lookup table, with the leaf level being composed by shared pages registered at boot time by the guests. The bitmap working now as leaf (then called "second level") will work alternatively as leaf level still (for older kernel) or for intermediate level to address into a new array of shared pages (for newer kernels). This leaves the possibility to reuse the existing mechanisms without modifying its internals.While adding one level would seem to leave ample room, so did the originally 4096 originally. Therefore, even if unimplemented right now, I'd like the interface to allow for the guest to specify more levels.There is a big difference here. The third/new level will be composed of pages registered at guest installing so it can be expanded on demanded necessity. The second-level we have now doesn't work because it is stuck in the immutable ABI. The only useful way to have another level would be in the case we think the second-level is not enough to address all the necessary bits in the third level in efficient way. To make you an example, the first level is 64 bits while the second level can address 64 times the first level. The third level, to be on-par with the same ratio of the second level in terms of performance, would be large something like 4 pages. I think we are very far from reaching critical levels.What I'm saying is that further levels should be continuing at the rate, i.e. times BITS_PER_LONG per level. Allowing for an only partially populated leaf level is certainly an option. But similarly it should be an option to have a fourth level once needed, without having to start over from scratch again. Yes, I agree, but I don't see a big problem here, besides having a way to specify which level pages should compose and deal with them. The only difference is that maybe we could be ending up building sort of containers for such topology, to deal with a multi-digi table. I think it will not be too difficult to do, but I would leave this as very last item, eventually, once that the "third-level" already works ok.
On a second thought, I think I can use something very similar to the sharing mechanism of the grant tables, basically modeled over grant_table_create() and subsequent gnttab_setup_table() mapping creation. This should also work in the PV case. Attilio _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |