qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 17/23] hyperv: add synic message delivery


From: Roman Kagan
Subject: Re: [Qemu-devel] [PATCH 17/23] hyperv: add synic message delivery
Date: Wed, 14 Jun 2017 18:28:50 +0300
User-agent: Mutt/1.8.0 (2017-02-23)

On Wed, Jun 14, 2017 at 05:08:02PM +0200, Paolo Bonzini wrote:
> 
> 
> On 06/06/2017 20:19, Roman Kagan wrote:
> > +    sint_route->msg_status = ret;
> > +    /* notify the msg originator of the progress made; if the slot was 
> > busy we
> > +     * set msg_pending flag in it so it will be the guest who will do EOM 
> > and
> > +     * trigger the notification from KVM via sint_ack_notifier */
> > +    if (ret != -EAGAIN) {
> > +        qemu_bh_schedule(sint_route->msg_bh);
> > +    }
> 
> It may be faster to use aio_bh_schedule_oneshot, depending on the number
> of devices.

Messages aren't used on fast paths, they are only exchanged at device
setup/teardown.  So I cared more about readability than speed here.

Thanks,
Roman.



reply via email to

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