From: Paul Durrant <Paul.Durrant@citrix.com>
To: Ian Jackson <Ian.Jackson@citrix.com>
Cc: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Subject: Re: [PATCH v7 03/12] tools/libxenforeignmemory: add support for resource mapping
Date: Tue, 19 Sep 2017 08:19:43 +0000 [thread overview]
Message-ID: <941e7f77505f4b8996275245054b0fcd@AMSPEX02CL03.citrite.net> (raw)
In-Reply-To: <22975.61779.586542.111266@mariner.uk.xensource.com>
> -----Original Message-----
> From: Ian Jackson [mailto:ian.jackson@eu.citrix.com]
> Sent: 18 September 2017 17:16
> To: Paul Durrant <Paul.Durrant@citrix.com>
> Cc: xen-devel@lists.xenproject.org
> Subject: Re: [PATCH v7 03/12] tools/libxenforeignmemory: add support for
> resource mapping
>
> Paul Durrant writes ("[PATCH v7 03/12] tools/libxenforeignmemory: add
> support for resource mapping"):
> > A previous patch introduced a new HYPERVISOR_memory_op to acquire
> guest
> > resources for direct priv-mapping.
> >
> > This patch adds new functionality into libxenforeignmemory to make use
> > of a new privcmd ioctl [1] that uses the new memory op to make such
> > resources available via mmap(2).
> >
> > [1]
> http://xenbits.xen.org/gitweb/?p=people/pauldu/linux.git;a=commit;h=ce5
> 9a05e6712
>
> This looks plausible to me.
>
> I wonder whether this, particularly for the ioreq server page, will
> make it possible to deprivilege earlier than I did in my own series on
> Friday.
>
It should, eventually. The necessary changes to privcmd would also need to make it into dom0, as well as the changes to QEMU (both of which I have on branches ready to go).
> (With my series, I do the depriv on entering the `running' state,
> which is quite late. It's after reading the migration stream, which
> is not ideal. But it did mean that qemu had already aquired the ioreq
> page by then so it worked. Unless that's just because my Xen was a
> bit old?)
The acquisition of the ioreq pages is towards the end of the hvm init routine, so depriv any time after that (under the old scheme) should be doable.
>
> Anyway,
>
> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Great. Thanks,
Paul
>
> Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2017-09-19 8:19 UTC|newest]
Thread overview: 62+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-18 15:31 [PATCH v7 00/12] x86: guest resource mapping Paul Durrant
2017-09-18 15:31 ` [PATCH v7 01/12] x86/mm: allow a privileged PV domain to map guest mfns Paul Durrant
2017-09-19 12:51 ` Paul Durrant
2017-09-19 13:05 ` Jan Beulich
2017-09-25 13:02 ` Jan Beulich
2017-09-25 13:29 ` Andrew Cooper
2017-09-25 14:03 ` Jan Beulich
2017-09-25 14:42 ` Paul Durrant
2017-09-25 14:49 ` Jan Beulich
2017-09-25 14:56 ` Paul Durrant
2017-09-25 15:30 ` Jan Beulich
2017-09-25 15:33 ` Paul Durrant
2017-09-27 11:18 ` Paul Durrant
2017-09-27 12:46 ` Jan Beulich
2017-09-27 12:49 ` Paul Durrant
2017-09-27 13:31 ` Jan Beulich
2017-09-27 14:22 ` Paul Durrant
2017-09-27 14:42 ` Jan Beulich
2017-09-27 14:47 ` Paul Durrant
2017-09-18 15:31 ` [PATCH v7 02/12] x86/mm: add HYPERVISOR_memory_op to acquire guest resources Paul Durrant
2017-09-25 13:49 ` Jan Beulich
2017-09-25 14:53 ` Paul Durrant
2017-09-25 14:23 ` Jan Beulich
2017-09-25 15:00 ` Paul Durrant
2017-09-26 12:20 ` Paul Durrant
2017-09-26 12:35 ` Jan Beulich
2017-09-26 12:49 ` Paul Durrant
2017-09-27 11:34 ` Andrew Cooper
2017-09-27 12:56 ` Jan Beulich
2017-09-18 15:31 ` [PATCH v7 03/12] tools/libxenforeignmemory: add support for resource mapping Paul Durrant
2017-09-18 16:16 ` Ian Jackson
2017-09-19 8:19 ` Paul Durrant [this message]
2017-09-18 15:31 ` [PATCH v7 04/12] tools/libxenforeignmemory: reduce xenforeignmemory_restrict code footprint Paul Durrant
2017-09-18 15:31 ` [PATCH v7 05/12] tools/libxenctrl: use new xenforeignmemory API to seed grant table Paul Durrant
2017-09-18 15:31 ` [PATCH v7 06/12] x86/hvm/ioreq: rename .*pfn and .*gmfn to .*gfn Paul Durrant
2017-09-25 14:29 ` Jan Beulich
2017-09-25 14:32 ` Paul Durrant
2017-09-18 15:31 ` [PATCH v7 07/12] x86/hvm/ioreq: use bool rather than bool_t Paul Durrant
2017-09-25 14:30 ` Jan Beulich
2017-09-18 15:31 ` [PATCH v7 08/12] x86/hvm/ioreq: maintain an array of ioreq servers rather than a list Paul Durrant
2017-09-25 15:17 ` Jan Beulich
2017-09-26 10:55 ` Paul Durrant
2017-09-26 11:45 ` Jan Beulich
2017-09-26 12:12 ` Paul Durrant
2017-09-26 12:38 ` Jan Beulich
2017-09-26 12:41 ` Paul Durrant
2017-09-26 13:03 ` Jan Beulich
2017-09-26 13:11 ` Paul Durrant
2017-09-18 15:31 ` [PATCH v7 09/12] x86/hvm/ioreq: simplify code and use consistent naming Paul Durrant
2017-09-25 15:26 ` Jan Beulich
2017-09-18 15:31 ` [PATCH v7 10/12] x86/hvm/ioreq: use gfn_t in struct hvm_ioreq_page Paul Durrant
2017-09-25 15:27 ` Jan Beulich
2017-09-18 15:31 ` [PATCH v7 11/12] x86/hvm/ioreq: defer mapping gfns until they are actually requsted Paul Durrant
2017-09-25 16:00 ` Jan Beulich
2017-09-25 16:04 ` Paul Durrant
2017-09-18 15:31 ` [PATCH v7 12/12] x86/hvm/ioreq: add a new mappable resource type Paul Durrant
2017-09-18 16:18 ` Roger Pau Monné
2017-09-19 8:14 ` Paul Durrant
2017-09-26 12:58 ` Jan Beulich
2017-09-26 13:05 ` Paul Durrant
2017-09-26 13:10 ` Jan Beulich
2017-09-26 13:12 ` Paul Durrant
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=941e7f77505f4b8996275245054b0fcd@AMSPEX02CL03.citrite.net \
--to=paul.durrant@citrix.com \
--cc=Ian.Jackson@citrix.com \
--cc=xen-devel@lists.xenproject.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).