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][RFC] Dynamic modes support for PV xenfb (included)

To: Pat Campbell <plc@xxxxxxxxxx>
Subject: Re: [Xen-devel][RFC] Dynamic modes support for PV xenfb (included)
From: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>
Date: Mon, 10 Mar 2008 16:16:57 +0000
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, "Daniel P. Berrange" <berrange@xxxxxxxxxx>, Markus Armbruster <armbru@xxxxxxxxxx>
Delivery-date: Mon, 10 Mar 2008 09:18:31 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <47D4547F.1060305@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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Mail-followup-to: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>, Pat Campbell <plc@xxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Markus Armbruster <armbru@xxxxxxxxxx>, "Daniel P. Berrange" <berrange@xxxxxxxxxx>
References: <47D4547F.1060305@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.12-2006-07-14
Pat Campbell, le Sun 09 Mar 2008 15:19:59 -0600, a écrit :
> diff -r 854b0704962b tools/ioemu/hw/xenfb.c
> --- a/tools/ioemu/hw/xenfb.c  Wed Mar 05 09:43:03 2008 +0000
> +++ b/tools/ioemu/hw/xenfb.c  Fri Mar 07 13:44:09 2008 -0600
> @@ -516,6 +516,15 @@ static void xenfb_on_fb_event(struct xen
>                       }
>                       xenfb_guest_copy(xenfb, x, y, w, h);
>                       break;
> +             case XENFB_TYPE_RESIZE:
> +                     xenfb->width  = event->resize.width;
> +                     xenfb->height = event->resize.height;
> +                     xenfb->row_stride = event->resize.stride;
> +                     /* Disable video buf sharing, not compatable with 
> resizing */
> +                     dpy_colourdepth(xenfb->ds, 0);
> +                     dpy_resize(xenfb->ds, xenfb->width, xenfb->height);

Insert if (xenfb->ds->shared_buf) dpy_setdata(xenfb->ds, xenfb->pixels);
just after dpy_colourdepth() and dpy_resize(), and the video buf sharing
will work (so you can replace 0 with xenfb->depth in the colourdepth
call).

> +                     xenfb_invalidate(xenfb);
> +                     break;

Samuel

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