<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.&nbsp;</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; ">&nbsp; &nbsp; &nbsp;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 &lt;alevy@redhat.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> Naga Mohan Pothula &lt;nagamohan.pothula@yahoo.com&gt;<br><b><span style="font-weight: bold;">Cc:</span></b> Leonardo E. Reiter &lt;lreiter@vbridges.com&gt;; Gerd Hoffmann &lt;kraxel@redhat.com&gt;; "spice-devel@lists.freedesktop.org" &lt;spice-devel@lists.freedesktop.org&gt;<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>&gt; Hi Gerd/Alon,<br>&gt; <br>&gt; 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>&gt; <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>&gt; 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>&gt; <br>&gt; It seems the problem is completely with qxl driver. Please refer below backtrace received when I did gdb Xorg.<br>&gt; <br>&gt; <br>&gt; qxl_ring_push (ring=0x1891cf0, new_elt=0x7fffa850cec0) at qxl_ring.c:75<br>&gt; 75&nbsp;&nbsp;&nbsp; qxl_ring.c: No such file or directory.<br>&gt; &nbsp;&nbsp;&nbsp; in qxl_ring.c<br>&gt; (gdb) bt<br>&gt; #0&nbsp; qxl_ring_push (ring=0x1891cf0, new_elt=0x7fffa850cec0) at qxl_ring.c:75<br>&gt; #1&nbsp; 0x00007f80005af53b in push_drawable (qxl=&lt;value optimized out&gt;, <br>&gt; &nbsp;&nbsp;&nbsp; drawable=&lt;value optimized out&gt;) at qxl_surface.c:516<br>&gt; #2&nbsp; 0x00007f80005af665 in qxl_surface_put_image (dest=0x19027c8, <br>&gt; &nbsp;&nbsp;&nbsp; x=&lt;value optimized out&gt;, y=&lt;value optimized out&gt;, width=24, height=24, <br>&gt; &nbsp;&nbsp;&nbsp; src=0x2079a88 "", src_pitch=96) at
 qxl_surface.c:1467<br>&gt; #3&nbsp; 0x00007f80005b5e24 in uxa_do_put_image (pDrawable=&lt;value optimized out&gt;, <br>&gt; &nbsp;&nbsp;&nbsp; pGC=&lt;value optimized out&gt;, depth=&lt;value optimized out&gt;, <br>&gt; &nbsp;&nbsp;&nbsp; x=&lt;value optimized out&gt;, y=&lt;value optimized out&gt;, w=&lt;value optimized out&gt;, <br>&gt; &nbsp;&nbsp;&nbsp; h=24, leftPad=0, format=2, bits=0x2079a88 "") at uxa-accel.c:329<br>&gt; #4&nbsp; uxa_put_image (pDrawable=&lt;value optimized out&gt;, pGC=&lt;value optimized out&gt;, <br>&gt; &nbsp;&nbsp;&nbsp; depth=&lt;value optimized out&gt;, x=&lt;value optimized out&gt;, <br>&gt; &nbsp;&nbsp;&nbsp; y=&lt;value optimized out&gt;, w=&lt;value optimized out&gt;, h=24, leftPad=0, <br>&gt; &nbsp;&nbsp;&nbsp; format=2, bits=0x2079a88 "") at uxa-accel.c:367<br>&gt; #5&nbsp; 0x00000000004d6cfc in ?? ()<br>&gt; #6&nbsp; 0x0000000000448af9 in ?? ()<br>&gt; #7&nbsp; 0x0000000000554a78 in ?? ()<br>&gt; #8&nbsp;
 0x000000000044ae7c in ?? ()<br>&gt; #9&nbsp; 0x000000000042208a in _start ()<br>&gt; <br>&gt; Looping in "qxl_ring_push" continuously happens at this scenario.<br>&gt; <br>&gt; <br>&gt; Regards,<br>&gt; Mohan.<br>&gt; <br>&gt; <br>&gt; <br>&gt; ________________________________<br>&gt; From: Leonardo E. Reiter &lt;<a ymailto="mailto:lreiter@vbridges.com" href="mailto:lreiter@vbridges.com">lreiter@vbridges.com</a>&gt;<br>&gt; To: Gerd Hoffmann &lt;<a ymailto="mailto:kraxel@redhat.com" href="mailto:kraxel@redhat.com">kraxel@redhat.com</a>&gt;<br>&gt; Cc: <a ymailto="mailto:spice-devel@lists.freedesktop.org" href="mailto:spice-devel@lists.freedesktop.org">spice-devel@lists.freedesktop.org</a><br>&gt; Sent: Friday, June 24, 2011 1:17 PM<br>&gt; Subject: Re: [Spice-devel] Questions about multimonitor Xinerama configuration<br>&gt; <br>&gt; <br>&gt; On Fri, Jun 24, 2011 at 11:46 AM, Leonardo E. Reiter &lt;<a ymailto="mailto:lreiter@vbridges.com"
 href="mailto:lreiter@vbridges.com">lreiter@vbridges.com</a>&gt; wrote:<br>&gt; <br>&gt; On Fri, Jun 24, 2011 at 4:33 AM, Gerd Hoffmann &lt;<a ymailto="mailto:kraxel@redhat.com" href="mailto:kraxel@redhat.com">kraxel@redhat.com</a>&gt; wrote:<br>&gt; &gt;<br>&gt; &gt;&nbsp;Hi,<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;you can see the 2nd QXL device at 00:06.0. &nbsp;I don't know why the first<br>&gt; &gt;&gt;&gt;one says "VGA compatible" and the second one doesn't, but hopefully that<br>&gt; &gt;&gt;&gt;is not an issue.<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;<br>&gt; The second simply isn't matched by the qxl driver due to the different PCI class. &nbsp;Fixable (see attachent).<br>&gt; &gt;&gt;<br>&gt; &gt;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. &nbsp;But any more help with the this QXL issue will be much
 appreciated.<br>&gt; 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. &nbsp;This is after applying your patch (using the 0.13.0 tag in git for the QXL driver). &nbsp;gdb'ing Xorg and getting a backtrace shows:<br>&gt; <br>&gt; #0 &nbsp;qxl_ring_push (ring=0xe6c490, new_elt=0x7ffff4578850) at qxl_ring.c:73<br>&gt; #1 &nbsp;0x00007f5fa413ecd0 in push_surface_cmd (surface=0xed8c60)<br>&gt; &nbsp; &nbsp; at qxl_surface.c:435<br>&gt; #2 &nbsp;send_destroy (surface=0xed8c60) at qxl_surface.c:766<br>&gt; #3 &nbsp;0x00007f5fa413ce38 in qxl_destroy_pixmap (pixmap=0x1657670)<br>&gt; &nbsp; &nbsp; at qxl_driver.c:739<br>&gt; #4 &nbsp;0x00000000004cc19c in ?? ()<br>&gt; #5 &nbsp;0x00000000004ab0da in ?? ()<br>&gt; #6 &nbsp;0x00000000004bb998 in FreePicture ()<br>&gt; #7 &nbsp;0x0000000000455840 in
 FreeResource ()<br>&gt; #8 &nbsp;0x00000000004c2f3a in ?? ()<br>&gt; #9 &nbsp;0x00000000004c014d in ?? ()<br>&gt; #10 0x00000000004275dc in ?? ()<br>&gt; #11 0x000000000042208a in _start ()<br>&gt; <br>&gt; I'll keep investigating but would appreciate any further help.<br>&gt; <br>&gt; Thanks,<br>&gt; Leo Reiter<br>&gt; <br>&gt; &nbsp;<br>&gt; &gt;<br>&gt; &gt;&gt;That alone doesn't get things going though, guess thats why it isn't supported (yet?) by the driver. &nbsp;I can get X to show the display on one or the other qxl device, but not with xinerama on both.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;Seems to be stuck here:<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;0x00007f3f90620992 in qxl_ring_push (ring=0x126e4c0, new_elt=0x7fff74a3afa0) at qxl_ring.c:73<br>&gt; &gt;&gt;73 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;while (header-&gt;prod - header-&gt;cons == header-&gt;num_items)<br>&gt; &gt;&gt;(gdb) bt<br>&gt; &gt;&gt;#0 &nbsp;0x00007f3f90620992 in qxl_ring_push
 (ring=0x126e4c0, new_elt=0x7fff74a3afa0) at qxl_ring.c:73<br>&gt; &gt;&gt;#1 &nbsp;0x00007f3f9061ee5b in push_drawable (drawable=&lt;optimized out&gt;, qxl=&lt;optimized out&gt;)<br>&gt; &gt;&gt;&nbsp; &nbsp;at qxl_surface.c:516<br>&gt; &gt;&gt;#2 &nbsp;push_drawable (qxl=&lt;optimized out&gt;, drawable=&lt;optimized out&gt;) at qxl_surface.c:498<br>&gt; &gt;&gt;#3 &nbsp;0x00007f3f906208d1 in qxl_surface_put_image (dest=0x12f5ce0, x=&lt;optimized out&gt;,<br>&gt; &gt;&gt;&nbsp; &nbsp;y=&lt;optimized out&gt;, width=24, height=24, src=0x2058468 "", src_pitch=96) at qxl_surface.c:1465<br>&gt; &gt;&gt;#4 &nbsp;0x00007f3f9062618d in uxa_do_put_image (src_stride=96, bits=0x2058468 "", format=2, h=24,<br>&gt; &gt;&gt;&nbsp; &nbsp;w=24, y=&lt;optimized out&gt;, x=&lt;optimized out&gt;, depth=&lt;optimized out&gt;, pGC=0x1a2fe00,<br>&gt; &gt;&gt;&nbsp; &nbsp;pDrawable=0x1a35910) at uxa-accel.c:329<br>&gt; &gt;&gt;#5 &nbsp;uxa_put_image (pDrawable=0x1a35910,
 pGC=0x1a2fe00, depth=&lt;optimized out&gt;, x=&lt;optimized out&gt;,<br>&gt; &gt;&gt;&nbsp; &nbsp;y=0, w=24, h=24, leftPad=0, format=2, bits=0x2058468 "") at uxa-accel.c:367<br>&gt; &gt;&gt;#6 &nbsp;0x00000000004dc199 in ?? ()<br>&gt; &gt;&gt;#7 &nbsp;0x000000000042b91d in ?? ()<br>&gt; &gt;&gt;#8 &nbsp;0x000000000042ec11 in ?? ()<br>&gt; &gt;&gt;#9 &nbsp;0x0000000000422e1a in ?? ()<br>&gt; &gt;&gt;#10 0x00000033c1a2139d in __libc_start_main () from /lib64/libc.so.6<br>&gt; &gt;&gt;#11 0x0000000000423101 in _start ()<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;Could be a server side issue too (guest driver spinning, waiting for spice-server to take requests out of the ring). &nbsp;Also note that spicec crashed while the X-Server tried to init the two qxl devices in xinerama mode ...<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;cheers,<br>&gt; &gt;&gt;&nbsp;Gerd<br>&gt; &gt;&gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;Thanks,<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;- Leo
 Reiter&nbsp;<br>&gt; &gt;<br>&gt; <br>&gt; _______________________________________________<br>&gt; Spice-devel mailing list<br>&gt; <a ymailto="mailto:Spice-devel@lists.freedesktop.org" href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a><br>&gt; <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>