<div>Hi,Levy,thank you for your answer!</div>
<div>I have download qemu-kvm-0.13,but there is no hw/qxl.c.</div>
<div>Can you give me a link to spice-qemu?<br><br></div>
<div class="gmail_quote">2010/12/30 Alon Levy <span dir="ltr">&lt;<a href="mailto:alevy@redhat.com">alevy@redhat.com</a>&gt;</span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im">On Wed, Dec 29, 2010 at 10:45:11PM +0800, lin gu wrote:<br>&gt; but these is no called qxl_worker_update_area,except<br>&gt; &quot;dispatcher-&gt;base.update_area = qxl_worker_update_area&quot;.<br>&gt;<br>
<br></div>You could use systemtap or just add a printf to see who/when it is actually called,<br>and if you just want to find out statically (browsing the source) grep for update_area,<br>you&#39;ll find:<br>playa:qemu alon spice.kvm.v18.ccid.v8.1.based $ git grep -p update_area<br>
hw/qxl-render.c=void qxl_render_update(PCIQXLDevice *qxl)<br>hw/qxl-render.c:    qxl-&gt;ssd.worker-&gt;update_area(qxl-&gt;ssd.worker, 0, &amp;update,<br>hw/qxl.c=static void ioport_write(void *opaque, uint32_t addr, uint32_t val)<br>
hw/qxl.c:        QXLRect update = d-&gt;ram-&gt;update_area;<br>hw/qxl.c:        d-&gt;ssd.worker-&gt;update_area(d-&gt;ssd.worker, d-&gt;ram-&gt;update_surface,<br><br>So other then on rendering (qxl_render_update, called from qxl_hw_update or screendump)<br>
the main path is by io port QXL_IO_UPDATE_AREA from the driver. If you look at the driver<br>you can see when that is triggered.<br>
<div>
<div></div>
<div class="h5"><br>&gt; 2010/12/29 Alon Levy &lt;<a href="mailto:alevy@redhat.com">alevy@redhat.com</a>&gt;<br>&gt;<br>&gt; &gt;  On Wed, Dec 29, 2010 at 10:27:57PM +0800, lin gu wrote:<br>&gt; &gt; &gt; Hi,guys!<br>&gt; &gt; &gt; I thought that when the QXL update_area,it will send a<br>
&gt; &gt; &gt; RED_WORKER_MESSAGE_UPDATE<br>&gt; &gt; &gt;  use Red_dispather,then the Red_worker will handler the message.<br>&gt; &gt; &gt; but I can&#39;t find any code to create the the<br>&gt; &gt; &gt; message--&quot;RED_WORKER_MESSAGE_UPDATE&quot;.<br>
&gt; &gt; &gt; so I want to know if the QXL send the RED_WORKER_MESSAGE_UPDATE message?<br>&gt; &gt; &gt; or it&#39;s only a definition that dosenot use in spice?<br>&gt; &gt; &gt; Thanks!<br>&gt; &gt;<br>&gt; &gt; U playa:spice alon master $ git grep -p RED_WORKER_MESSAGE_UPDATE<br>
&gt; &gt; server/red_dispatcher.c=static void qxl_worker_update_area(QXLWorker<br>&gt; &gt; *qxl_worker, uint32_t surface_i<br>&gt; &gt; server/red_dispatcher.c:    RedWorkerMessage message =<br>&gt; &gt; RED_WORKER_MESSAGE_UPDATE;<br>
&gt; &gt; server/red_worker.c=static void handle_dev_input(EventListener *listener,<br>&gt; &gt; uint32_t events)<br>&gt; &gt; server/red_worker.c:    case RED_WORKER_MESSAGE_UPDATE:<br>&gt; &gt; server/red_worker.h=enum {<br>
&gt; &gt; server/red_worker.h:    RED_WORKER_MESSAGE_UPDATE,<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; &gt; Spice-devel mailing list<br>&gt; &gt; &gt; <a href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a><br>
&gt; &gt; &gt; <a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/spice-devel</a><br>&gt; &gt;<br>&gt; &gt;<br><br></div></div>&gt; _______________________________________________<br>

<div>
<div></div>
<div class="h5">&gt; Spice-devel mailing list<br>&gt; <a 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></div></div></blockquote></div><br>