[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 4/4] hw/qxl-render: drop cursor locks, replac
From: |
Jes Sorensen |
Subject: |
Re: [Qemu-devel] [PATCH v3 4/4] hw/qxl-render: drop cursor locks, replace with pipe |
Date: |
Thu, 17 Mar 2011 10:48:43 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Thunderbird/3.1.9 |
On 03/17/11 10:32, Alon Levy wrote:
> On Wed, Mar 16, 2011 at 05:48:41PM +0100, Jes Sorensen wrote:
>> > On 03/16/11 16:52, Alon Levy wrote:
>>> > > +void qxl_server_request_cursor_set(PCIQXLDevice *qxl, QEMUCursor *c,
>>> > > int x, int y)
>>> > > +{
>>> > > + QXLServerCursorSetRequest req;
>>> > > + int r;
>>> > > +
>>> > > + req.req = QXL_SERVER_CURSOR_SET;
>>> > > + req.data.c = c;
>>> > > + req.data.x = x;
>>> > > + req.data.y = y;
>>> > > + r = write(qxl->ssd.pipe[1], &req, sizeof(req));
>>> > > + assert(r == sizeof(req));
>>> > > +}
>> >
>> > There's a number of asserts here, which I am not sure is a good thing. I
>> > don't understand how far down the code this is, and if it is really
>> > fatal if this write fails?
> A failure there means we can't write to a pipe between the server thread
> and the iothread (main thread). That is not supposed to happen - and if
> it does it means some operation by the spice server will never complete.
>
> Same for the asserts below, writes are from spice server thread, reads
> are in iothread.
But shouldn't this make it try to reconnect? Even if the reconnect
fails, it shouldn't kill the guest IMHO.
Cheers,
Jes
- Re: [Qemu-devel] [PATCH v3 1/4] qxl/spice-display: move pipe to ssd, (continued)
- [Qemu-devel] [PATCH v3 2/4] qxl: implement get_command in vga mode without locks, Alon Levy, 2011/03/16
- [Qemu-devel] [PATCH v3 3/4] qxl/spice: remove qemu_mutex_{un, }lock_iothread around dispatcher, Alon Levy, 2011/03/16
- [Qemu-devel] [PATCH v3 4/4] hw/qxl-render: drop cursor locks, replace with pipe, Alon Levy, 2011/03/16
- [Qemu-devel] Re: [PATCH v3 4/4] hw/qxl-render: drop cursor locks, replace with pipe, Hans de Goede, 2011/03/16
- Re: [Qemu-devel] [PATCH v3 4/4] hw/qxl-render: drop cursor locks, replace with pipe, Jes Sorensen, 2011/03/16
- Re: [Qemu-devel] [PATCH v3 4/4] hw/qxl-render: drop cursor locks, replace with pipe, Alon Levy, 2011/03/17
- Re: [Qemu-devel] [PATCH v3 4/4] hw/qxl-render: drop cursor locks, replace with pipe,
Jes Sorensen <=
- Re: [Qemu-devel] [PATCH v3 4/4] hw/qxl-render: drop cursor locks, replace with pipe, Alon Levy, 2011/03/17
- Re: [Qemu-devel] [PATCH v3 4/4] hw/qxl-render: drop cursor locks, replace with pipe, Jes Sorensen, 2011/03/17
- Re: [Qemu-devel] [PATCH v3 4/4] hw/qxl-render: drop cursor locks, replace with pipe, Alon Levy, 2011/03/17
- Re: [Qemu-devel] [PATCH v3 4/4] hw/qxl-render: drop cursor locks, replace with pipe, Jes Sorensen, 2011/03/17
- Re: [Qemu-devel] [PATCH v3 4/4] hw/qxl-render: drop cursor locks, replace with pipe, Alon Levy, 2011/03/17