qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1.5 0/3] qdev: switch reset to post-order
Date: Thu, 2 May 2013 13:35:40 +0300	[thread overview]
Message-ID: <20130502103540.GA23474@redhat.com> (raw)
In-Reply-To: <1367487519-17332-1-git-send-email-pbonzini@redhat.com>

On Thu, May 02, 2013 at 11:38:36AM +0200, Paolo Bonzini wrote:
> I was going to keep these for 1.6, but since they have been tested
> by the user and myself, and they fix a regression, it can be worthwhile
> to include these in 1.5.

I remember there were some tricky issues last time
we tried something like this for PCI.

Seems too risky to me.
Let's find an LSI specific solution for 1.5 please.

> qdev reset (qdev_reset_all/qbus_reset_all) is currently done in
> pre-order.  This is not right, because it means the parent devices
> cannot expect anything about the children devices' state during the
> reset callback.
>
> With the traversal done *before* invoking the bus-reset callback,
> there is no way for the bus-reset callback to take care of the device
> tree traversal.  This is currently done only for PCI, which requires
> some adjustments.
> 
> This fixes a crash in resetting the LSI SCSI adapter, as reported and
> tested by Claudio Bley.
> 
> Paolo Bonzini (3):
>   pci: do not export pci_bus_reset
>   qdev: allow both pre- and post-order vists in qdev walking functions
>   qdev: switch reset to post-order
> 
>  hw/core/qdev.c         | 47 ++++++++++++++++++++++++++++++++++-------------
>  hw/pci/pci.c           | 37 +++++++++++++++++--------------------
>  hw/pci/pci_bridge.c    |  2 +-
>  include/hw/pci/pci.h   |  1 -
>  include/hw/qdev-core.h | 15 ++++++++++-----
>  5 files changed, 62 insertions(+), 40 deletions(-)
> 
> -- 
> 1.8.2
> 

  parent reply	other threads:[~2013-05-02 10:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-02  9:38 [Qemu-devel] [PATCH 1.5 0/3] qdev: switch reset to post-order Paolo Bonzini
2013-05-02  9:38 ` [Qemu-devel] [PATCH 1.5 1/3] pci: do not export pci_bus_reset Paolo Bonzini
2013-05-02  9:38 ` [Qemu-devel] [PATCH 1.5 2/3] qdev: allow both pre- and post-order vists in qdev walking functions Paolo Bonzini
2013-05-02  9:38 ` [Qemu-devel] [PATCH 1.5 3/3] qdev: switch reset to post-order Paolo Bonzini
2013-05-02 10:35 ` Michael S. Tsirkin [this message]
2013-05-02 11:01   ` [Qemu-devel] [PATCH 1.5 0/3] " Paolo Bonzini
2013-05-02 11:34     ` 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=20130502103540.GA23474@redhat.com \
    --to=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /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).