From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753787Ab1HIPuc (ORCPT ); Tue, 9 Aug 2011 11:50:32 -0400 Received: from rcsinet15.oracle.com ([148.87.113.117]:25183 "EHLO rcsinet15.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751778Ab1HIPub (ORCPT ); Tue, 9 Aug 2011 11:50:31 -0400 Date: Tue, 9 Aug 2011 11:50:14 -0400 From: Konrad Rzeszutek Wilk To: Ian Campbell Cc: Stefano Stabellini , "xen-devel@lists.xensource.com" , Jeremy Fitzhardinge , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] xen: modify kernel mappings corresponding to granted pages Message-ID: <20110809155014.GA4237@dumpdata.com> References: <1311699345-32579-1-git-send-email-stefano.stabellini@eu.citrix.com> <20110809023407.GA13905@dumpdata.com> <1312893028.26263.129.camel@zakaz.uk.xensource.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1312893028.26263.129.camel@zakaz.uk.xensource.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: rtcsinet21.oracle.com [66.248.204.29] X-CT-RefId: str=0001.0A090202.4E415741.0016,ss=1,re=0.000,fgs=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > So I hadn't looked at this in detail, but I wonder if we can use the > > MULTIcall for this? It looks like we need to do two hypercalls so why > > not batch it? > > That was going to be my next question. We should definitely batch these > if possible. > > > And while we are it - we could change the MMU ops to only do this on > > initial domain and for the domU case do the old mechanism? > > We need this in domU for driver domains and the like, don't we? Sure, but I believe the majority of domU domains would not require this. I was thinking that when we start playing with the device/driver domains we would want to escalate the privilige level (or perhaps not)? Or perhaps introcuce a new type - "if (xen_driver_domain())" to recognize that we are special ?