From: Keir Fraser Subject: Re: netif & grant tables Date: Mon, 4 Jul 2005 19:44:18 +0100 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stefan Berger Cc: xen-devel@lists.xensource.com, Mark Williamson List-Id: xen-devel@lists.xenproject.org On 4 Jul 2005, at 19:43, Stefan Berger wrote: > linux-2.6.11-xen-sparse/arch/xen/i386/mm/ioremap.c: > direct_remap_area_pages() > calls > HYPERVISOR_mmu_update calls > xen/arch/x86/mm.c:do_mmu_update calls > set_foreigndom() which has an IS_PRIV() in the path > > -> The direct_remap_area_pages call fails if a domain does not have the > privilege bit set. The backend driver parts that use this function need cleaning up to use a grant reference instead. > netback/netback.c: alloc_mfn() calls > HYPERVISOR_dom_mem_op(MEMOP_increase_reservation, mfn_list, > MAX_MFN_ALLOC, 0); > xen/common/dom_mem_ops.c:do_dom_mem_op() is called which has a > IS_PRIV() in the path It only disallows you from adjusting others' reservations. You can still adjust your own. -- Keir