qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jason Wang <jasowang@redhat.com>
To: wang.yong155@zte.com.cn, zhang.zhanghailiang@huawei.com
Cc: zhangchen.fnst@cn.fujitsu.com, lizhijian@cn.fujitsu.com,
	qemu-devel@nongnu.org, wang.guang55@zte.com.cn,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Stefan Hajnoczi" <stefanha@redhat.com>,
	"Marc-André Lureau" <marcandre.lureau@gmail.com>
Subject: Re: [Qemu-devel] 答复: Re: 答复: Re: [PATCHv2 02/04] colo-compare: Process pactkets in the IOThread ofthe primary
Date: Thu, 15 Jun 2017 12:23:27 +0800	[thread overview]
Message-ID: <d62e03ee-f3ab-303e-011d-8b995530b6ab@redhat.com> (raw)
In-Reply-To: <201706131924483092713@zte.com.cn>



On 2017年06月13日 19:24, wang.yong155@zte.com.cn wrote:
>
> >>Char-fe.c for sure which means frontend of chardev.
>
>
> >>> These API can only watch events in the qemu main thread, not in the
>
> >>> IOThread.
>
> >>>
>
> >>> I had to use the qio_channel_socket_set_aio_fd_handler function to
>
> >>>
>
> >>> monitor the char event in the IOThread,so the io channel is used her
>
> >>>
>
>
> >>The point is not touching the internal structure of chardev like ioc,
>
> >>instead extend its helper like e.g qemu_chr_fe_set_handlers() and let it
>
> >>set aio handlers,
>
>
> >Currently character devices are tied to the GSource API. However,I'll 
> try to submit a patch first.
>
>
> Hi Jason,
>
>
> I have investigated the change, which involves a great deal.
>
> We have to convert the user of those APIs (the external API is
>
> qemu_chr_fe_add_watch) from GSource/QIOChannel to AioContext.
>
>
> Can we join this series first?  and replace GSource with AioContext in 
> a future patch.
>
>

Touching internal chardev member out of its scope is bad, we need to 
seek a solution for this.

Paolo, Marc and Stefan:

We want let chardev front-end run in colo comparing IOThread. This looks 
not supported by current chardev frontend API. Any idea/suggestion on 
how to achieve this?

Thanks

  reply	other threads:[~2017-06-15  4:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-13 11:24 [Qemu-devel] 答复: Re: 答复: Re: [PATCHv2 02/04] colo-compare: Process pactkets in the IOThread ofthe primary wang.yong155
2017-06-15  4:23 ` Jason Wang [this message]
2017-06-16  9:02   ` Stefan Hajnoczi
2017-06-16  9:20   ` Stefan Hajnoczi
  -- strict thread matches above, loose matches on Subject: below --
2017-06-13  0:48 wang.yong155

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d62e03ee-f3ab-303e-011d-8b995530b6ab@redhat.com \
    --to=jasowang@redhat.com \
    --cc=lizhijian@cn.fujitsu.com \
    --cc=marcandre.lureau@gmail.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    --cc=wang.guang55@zte.com.cn \
    --cc=wang.yong155@zte.com.cn \
    --cc=zhang.zhanghailiang@huawei.com \
    --cc=zhangchen.fnst@cn.fujitsu.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).