[Spice-devel] [PATCH 3.3/12] Fix warning due to unexpected pipe item type

Christophe Fergeau cfergeau at redhat.com
Fri Oct 30 06:39:05 PDT 2015


Hey,

On Thu, Oct 29, 2015 at 04:54:40PM -0500, Jonathon Jongsma wrote:
> From: Marc-André Lureau <marcandre.lureau at gmail.com>
> 
> The specific item type that was not being handled was
> PIPE_ITEM_TYPE_INVAL_ONE (#102). This item type is used by the cursor
> channel, but the analogous item for the display channel is
> PIPE_ITEM_TYPE_INVAL_PALETTE_CACHE. Use this value instead.
> 
> The exact warning follows:
> 
>      (/usr/bin/qemu-kvm:24458): Spice-Warning **:
>      ../../server/dcc-send.c:2442:dcc_send_item: should not be reached
>      (/usr/bin/qemu-kvm:24458): Spice-CRITICAL **:
>      ../../server/dcc.c:1595:release_item_before_push: invalid item type

Maybe I'm missing something, but it looks like the red_worker.c changes
in this patch would cause these warnings if they are not accompanied by
the cache_item.tmpl.c changes. INVAL_ONE seems to mean "remove one cache
item"
INVAL_PALETTE_CACHE seems to be whole cache invalidation VS INVAL_ONE
which invalidates just one element in the cache.

All in all, I'm not sure this patch is correct.

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20151030/90821968/attachment.sig>


More information about the Spice-devel mailing list