From: Daniel De Graaf Subject: Re: [PATCH v10 1/3] ioreq-server: add support for multiple servers Date: Fri, 06 Jun 2014 17:02:30 -0400 Message-ID: <53922C66.2090709@tycho.nsa.gov> References: <1400755120-39448-1-git-send-email-paul.durrant@citrix.com> <1400755120-39448-2-git-send-email-paul.durrant@citrix.com> <537E17170200007800014FD2@mail.emea.novell.com> <9AAE0902D5BC7E449B7C8E4E778ABCD0382638@AMSPEX01CL01.citrite.net> <9AAE0902D5BC7E449B7C8E4E778ABCD038620B@AMSPEX01CL01.citrite.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <9AAE0902D5BC7E449B7C8E4E778ABCD038620B@AMSPEX01CL01.citrite.net> 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: Ian Jackson , Stefano Stabellini , Jan Beulich , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On 05/28/2014 04:39 AM, Paul Durrant wrote: >> -----Original Message----- >> From: xen-devel-bounces@lists.xen.org [mailto:xen-devel- >> bounces@lists.xen.org] On Behalf Of Paul Durrant >> Sent: 22 May 2014 14:59 >> To: Jan Beulich >> Cc: Ian Jackson; dgdegra@tycho.nsa.gov; Stefano Stabellini; xen- >> devel@lists.xen.org >> Subject: Re: [Xen-devel] [PATCH v10 1/3] ioreq-server: add support for >> multiple servers >> >>> -----Original Message----- >>> From: Jan Beulich [mailto:JBeulich@suse.com] >>> Sent: 22 May 2014 14:26 >>> To: Paul Durrant >>> Cc: Ian Jackson; Stefano Stabellini; xen-devel@lists.xen.org; >>> dgdegra@tycho.nsa.gov >>> Subject: Re: [Xen-devel] [PATCH v10 1/3] ioreq-server: add support for >>> multiple servers >>> >>>>>> 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 >>>> Cc: Ian Jackson >>>> Cc: Stefano Stabellini >>>> Cc: Jan Beulich >>>> --- >>>> tools/libxc/xc_domain.c | 224 ++++++++++ >>>> tools/libxc/xc_domain_restore.c | 48 ++ >>>> tools/libxc/xc_domain_save.c | 24 + >>>> tools/libxc/xc_hvm_build_x86.c | 50 ++- >>>> tools/libxc/xc_private.c | 16 +- >>>> tools/libxc/xenctrl.h | 143 +++++- >>>> tools/libxc/xg_save_restore.h | 3 + >>>> xen/arch/x86/hvm/hvm.c | 908 >>> ++++++++++++++++++++++++++++++++++---- >>>> xen/arch/x86/hvm/io.c | 2 +- >>>> xen/include/asm-x86/hvm/domain.h | 26 +- >>>> xen/include/asm-x86/hvm/hvm.h | 1 + >>>> xen/include/public/hvm/hvm_op.h | 120 +++++ >>>> xen/include/public/hvm/ioreq.h | 9 +- >>>> xen/include/public/hvm/params.h | 5 +- >>>> xen/include/xen/list.h | 9 + >>>> xen/include/xsm/dummy.h | 6 + >>>> xen/include/xsm/xsm.h | 6 + >>>> xen/xsm/flask/hooks.c | 6 + >>>> 18 files changed, 1497 insertions(+), 109 deletions(-) >>> >>> So I was about to apply this when I noticed the still missing ack from >>> Daniel on the XSM changes - you didn't even Cc him (now done). >>> >> >> Ah, I forgot to re-run get_maintainer after adding that code. Sorry. >> Acked-by: Daniel De Graaf > Daniel, > This patch is still waiting for your ack. Are you happy with it? > Paul > Sorry about the delay on getting this acked; I was on leave and then didn't see it until now. -- Daniel De Graaf National Security Agency