From: "Jan Beulich" Subject: Re: [PATCH v10 1/3] ioreq-server: add support for multiple servers Date: Mon, 02 Jun 2014 09:05:02 +0100 Message-ID: <538C4C4E0200007800016B2F@mail.emea.novell.com> References: <1400755120-39448-1-git-send-email-paul.durrant@citrix.com> <1400755120-39448-2-git-send-email-paul.durrant@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1400755120-39448-2-git-send-email-paul.durrant@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Paul Durrant Cc: xen-devel@lists.xen.org, Ian Jackson , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org >>> On 22.05.14 at 12:38, wrote: > The previous single ioreq server that was created on demand now > becomes the default server and an API is created to allow secondary > servers, which handle specific IO ranges or PCI devices, to be added. > > When the guest issues an IO the list of secondary servers is checked > for a matching IO range or PCI device. If none is found then the IO > is passed to the default server. > > Secondary servers use guest pages to communicate with emulators, in > the same way as the default server. These pages need to be in the > guest physmap otherwise there is no suitable reference that can be > queried by an emulator in order to map them. Therefore a pool of > pages in the current E820 reserved region, just below the special > pages is used. Secondary servers allocate from and free to this pool > as they are created and destroyed. > > The size of the pool is currently hardcoded in the domain build at a > value of 8. This should be sufficient for now and both the location and > size of the pool can be modified in future without any need to change the > API. > > Signed-off-by: Paul Durrant > Acked-by: Ian Campbell I committed and pushed this, but I had to fix up two build errors with XSM enabled. Please in the future make sure patches you submit build in all relevant modes. Jan