All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: yuri.benditovich@daynix.com
Cc: Jason Wang <jasowang@redhat.com>,
	qemu-devel@nongnu.org, dmitry@daynix.com, yan@daynix.com
Subject: Re: [Qemu-devel] [PATCH 1/1] net: skip virtio-net config of deleted nic's peers
Date: Tue, 1 Nov 2016 00:42:22 +0200	[thread overview]
Message-ID: <20161101004216-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <1477951277-6924-1-git-send-email-yuri.benditovich@daynix.com>

On Tue, Nov 01, 2016 at 12:01:17AM +0200, yuri.benditovich@daynix.com wrote:
> From: Yuri Benditovich <yuri.benditovich@daynix.com>
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=1373816
> qemu core dump happens during repetitive unpug-plug
> with multiple queues and Windows RSS-capable guest.
> If back-end delete requested during virtio-net device
> initialization, driver still can try configure the device
> for multiple queues. The virtio-net device is expected
> to be removed as soon as the initialization is done.
> 
> Signed-off-by: Yuri Benditovich <yuri.benditovich@daynix.com>

Reviewed-by: Michael S. Tsirkin <mst@redhat.com>

> ---
>  hw/net/virtio-net.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c
> index 06bfe4b..77a4fae 100644
> --- a/hw/net/virtio-net.c
> +++ b/hw/net/virtio-net.c
> @@ -508,6 +508,10 @@ static void virtio_net_set_queues(VirtIONet *n)
>      int i;
>      int r;
>  
> +    if (n->nic->peer_deleted) {
> +        return;
> +    }
> +
>      for (i = 0; i < n->max_queues; i++) {
>          if (i < n->curr_queues) {
>              r = peer_attach(n, i);
> -- 
> 1.9.1

  reply	other threads:[~2016-10-31 22:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-31 22:01 [Qemu-devel] [PATCH 1/1] net: skip virtio-net config of deleted nic's peers yuri.benditovich
2016-10-31 22:42 ` Michael S. Tsirkin [this message]
2016-11-02  2:58   ` Jason Wang

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=20161101004216-mutt-send-email-mst@kernel.org \
    --to=mst@redhat.com \
    --cc=dmitry@daynix.com \
    --cc=jasowang@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=yan@daynix.com \
    --cc=yuri.benditovich@daynix.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.