From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Fitzhardinge Subject: Re: [PATCH] privcmd: MMAPBATCH: Fix error handling/reporting Date: Wed, 20 May 2009 14:13:33 -0700 Message-ID: <4A14727D.5000803@goop.org> References: <1242830676.22654.66.camel@zakaz.uk.xensource.com> <1242830730-3341-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1242830730-3341-1-git-send-email-ian.campbell@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Ian Campbell wrote: > On error IOCTL_PRIVCMD_MMAPBATCH is expected to set the top nibble of > the effected MFN and return 0. Currently it leaves the MFN unmodified > and returns the number of failures. Therefore: > > - reimplement remap_domain_mfn_range() using direct > HYPERVISOR_mmu_update() calls and small batches. The xen_set_domain_pte() > interface does not report errors and since some failures are > expected/normal using the multicall infrastructure is too noisy. > - return 0 as expected > - writeback the updated MFN list to mmapbatch->arr not over mmapbatch, > smashing the caller's stack. > - remap_domain_mfn_range can be static. > > With this change I am able to start an HVM domain. > This breaks compiling xenfs as a module; neither flush_tlb_all or arbitrary_virt_to_machine are exported, I think. J