From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751557AbdBOOqk (ORCPT ); Wed, 15 Feb 2017 09:46:40 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:36509 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751197AbdBOOqi (ORCPT ); Wed, 15 Feb 2017 09:46:38 -0500 Subject: Re: [PATCH v3 2/3] xen/privcmd: Add IOCTL_PRIVCMD_DM_OP To: Paul Durrant , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org References: <1487005404-3183-1-git-send-email-paul.durrant@citrix.com> <1487005404-3183-3-git-send-email-paul.durrant@citrix.com> Cc: Juergen Gross , Stefano Stabellini From: Boris Ostrovsky Message-ID: <602b6377-162f-5286-16f0-4f2865a00ef7@oracle.com> Date: Wed, 15 Feb 2017 09:47:44 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <1487005404-3183-3-git-send-email-paul.durrant@citrix.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Source-IP: aserv0021.oracle.com [141.146.126.233] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/13/2017 12:03 PM, Paul Durrant wrote: > 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. > > NOTE: There is no requirement for user-space code to bounce data through > locked memory buffers (as with IOCTL_PRIVCMD_HYPERCALL) since > privcmd has enough information to lock the original buffers > directly. > > [1] http://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=524a98c2 > > Signed-off-by: Paul Durrant Applied to for-linus-4.11 (with agreed upon adjustments) -boris