From: Wei Liu Subject: Re: [PATCH 15/16] Infrastructure for manipulating 3-level event channel pages Date: Mon, 4 Feb 2013 14:24:56 +0000 Message-ID: <1359987896.7477.53.camel@zion.uk.xensource.com> References: <1359643384-29392-1-git-send-email-wei.liu2@citrix.com> <1359643384-29392-16-git-send-email-wei.liu2@citrix.com> <510F8C0E02000078000BB67C@nat28.tlf.novell.com> <1359976820.5281.66.camel@zakaz.uk.xensource.com> <510FA9B902000078000BB762@nat28.tlf.novell.com> <1359985517.7477.42.camel@zion.uk.xensource.com> <1359985623.7743.40.camel@zakaz.uk.xensource.com> <1359985864.7477.45.camel@zion.uk.xensource.com> <1359986043.7743.42.camel@zakaz.uk.xensource.com> <1359986376.7477.49.camel@zion.uk.xensource.com> <1359987727.7743.53.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1359987727.7743.53.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: "Tim (Xen.org)" , wei.liu2@citrix.com, David Vrabel , Jan Beulich , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Mon, 2013-02-04 at 14:22 +0000, Ian Campbell wrote: > On Mon, 2013-02-04 at 13:59 +0000, Wei Liu wrote: > > On Mon, 2013-02-04 at 13:54 +0000, Ian Campbell wrote: > > > On Mon, 2013-02-04 at 13:51 +0000, Wei Liu wrote: > > > > On Mon, 2013-02-04 at 13:47 +0000, Ian Campbell wrote: > > > > > On Mon, 2013-02-04 at 13:45 +0000, Wei Liu wrote: > > > > > > > > > > > /* > > > > > > * Note to 3-level event channel users: > > > > > > * Only enable 3-level event channel for Dom0 or driver domains, because > > > > > > * 3-level event channels consumes (16 + nr_vcpus pages) global mapping > > > > > > * area in Xen. > > > > > > */ > > > > > > > > > > Can this be enforced by the system administrator? > > > > > > > > > > > > > Knowing a domain is Dom0 is easy, but is it possible to know a domain is > > > > driver domain? > > > > > > The admin knows, at the very least they need to have a manual override > > > (or maybe this should even default off for non-dom0) > > > > > > > Do you mean maintaining white list in Xen or adding options in guest > > kernel? > > I mean that it should be a property of the domain (i.e. a flag in struct > domain or whatever) whether they can use 3-levels and this should be > settable by the host administrator when they build the guest. > I'm looking at this now since I realized that we cannot trust users at all right after I sent my email... > > I already have that in my kernel patch series - only enable > > 3-level event channel for Dom0. > > Imagine I am a malicious user of you cloud service, I could potentially > create dozens of guests using kernels which forcibly try to use 3-level > evtchns and suck up loads of host RAM. > Right. Wei. > Ian. >