All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Jason Wang <jasowang@redhat.com>
Cc: aliguori@us.ibm.com, stefanha@linux.vnet.ibm.com, mst@redhat.com,
	rusty@rustcorp.com.au, qemu-devel@nongnu.org,
	quintela@redhat.com
Subject: Re: [Qemu-devel] [V5 PATCH 1/4] net: announce self after vm start
Date: Fri, 16 Mar 2012 17:31:55 +0100	[thread overview]
Message-ID: <4F636AFB.9090707@redhat.com> (raw)
In-Reply-To: <4F635B0E.7020300@redhat.com>

Il 16/03/2012 16:23, Jason Wang ha scritto:
>>>
>> Or just a global need_announce instead of looking at the runstate.
>>
>> Paolo
>>
> Then I think it's better for us introduce a parameter for vm_start()
> like what we've done in V4.

But that didn't work because you ended up changing the "cont" semantics.

There are two possibilities.

1) Changing those is okay, in which case you only need to check more
runstates;

2) Changing those is not okay, in which case you need something like
this in qemu_announce_self()

void qemu_announce_self()
{
    if (!runstate_is_running()) {
        need_announce = true;
        return;
    }

    need_announce = false;
    ...
}

and then you just check need_announce in vm_start.  Nothing to change in
all the invocations of vm_start, you just mark that you need to do work
later.

Paolo

  reply	other threads:[~2012-03-16 18:50 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-16  8:54 [Qemu-devel] [V5 PATCH 0/4] Send gratuitous packets by guest Jason Wang
2012-03-16  8:54 ` [Qemu-devel] [V5 PATCH 1/4] net: announce self after vm start Jason Wang
2012-03-16  9:43   ` Paolo Bonzini
2012-03-16 10:13     ` Jason Wang
2012-03-16 10:45       ` Paolo Bonzini
2012-03-16 15:23         ` Jason Wang
2012-03-16 16:31           ` Paolo Bonzini [this message]
2012-03-19  3:12             ` Jason Wang
2012-03-16  8:55 ` [Qemu-devel] [V5 PATCH 2/4] net: model specific announcing support Jason Wang
2012-03-16  8:55 ` [Qemu-devel] [V5 PATCH 3/4] virtio-net: notify guest to annouce itself Jason Wang
2012-03-16  8:55 ` [Qemu-devel] [V5 PATCH 4/4] virtio-net: compat guest announce support Jason Wang
2012-03-26 22:10 ` [Qemu-devel] [V5 PATCH 0/4] Send gratuitous packets by guest Anthony Liguori
2012-03-27  3:40   ` Jason Wang
2012-03-27  6:27   ` Michael S. Tsirkin

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=4F636AFB.9090707@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=aliguori@us.ibm.com \
    --cc=jasowang@redhat.com \
    --cc=mst@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@redhat.com \
    --cc=rusty@rustcorp.com.au \
    --cc=stefanha@linux.vnet.ibm.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.