qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 02/25] [virtio-9p] Change all pdu handlers to co


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH 02/25] [virtio-9p] Change all pdu handlers to coroutines.
Date: Fri, 13 May 2011 07:19:13 +0100

On Thu, May 12, 2011 at 9:57 PM, Venkateswararao Jujjuri (JV)
<address@hidden> wrote:
> +typedef struct V9fsCoPdu {
> +    V9fsPDU *pdu;
> +    V9fsState *s;
> +    Coroutine *coroutine;
> +} V9fsCoPdu;

How about adding the V9fsState *s field to V9fsPDU?  Then you do not
need this new V9fsCoPdu struct and all the extracting fields/freeing
copdu.  You can use qemu_coroutine_self() if it is necessary to give
someone a reference to your coroutine.

Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]