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

[Xen-devel][RFC] Dynamic modes support for PV xenfb (included)


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Pat Campbell" <plc@xxxxxxxxxx>
  • Date: Wed, 19 Dec 2007 22:20:32 -0700
  • Delivery-date: Wed, 19 Dec 2007 21:21:09 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hi,

The attached files allow the PV framebuffer to be dynamically resized from
800x600 to 1024x768 and back.

xen-fbfront-resize.patch is applied to tip of linux-2.6.18-xen
xen-fbback-resize.patch is applied to tip of unstable-xen

I have tested the patches on SuSE SLES 10: 
    x86_64 dom0   x86_64 domU  OK
                             x386 domU  OK
    x386 dom0       x386 domU  OK
                             x86_64  domU   Error: (4, 'Out of memory',
                                 xc_dom_boot_mem_init: can't allocate 
                                 low memory for domain)
                                 ( This is something else unrelated to my patch 
I think )

I am NOT requesting commit to xen- unstable. This is just a posting 
for code review  and feedback.

After the patches  are applied to dom0 and your domU
PV guest you will need to properly configure the domU X 
server for display modes 800x600 and 1024x768.

For testing I used "xrandr" to dynamically resize the domU 
GUI session.

>$ xrandr       // show capabilities
 SZ:    Pixels          Physical       Refresh
 *0   1024 x 768    ( 361mm x 291mm )  *73
  1    800 x 600    ( 361mm x 291mm )   73
  Current rotation - normal
  Current reflection - none
  Rotations possible - normal
  Reflections possible - none

>$ xrandr --size 800x600     //change to 800x600
>$ xrandr --size 1024x768


domU xorg.conf :
 SuSE sax2 is not able to configure a PV framebuffer properly
 so I hand crafted a new xorg.conf file for the PV guest. Below
 are the sections I changed.

Section "Monitor"
  HorizSync    30-65
  Identifier   "Monitor[0]"
  ModelName    "XEN PVFB"
  Option       "DPMS"
  VendorName   "XEN"
  VertRefresh  43-75
  UseModes     "Modes[0]"
EndSection

Section "Modes"
  Identifier   "Modes[0]"
  Modeline  "1024x768" 77.25 1024 1080 1192 1360 768 769 772 800
  Modeline  "800x600" 46.15 800 840 920 1040 600 601 604 625
EndSection

Section "Screen"
  SubSection "Display"
    Depth      24
    Modes      "1024x768" "800x600" 
  EndSubSection
  Device       "Device[0]"
  Identifier   "Screen[0]"
  Monitor      "Monitor[0]"
EndSection

Pat


Attachment: xen-fbfront-resize.patch
Description: Text document

Attachment: xen-fbback-resize.patch
Description: Text document

_______________________________________________
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®.