WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] qemu-xen: fix unmapping logic in hw/xen_console.

To: Wei Liu <liuw@xxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] qemu-xen: fix unmapping logic in hw/xen_console.c
From: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Date: Wed, 8 Jun 2011 12:53:00 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>, Stefano Stabellini <Stefano.Stabellini@xxxxxxxxxxxxx>
Delivery-date: Wed, 08 Jun 2011 04:50:41 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1307532807.31359.51.camel@limbo>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <1307526248.31359.28.camel@limbo> <alpine.DEB.2.00.1106081153440.12963@kaball-desktop> <1307532807.31359.51.camel@limbo>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)
On Wed, 8 Jun 2011, Wei Liu wrote:
> On Wed, 2011-06-08 at 11:54 +0100, Stefano Stabellini wrote:
> > On Wed, 8 Jun 2011, Wei Liu wrote:
> > > This is a patch for qemu-xen. Don't know if it is the right place to
> > > post.
> > > 
> > 
> > it is the right place
> > 
> > 
> > > It has been fixed in upstream QEMU.
> > > 
> > 
> > The patch looks sensible but I tried to find it in upstream QEMU and I
> > couldn't. Where is the original patch you are referring to?
> > 
> 
> Sorry if I got you confused. Here by "upstream" I mean Anthony's
> xenpv-support branch.
> 
> The commit is b1999dfdad84d1204a03bc5e7d0405255a6a7cf8 .
> 

I understand now.

Acked-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>


> > > ------8<----------------
> > > commit 28ec10ef3ff22873cd3f1b703d3aecbc93cbf680
> > > Author: Wei Liu <liuw@xxxxxxxxx>
> > > Date:   Wed Jun 8 17:40:02 2011 +0800
> > > 
> > >     qemu-xen: fix unmapping logic in hw/xen_console.c.
> > >     
> > >     Signed-off-by: Wei Liu <liuw@xxxxxxxxx>
> > > 
> > > diff --git a/hw/xen_console.c b/hw/xen_console.c
> > > index 0a2374c..d7099c4 100644
> > > --- a/hw/xen_console.c
> > > +++ b/hw/xen_console.c
> > > @@ -258,7 +258,7 @@ static void con_disconnect(struct XenDevice *xendev)
> > >      xen_be_unbind_evtchn(&con->xendev);
> > >  
> > >      if (con->sring) {
> > > -        if (!xendev->dev)
> > > +        if (!xendev->gnttabdev)
> > >       munmap(con->sring, XC_PAGE_SIZE);
> > >          else
> > >              xc_gnttab_munmap(xendev->gnttabdev, con->sring, 1);
> > > 
> > > 
> > > 
> > > _______________________________________________
> > > Xen-devel mailing list
> > > Xen-devel@xxxxxxxxxxxxxxxxxxx
> > > http://lists.xensource.com/xen-devel
> > > 
> 
> 
> 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel