From: Tim Deegan Subject: Re: [PATCH v2] domctl: tighten XEN_DOMCTL_*_permission Date: Thu, 8 May 2014 13:20:03 +0200 Message-ID: <20140508112003.GC17960@deinos.phlegethon.org> References: <5368FAFD020000780000F610@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WiMMz-0003J4-Im for xen-devel@lists.xenproject.org; Thu, 08 May 2014 11:20:09 +0000 Content-Disposition: inline In-Reply-To: <5368FAFD020000780000F610@mail.emea.novell.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: Jan Beulich Cc: Ian Campbell , xen-devel , Keir Fraser , Ian Jackson List-Id: xen-devel@lists.xenproject.org At 14:08 +0100 on 06 May (1399381725), Jan Beulich wrote: > With proper permission (and, for the I/O port case, wrap-around) checks > added (note that for the I/O port case a count of zero is now being > disallowed, in line with I/O memory handling): > > XEN_DOMCTL_irq_permission: > XEN_DOMCTL_ioport_permission: > > Of both IRQs and I/O ports there is only a reasonably small amount, so > there's no excess resource consumption involved here. Additionally > they both have a specialized XSM hook associated. > > XEN_DOMCTL_iomem_permission: > > While this also has a specialized XSM hook associated (just like > XEN_DOMCTL_{irq,ioport}_permission), it's not clear whether it's > reasonable to expect XSM to restrict the number of ranges associated > with a domain via this hook (which is the main resource consumption > item here). > > Signed-off-by: Jan Beulich Reviewed-by: Tim Deegan