qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
To: Alexander Graf <agraf@suse.de>,
	Greg Kurz <gkurz@linux.vnet.ibm.com>,
	"Michael S. Tsirkin" <mst@redhat.com>
Cc: Peter Maydell <peter.maydell@linaro.org>,
	Jason Wang <jasowang@redhat.com>,
	qemu-devel@nongnu.org, Anthony Liguori <aliguori@amazon.com>
Subject: Re: [Qemu-devel] [PULL v3 14/15] virtio-pci: fix migration for pci bus master
Date: Fri, 26 Sep 2014 14:49:15 +0530	[thread overview]
Message-ID: <87vboabuy4.fsf@linux.vnet.ibm.com> (raw)
In-Reply-To: <20140924192038.2216c11c@bahia.local>


Hi Alex/Peter,

The below patch is already been picked in master and ppc-next and has
broken pseries booting from virtio-blk device

Greg Kurz <gkurz@linux.vnet.ibm.com> writes:
> On Tue, 23 Sep 2014 07:26:32 +0300
> "Michael S. Tsirkin" <mst@redhat.com> wrote:
>
>> > 
>> > This commit prevents pseries to boot. SLOF complains with the following messages:
>> > 
>> > Trying to load:  from: /pci@800000020000000/scsi@0 ... virtioblk_read failed! status = 255
>> > virtioblk_read failed! status = 255
>> > virtioblk_read failed! status = 255
>> > ...
>> > 
>> > I'll try to debug some more.
>> > 

>> > > @@ -480,13 +469,18 @@ static void virtio_write_config(PCIDevice *pci_dev, uint32_t address,
>> > >      VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, pci_dev, pci_dev);
>> > >      VirtIODevice *vdev = virtio_bus_get_device(&proxy->bus);
>> > > 
>> > > +    uint8_t cmd = proxy->pci_dev.config[PCI_COMMAND];
>> > > +
>> > >      pci_default_write_config(pci_dev, address, val, len);
>> > > 
>> > >      if (range_covers_byte(address, len, PCI_COMMAND) &&
>> > >          !(pci_dev->config[PCI_COMMAND] & PCI_COMMAND_MASTER) &&
>> > > -        !(proxy->flags & VIRTIO_PCI_FLAG_BUS_MASTER_BUG)) {
>> > > +        (cmd & PCI_COMMAND_MASTER)) {
>> > > +        /* Bus driver disables bus mastering - make it act
>> > > +         * as a kind of reset to render the device quiescent. */
>> > >          virtio_pci_stop_ioeventfd(proxy);
>> > > -        virtio_set_status(vdev, vdev->status & ~VIRTIO_CONFIG_S_DRIVER_OK);
>> > > +        virtio_reset(vdev);
>> > > +        msix_unuse_all_vectors(&proxy->pci_dev);
>> > >      }
>> > >  }
>> > > 
>> 

Regards
Nikunj

  reply	other threads:[~2014-09-26  9:19 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-18 18:54 [Qemu-devel] [PULL v3 00/15] pci, pc, virtio, misc bugfixes Michael S. Tsirkin
2014-09-18 18:54 ` [Qemu-devel] [PULL v3 01/15] hw/machine: Free old values of string properties Michael S. Tsirkin
2014-09-18 18:54 ` [Qemu-devel] [PULL v3 02/15] test-qdev-global-props: Trivial comment fix Michael S. Tsirkin
2014-09-18 18:54 ` [Qemu-devel] [PULL v3 03/15] tests: disable global props test for old glib Michael S. Tsirkin
2014-09-18 18:54 ` [Qemu-devel] [PULL v3 04/15] test-qdev-global-props: Run tests on subprocess Michael S. Tsirkin
2014-09-18 18:54 ` [Qemu-devel] [PULL v3 05/15] test-qdev-global-props: Initialize not_used=true for all props Michael S. Tsirkin
2014-09-18 18:54 ` [Qemu-devel] [PULL v3 06/15] test-qdev-global-props: Test handling of hotpluggable and non-device types Michael S. Tsirkin
2014-09-18 18:54 ` [Qemu-devel] [PULL v3 07/15] qdev: Rename qdev_prop_check_global() to qdev_prop_check_globals() Michael S. Tsirkin
2014-09-18 18:54 ` [Qemu-devel] [PULL v3 08/15] qdev: Move global validation to a single function Michael S. Tsirkin
2014-09-18 18:54 ` [Qemu-devel] [PULL v3 09/15] Revert "rng-egd: remove redundant free" Michael S. Tsirkin
2014-09-18 18:54 ` [Qemu-devel] [PULL v3 10/15] virtio-net: drop assert on vm stop Michael S. Tsirkin
2014-09-18 18:54 ` [Qemu-devel] [PULL v3 11/15] Revert "virtio: don't call device on !vm_running" Michael S. Tsirkin
2014-09-18 18:54 ` [Qemu-devel] [PULL v3 12/15] virtio-pci: enable bus master for old guests Michael S. Tsirkin
2014-09-18 18:54 ` [Qemu-devel] [PULL v3 13/15] vhost-user: fix VIRTIO_NET_F_MRG_RXBUF negotiation Michael S. Tsirkin
2014-09-18 18:54 ` [Qemu-devel] [PULL v3 14/15] virtio-pci: fix migration for pci bus master Michael S. Tsirkin
2014-09-22 17:28   ` Greg Kurz
2014-09-23  4:26     ` Michael S. Tsirkin
2014-09-24 17:20       ` Greg Kurz
2014-09-26  9:19         ` Nikunj A Dadhania [this message]
2014-09-29 16:15     ` Michael S. Tsirkin
2014-09-29 21:30       ` Greg Kurz
2014-09-30  5:03         ` Nikunj A Dadhania
2014-09-18 18:55 ` [Qemu-devel] [PULL v3 15/15] pc: leave more space for BIOS allocations Michael S. Tsirkin
2014-09-18 21:46 ` [Qemu-devel] [PULL v3 00/15] pci, pc, virtio, misc bugfixes Peter Maydell

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=87vboabuy4.fsf@linux.vnet.ibm.com \
    --to=nikunj@linux.vnet.ibm.com \
    --cc=agraf@suse.de \
    --cc=aliguori@amazon.com \
    --cc=gkurz@linux.vnet.ibm.com \
    --cc=jasowang@redhat.com \
    --cc=mst@redhat.com \
    --cc=peter.maydell@linaro.org \
    --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).