From: David Vrabel Subject: Re: [Xen-devel] [PATCH 1/2] xen: Implement ioctl to restrict privcmd to a specific domain Date: Thu, 31 Jul 2014 18:58:11 +0100 Message-ID: <53DA83B3.5050406@citrix.com> References: <1406814787.10395.2.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: George Dunlap Cc: Ian Campbell , Frediano Ziglio , xen-devel , Boris Ostrovsky , linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel List-Id: linux-api@vger.kernel.org On 31/07/14 18:49, George Dunlap wrote: > On Thu, Jul 31, 2014 at 10:11 AM, David Vrabel wrote: >> On 31/07/14 14:53, Ian Campbell wrote: >>> On Thu, 2014-07-31 at 14:16 +0100, Frediano Ziglio wrote: >>> >>>> include/xen/interface/domctl.h | 1090 ++++++++++++++++++++++++++++++++++++ >>> >>> domctl is an stable toolstack only hypervisor interface, so the kernel >>> cannot use it because it would then break. >> >> Ok. I guess we'll have to resurrect the idea to do something with XSM. > > What kind of thing did you have in mind for XSM? A multicall-like hypercall that has an additional parameter for a handle to a XSM context to use for the contained hypercalls. > In general it seems like allowing a vcpu to switch into an XSM label > (not sure I've got the terminology right here) when it context > switches into a particular process might be the most flexible way for > that to work. I think we want something than can a different policy on a per-fd basis. David