Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1577720
| From | Boris Ostrovsky <boris.ostrovsky@oracle.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/3] xen/privcmd: Add IOCTL_PRIVCMD_DM_OP |
| Date | 2017-02-09 17:00 +0100 |
| Message-ID | <t8Zix-803-3@gated-at.bofh.it> (permalink) |
| References | <t8XJL-7cN-3@gated-at.bofh.it> <t8XJL-7cN-23@gated-at.bofh.it> <t8XTs-7gc-37@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 02/09/2017 09:27 AM, Paul Durrant wrote: >> -----Original Message----- >> From: Paul Durrant [mailto:paul.durrant@citrix.com] >> Sent: 09 February 2017 14:18 >> To: xen-devel@lists.xenproject.org; linux-kernel@vger.kernel.org >> Cc: Paul Durrant <Paul.Durrant@citrix.com>; Boris Ostrovsky >> <boris.ostrovsky@oracle.com>; Juergen Gross <jgross@suse.com> >> Subject: [PATCH 2/3] xen/privcmd: Add IOCTL_PRIVCMD_DM_OP >> >> Recently a new dm_op[1] hypercall was added to Xen to provide a >> mechanism >> for restricting device emulators (such as QEMU) to a limited set of >> hypervisor operations, and being able to audit those operations in the >> kernel of the domain in which they run. >> >> This patch adds IOCTL_PRIVCMD_DM_OP as gateway for >> __HYPERVISOR_dm_op, >> bouncing the callers buffers through kernel memory to allow the address >> ranges to be audited (and negating the need to bounce through locked >> memory in user-space). > > Actually, it strikes me (now that I've posted the patch) that I should probably just mlock the user buffers rather than bouncing them through kernel... Anyway, I'd still appreciate review on other aspects of the patch. Are you suggesting that the caller (user) mlocks the buffers? -boris
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 2/3] xen/privcmd: Add IOCTL_PRIVCMD_DM_OP Paul Durrant <paul.durrant@citrix.com> - 2017-02-09 15:20 +0100
RE: [PATCH 2/3] xen/privcmd: Add IOCTL_PRIVCMD_DM_OP Paul Durrant <Paul.Durrant@citrix.com> - 2017-02-09 15:30 +0100
Re: [PATCH 2/3] xen/privcmd: Add IOCTL_PRIVCMD_DM_OP Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2017-02-09 17:00 +0100
Re: [Xen-devel] [PATCH 2/3] xen/privcmd: Add IOCTL_PRIVCMD_DM_OP Andrew Cooper <andrew.cooper3@citrix.com> - 2017-02-09 17:10 +0100
Re: [Xen-devel] [PATCH 2/3] xen/privcmd: Add IOCTL_PRIVCMD_DM_OP Andrew Cooper <andrew.cooper3@citrix.com> - 2017-02-09 17:20 +0100
Re: [Xen-devel] [PATCH 2/3] xen/privcmd: Add IOCTL_PRIVCMD_DM_OP "Jan Beulich" <JBeulich@suse.com> - 2017-02-09 17:50 +0100
RE: [PATCH 2/3] xen/privcmd: Add IOCTL_PRIVCMD_DM_OP Paul Durrant <Paul.Durrant@citrix.com> - 2017-02-09 17:50 +0100
csiph-web