<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div style="font-family: arial, helvetica, sans-serif; "><span>Hi Alon,</span></div><div style="font-family: arial, helvetica, sans-serif; "><span><br></span></div><div style="font-family: arial, helvetica, sans-serif; "><span>I'm looking some weird behaviour this time. I tested with different versions of qemu.</span></div><div style="font-family: arial, helvetica, sans-serif; "><span>1.) Two black screen windows for Linux guests with Qemu 0.14.0</span></div><div style="font-family: arial, helvetica, sans-serif; "><span>2.) Two black screen windows for both Windows and Linux guests with Qemu taken from git repository(</span><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(51, 51, 51); font-family: sans-serif; white-space: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><a
href="git://anongit.freedesktop.org/spice/qemu" style="color: black; text-decoration: none; cursor: text !important; ">git://anongit.freedesktop.org/</a>~alon/qemu)</span></div><div><font class="Apple-style-span" color="#333333" face="sans-serif"><span class="Apple-style-span" style="border-collapse: collapse; white-space: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">If i launch for single QXL device, everything works fine. I'm seeing bitmaps are delivered until second spice windows is launched.</span></font></div><div><font class="Apple-style-span" color="#333333" face="sans-serif"><span class="Apple-style-span" style="border-collapse: collapse; white-space: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><br></span></font></div><div><font class="Apple-style-span" color="#333333" face="sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;
white-space: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">3.) Tested with Qemu 0.15.0-rc1. </span></font><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(51, 51, 51); font-family: sans-serif; white-space: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">Black screen window is launched even with single QXL device for win7 guest and for linux too.</span></div><div><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(51, 51, 51); font-family: sans-serif; white-space: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "> if I specify "</span><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(51, 51, 51); font-family: sans-serif; white-space: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">-global
qxl-vga.vram_size=33554432" then I'm getting the output as at First case</span></div><div><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(51, 51, 51); font-family: sans-serif; white-space: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(51, 51, 51); font-family: sans-serif; white-space: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">Here is guest command line:</span></div><div><font class="Apple-style-span" color="#333333" face="sans-serif"><span class="Apple-style-span" style="border-collapse: collapse; white-space: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><div class="MsoNormal">./x86_64-softmmu/qemu-system-x86_64 -drive
file=/home/naga/spice-0.8/images/rhel61bt64.qcow,if=ide -soundhw ac97 -L
pc-bios -vga qxl -global qxl-vga.vram_size=33554432 \</div><div class="MsoNormal">-device qxl -device
virtio-serial -chardev spicevmc,id=vdagent,debug=0,name=vdagent -device
virtserialport,chardev=vdagent,name=com.redhat.spice.0 \</div><div class="MsoNormal">-spice
port=$SPICE_PORT,disable-ticketing -usbdevice tablet -enable-kvm -m 1024 -net
nic,model=e1000,vlan=0,macaddr=52:54:84:fe:00:02 \</div><div class="MsoNormal">-net
user,vlan=1,hostfwd=tcp::2222-:22 -net nic,model=e1000,vlan=1</div><div class="MsoNormal"><br></div></span></font><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(51, 51, 51); font-family: sans-serif; white-space: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">Even with Qemu 0.15.0 and option </span><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(51, 51, 51); font-family: sans-serif; white-space: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">"</span><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(51, 51, 51); font-family: sans-serif; white-space: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">-global qxl-vga.vram_size=33554432" is specified, t</span>wo black screens for Linux guests
happened.</div><div><br></div><div><br></div><div>Regards,</div><div>Naga.<br><font class="Apple-style-span" color="#333333" face="sans-serif"><span class="Apple-style-span" style="border-collapse: collapse; white-space: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><br></span></font></div><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Alon Levy <alevy@redhat.com><br><b><span style="font-weight: bold;">To:</span></b> Naga Mohan Pothula <nagamohan.pothula@yahoo.com><br><b><span style="font-weight: bold;">Cc:</span></b> Leonardo E. Reiter <lreiter@vbridges.com>; Gerd Hoffmann <kraxel@redhat.com>; "spice-devel@lists.freedesktop.org" <spice-devel@lists.freedesktop.org><br><b><span
style="font-weight: bold;">Sent:</span></b> Friday, August 5, 2011 5:05 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Spice-devel] Questions about multimonitor Xinerama configuration<br></font><br>On Thu, Aug 04, 2011 at 06:43:58PM -0700, Naga Mohan Pothula wrote:<br>> Hi Gerd/Alon,<br>> <br>> I'm getting two black screen windows when I launched RHEL 64-bit in dual-head mode even with latest code(ie., Spice v0.9.0 and qxl driver for linux v0.0.16 taken from git repository)<br>> <br><br>The guest is RHEL 64-bit? and you had it working with two pci devices before?<br><br>Can you please post complete guest command line?<br><br>Host is running qemu release candidate for 0.15.0 and spice 0.9.0, right?<br><br>Did you try reducing vram size below 30 MB like suggested on another thread due to bios limitation?<br><br>> Initially I did debugged Server code and noticed that it is not receiving data from pipe (ie., ring_is_empty
returns false to red_channel_pipe_get function) immediately when second display is launched<br>> <br>> It seems the problem is completely with qxl driver. Please refer below backtrace received when I did gdb Xorg.<br>> <br>> <br>> qxl_ring_push (ring=0x1891cf0, new_elt=0x7fffa850cec0) at qxl_ring.c:75<br>> 75 qxl_ring.c: No such file or directory.<br>> in qxl_ring.c<br>> (gdb) bt<br>> #0 qxl_ring_push (ring=0x1891cf0, new_elt=0x7fffa850cec0) at qxl_ring.c:75<br>> #1 0x00007f80005af53b in push_drawable (qxl=<value optimized out>, <br>> drawable=<value optimized out>) at qxl_surface.c:516<br>> #2 0x00007f80005af665 in qxl_surface_put_image (dest=0x19027c8, <br>> x=<value optimized out>, y=<value optimized out>, width=24, height=24, <br>> src=0x2079a88 "", src_pitch=96) at
qxl_surface.c:1467<br>> #3 0x00007f80005b5e24 in uxa_do_put_image (pDrawable=<value optimized out>, <br>> pGC=<value optimized out>, depth=<value optimized out>, <br>> x=<value optimized out>, y=<value optimized out>, w=<value optimized out>, <br>> h=24, leftPad=0, format=2, bits=0x2079a88 "") at uxa-accel.c:329<br>> #4 uxa_put_image (pDrawable=<value optimized out>, pGC=<value optimized out>, <br>> depth=<value optimized out>, x=<value optimized out>, <br>> y=<value optimized out>, w=<value optimized out>, h=24, leftPad=0, <br>> format=2, bits=0x2079a88 "") at uxa-accel.c:367<br>> #5 0x00000000004d6cfc in ?? ()<br>> #6 0x0000000000448af9 in ?? ()<br>> #7 0x0000000000554a78 in ?? ()<br>> #8
0x000000000044ae7c in ?? ()<br>> #9 0x000000000042208a in _start ()<br>> <br>> Looping in "qxl_ring_push" continuously happens at this scenario.<br>> <br>> <br>> Regards,<br>> Mohan.<br>> <br>> <br>> <br>> ________________________________<br>> From: Leonardo E. Reiter <<a ymailto="mailto:lreiter@vbridges.com" href="mailto:lreiter@vbridges.com">lreiter@vbridges.com</a>><br>> To: Gerd Hoffmann <<a ymailto="mailto:kraxel@redhat.com" href="mailto:kraxel@redhat.com">kraxel@redhat.com</a>><br>> Cc: <a ymailto="mailto:spice-devel@lists.freedesktop.org" href="mailto:spice-devel@lists.freedesktop.org">spice-devel@lists.freedesktop.org</a><br>> Sent: Friday, June 24, 2011 1:17 PM<br>> Subject: Re: [Spice-devel] Questions about multimonitor Xinerama configuration<br>> <br>> <br>> On Fri, Jun 24, 2011 at 11:46 AM, Leonardo E. Reiter <<a ymailto="mailto:lreiter@vbridges.com"
href="mailto:lreiter@vbridges.com">lreiter@vbridges.com</a>> wrote:<br>> <br>> On Fri, Jun 24, 2011 at 4:33 AM, Gerd Hoffmann <<a ymailto="mailto:kraxel@redhat.com" href="mailto:kraxel@redhat.com">kraxel@redhat.com</a>> wrote:<br>> ><br>> > Hi,<br>> >><br>> >><br>> >><br>> >>you can see the 2nd QXL device at 00:06.0. I don't know why the first<br>> >>>one says "VGA compatible" and the second one doesn't, but hopefully that<br>> >>>is not an issue.<br>> >>><br>> >><br>> The second simply isn't matched by the qxl driver due to the different PCI class. Fixable (see attachent).<br>> >><br>> >Thanks... I will try this and keep testing... we are looking into the spicec crash as well, because this was happening for us even with Windows guests. But any more help with the this QXL issue will be much
appreciated.<br>> Definitely confirmed the situation you explained... I had to remove the "Screen" config from the Device sections from the /etc/X11/xorg.conf, at which point I was able to start with 2 SPICE windows but blank. This is after applying your patch (using the 0.13.0 tag in git for the QXL driver). gdb'ing Xorg and getting a backtrace shows:<br>> <br>> #0 qxl_ring_push (ring=0xe6c490, new_elt=0x7ffff4578850) at qxl_ring.c:73<br>> #1 0x00007f5fa413ecd0 in push_surface_cmd (surface=0xed8c60)<br>> at qxl_surface.c:435<br>> #2 send_destroy (surface=0xed8c60) at qxl_surface.c:766<br>> #3 0x00007f5fa413ce38 in qxl_destroy_pixmap (pixmap=0x1657670)<br>> at qxl_driver.c:739<br>> #4 0x00000000004cc19c in ?? ()<br>> #5 0x00000000004ab0da in ?? ()<br>> #6 0x00000000004bb998 in FreePicture ()<br>> #7 0x0000000000455840 in
FreeResource ()<br>> #8 0x00000000004c2f3a in ?? ()<br>> #9 0x00000000004c014d in ?? ()<br>> #10 0x00000000004275dc in ?? ()<br>> #11 0x000000000042208a in _start ()<br>> <br>> I'll keep investigating but would appreciate any further help.<br>> <br>> Thanks,<br>> Leo Reiter<br>> <br>> <br>> ><br>> >>That alone doesn't get things going though, guess thats why it isn't supported (yet?) by the driver. I can get X to show the display on one or the other qxl device, but not with xinerama on both.<br>> >><br>> >>Seems to be stuck here:<br>> >><br>> >>0x00007f3f90620992 in qxl_ring_push (ring=0x126e4c0, new_elt=0x7fff74a3afa0) at qxl_ring.c:73<br>> >>73 while (header->prod - header->cons == header->num_items)<br>> >>(gdb) bt<br>> >>#0 0x00007f3f90620992 in qxl_ring_push
(ring=0x126e4c0, new_elt=0x7fff74a3afa0) at qxl_ring.c:73<br>> >>#1 0x00007f3f9061ee5b in push_drawable (drawable=<optimized out>, qxl=<optimized out>)<br>> >> at qxl_surface.c:516<br>> >>#2 push_drawable (qxl=<optimized out>, drawable=<optimized out>) at qxl_surface.c:498<br>> >>#3 0x00007f3f906208d1 in qxl_surface_put_image (dest=0x12f5ce0, x=<optimized out>,<br>> >> y=<optimized out>, width=24, height=24, src=0x2058468 "", src_pitch=96) at qxl_surface.c:1465<br>> >>#4 0x00007f3f9062618d in uxa_do_put_image (src_stride=96, bits=0x2058468 "", format=2, h=24,<br>> >> w=24, y=<optimized out>, x=<optimized out>, depth=<optimized out>, pGC=0x1a2fe00,<br>> >> pDrawable=0x1a35910) at uxa-accel.c:329<br>> >>#5 uxa_put_image (pDrawable=0x1a35910,
pGC=0x1a2fe00, depth=<optimized out>, x=<optimized out>,<br>> >> y=0, w=24, h=24, leftPad=0, format=2, bits=0x2058468 "") at uxa-accel.c:367<br>> >>#6 0x00000000004dc199 in ?? ()<br>> >>#7 0x000000000042b91d in ?? ()<br>> >>#8 0x000000000042ec11 in ?? ()<br>> >>#9 0x0000000000422e1a in ?? ()<br>> >>#10 0x00000033c1a2139d in __libc_start_main () from /lib64/libc.so.6<br>> >>#11 0x0000000000423101 in _start ()<br>> >><br>> >>Could be a server side issue too (guest driver spinning, waiting for spice-server to take requests out of the ring). Also note that spicec crashed while the X-Server tried to init the two qxl devices in xinerama mode ...<br>> >><br>> >>cheers,<br>> >> Gerd<br>> >><br>> ><br>> ><br>> >Thanks,<br>> ><br>> ><br>> >- Leo
Reiter <br>> ><br>> <br>> _______________________________________________<br>> Spice-devel mailing list<br>> <a ymailto="mailto:Spice-devel@lists.freedesktop.org" href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a><br>> <a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/spice-devel</a><br><br><br></div></div></div></body></html>