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 5 of 5] qemu: implement support for secondary con

To: Gerd Hoffmann <kraxel@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 5 of 5] qemu: implement support for secondary consoles in the console backend
From: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Date: Thu, 11 Jun 2009 17:02:20 +0100
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 11 Jun 2009 08:59:28 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4A31218A.4060908@xxxxxxxxxx>
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: <4A311DD4.2050007@xxxxxxxxxxxxx> <4A31218A.4060908@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.14 (X11/20080505)
Gerd Hoffmann wrote:

>    Hi,
> 
>> +    if (!xendev->dev)
>> +        snprintf(con->console, sizeof(con->console), "%s/console", dom);
>> +    else
>> +        snprintf(con->console, sizeof(con->console), 
>> "%s/device/console/%d", dom, xendev->dev);
> 
>> +    if (!xendev->dev)
>> +        con->sring = xc_map_foreign_range(xen_xc, con->xendev.dom,
>> +    else
>> +        con->sring = xc_gnttab_map_grant_ref(xendev->gnttabdev, 
>> con->xendev.dom,
> 
>> +        if (!xendev->gnttabdev)
>> +        munmap(con->sring, XC_PAGE_SIZE);
>> +        else
>> +            xc_gnttab_munmap(xendev->gnttabdev, con->sring, 1);
> 
> This should check for xendev->dev too, like the other ones.

right.

> Also this changes code already merged to upstream qemu, so it should be 
> crossposted to qemu-devel.


I'll do.

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

<Prev in Thread] Current Thread [Next in Thread>