[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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?


> ------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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.