From: Boris Derzhavets Subject: Re: [PATCH] privcmd: MMAPBATCH: Fix error handling/reporting Date: Thu, 21 May 2009 01:09:19 -0700 (PDT) Message-ID: <721501.79502.qm@web56104.mail.re3.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0523452600==" Return-path: 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 , Jeremy Fitzhardinge Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0523452600== Content-Type: multipart/alternative; boundary="0-1328965907-1242893359=:79502" --0-1328965907-1242893359=:79502 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable I've compiled 2.6.30-rc6-tip with xenfs built-in and successfully created a= nd ran Ubuntu 8.10 Server HVM and CentOS 5.3 HVM DomUs with traditional hvm-profil= es. Remote VNC connections to HVM DomUs might be unexpectedly frozen either bro= ken after 5-10 minutes . Boris. --- On Wed, 5/20/09, Jeremy Fitzhardinge wrote: From: Jeremy Fitzhardinge Subject: Re: [Xen-devel] [PATCH] privcmd: MMAPBATCH: Fix error handling/rep= orting To: "Ian Campbell" Cc: xen-devel@lists.xensource.com Date: Wednesday, May 20, 2009, 5:13 PM 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 >=A0=A0=A0HYPERVISOR_mmu_update() calls and small batches. The xen_set_doma= in_pte() >=A0=A0=A0interface does not report errors and since some failures are >=A0=A0=A0expected/normal using the multicall infrastructure is too noisy. > - return 0 as expected > - writeback the updated MFN list to mmapbatch->arr not over mmapbatch, >=A0=A0=A0smashing the caller's stack. > - remap_domain_mfn_range can be static. > > With this change I am able to start an HVM domain. >=A0=A0=A0 This breaks compiling xenfs as a module; neither flush_tlb_all or=20 arbitrary_virt_to_machine are exported, I think. =A0 =A0 J _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel =0A=0A=0A --0-1328965907-1242893359=:79502 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
=0A=0A=0A=0A --0-1328965907-1242893359=:79502-- --===============0523452600== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0523452600==--
I've compiled 2.6.30-rc6-tip with xenfs built= -in and successfully created and ran
Ubuntu 8.10 Server HVM and CentOS 5= .3 HVM DomUs with traditional hvm-profiles.
Remote VNC connections to HV= M DomUs might be unexpectedly frozen either broken after 5-10 minutes .
=
Boris.

--- On Wed, 5/20/09, Jeremy Fitzhardinge <jeremy= @goop.org> wrote:

From: Jeremy F= itzhardinge <jeremy@goop.org>
Subject: Re: [Xen-devel] [PATCH] pri= vcmd: MMAPBATCH: Fix error handling/reporting
To: "Ian Campbell" <ian= .campbell@citrix.com>
Cc: xen-devel@lists.xensource.com
Date: Wedn= esday, May 20, 2009, 5:13 PM

Ian Campbell w= rote:
> On error IOCTL_PRIVCMD_MMAPBATCH is expected to set the top n= ibble of
> the effected MFN and return 0. Currently it leaves the MFN unmo= dified
> and returns the number of failures. Therefore:
>
&g= t; - reimplement remap_domain_mfn_range() using direct
>  &= nbsp;HYPERVISOR_mmu_update() calls and small batches. The xen_set_domain_pt= e()
>   interface does not report errors and since som= e failures are
>   expected/normal using the multicall= infrastructure is too noisy.
> - return 0 as expected
> - writ= eback the updated MFN list to mmapbatch->arr not over mmapbatch,
>=    smashing the caller's stack.
> - remap_domain_mfn_r= ange 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 expor= ted, I think.

    J

_______________________________________________
Xen-devel mail= ing list
Xen-devel@lists.xensource.com<= /a>
h= ttp://lists.xensource.com/xen-devel