Re: [Xen-devel] [PATCH v2 REPOST 12/12] x86/hvm/ioreq: add a new mappable resource type...

2017-08-29 Thread Paul Durrant
im > (Xen.org) <t...@xen.org>; Jan Beulich <jbeul...@suse.com>; Ian Jackson > <ian.jack...@citrix.com>; xen-de...@lists.xenproject.org; Roger Pau > Monne <roger....@citrix.com> > Subject: Re: [Xen-devel] [PATCH v2 REPOST 12/12] x86/hvm/ioreq: add a > new mappab

Re: [Xen-devel] [PATCH v2 REPOST 12/12] x86/hvm/ioreq: add a new mappable resource type...

2017-08-29 Thread George Dunlap
On Tue, Aug 29, 2017 at 3:31 PM, Paul Durrant wrote: >> -Original Message- > [snip] >> >> I'm not terribly happy with allocating out-of-band pages either. One >> >> of the advantages of the way things are done now (with the page >> >> allocated to the guest VM)

Re: [Xen-devel] [PATCH v2 REPOST 12/12] x86/hvm/ioreq: add a new mappable resource type...

2017-08-29 Thread Paul Durrant
> -Original Message- [snip] > >> I'm not terribly happy with allocating out-of-band pages either. One > >> of the advantages of the way things are done now (with the page > >> allocated to the guest VM) is that it is more resilient to unexpected > >> events: If the domain dies before the

Re: [Xen-devel] [PATCH v2 REPOST 12/12] x86/hvm/ioreq: add a new mappable resource type...

2017-08-29 Thread George Dunlap
@citrix.com>; Stefano Stabellini >> <sstabell...@kernel.org>; Wei Liu <wei.l...@citrix.com>; Andrew Cooper >> <andrew.coop...@citrix.com>; Tim (Xen.org) <t...@xen.org>; Jan Beulich >> <jbeul...@suse.com>; Ian Jackson <ian.jack...@citrix.com>; xen- >>

Re: [Xen-devel] [PATCH v2 REPOST 12/12] x86/hvm/ioreq: add a new mappable resource type...

2017-08-29 Thread Paul Durrant
Cooper > <andrew.coop...@citrix.com>; Tim (Xen.org) <t...@xen.org>; Jan Beulich > <jbeul...@suse.com>; Ian Jackson <ian.jack...@citrix.com>; xen- > de...@lists.xenproject.org > Subject: Re: [Xen-devel] [PATCH v2 REPOST 12/12] x86/hvm/ioreq: add a > new mappabl

Re: [Xen-devel] [PATCH v2 REPOST 12/12] x86/hvm/ioreq: add a new mappable resource type...

2017-08-29 Thread George Dunlap
On Fri, Aug 25, 2017 at 10:46 AM, Paul Durrant wrote: >> > +/* >> > + * Allocated IOREQ server pages are assigned to the emulating >> > + * domain, not the target domain. This is because the emulator is >> > + * likely to be destroyed after the target

Re: [Xen-devel] [PATCH v2 REPOST 12/12] x86/hvm/ioreq: add a new mappable resource type...

2017-08-29 Thread George Dunlap
...@kernel.org>; Wei Liu <wei.l...@citrix.com>; George Dunlap >> <george.dun...@citrix.com>; Andrew Cooper >> <andrew.coop...@citrix.com>; Ian Jackson <ian.jack...@citrix.com>; Tim >> (Xen.org) <t...@xen.org>; Jan Beulich <jbeul...@suse.com>

Re: [Xen-devel] [PATCH v2 REPOST 12/12] x86/hvm/ioreq: add a new mappable resource type...

2017-08-25 Thread Paul Durrant
> <george.dun...@citrix.com>; Andrew Cooper > <andrew.coop...@citrix.com>; Ian Jackson <ian.jack...@citrix.com>; Tim > (Xen.org) <t...@xen.org>; Jan Beulich <jbeul...@suse.com> > Subject: Re: [Xen-devel] [PATCH v2 REPOST 12/12] x86/hvm/ioreq: add a > new mapp

Re: [Xen-devel] [PATCH v2 REPOST 12/12] x86/hvm/ioreq: add a new mappable resource type...

2017-08-25 Thread Roger Pau Monne
On Fri, Aug 25, 2017 at 10:46:48AM +0100, Paul Durrant wrote: > > -Original Message- > > From: Roger Pau Monne > > > +static int hvm_alloc_ioreq_mfn(struct hvm_ioreq_server *s, bool buf) > > > +{ > > > +struct domain *currd = current->domain; > > > +struct hvm_ioreq_page *iorp =

Re: [Xen-devel] [PATCH v2 REPOST 12/12] x86/hvm/ioreq: add a new mappable resource type...

2017-08-25 Thread Paul Durrant
> <george.dun...@citrix.com>; Andrew Cooper > <andrew.coop...@citrix.com>; Ian Jackson <ian.jack...@citrix.com>; Tim > (Xen.org) <t...@xen.org>; Jan Beulich <jbeul...@suse.com> > Subject: Re: [Xen-devel] [PATCH v2 REPOST 12/12] x86/hvm/ioreq: add a > new mapp

Re: [Xen-devel] [PATCH v2 REPOST 12/12] x86/hvm/ioreq: add a new mappable resource type...

2017-08-25 Thread Roger Pau Monné
On Tue, Aug 22, 2017 at 03:51:06PM +0100, Paul Durrant wrote: > ... XENMEM_resource_ioreq_server > > This patch adds support for a new resource type that can be mapped using > the XENMEM_acquire_resource memory op. > > If an emulator makes use of this resource type then, instead of mapping >

[Xen-devel] [PATCH v2 REPOST 12/12] x86/hvm/ioreq: add a new mappable resource type...

2017-08-22 Thread Paul Durrant
... XENMEM_resource_ioreq_server This patch adds support for a new resource type that can be mapped using the XENMEM_acquire_resource memory op. If an emulator makes use of this resource type then, instead of mapping gfns, the IOREQ server will allocate pages from the heap. These pages will