[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PULL v3 14/15] virtio-pci: fix migration for pci bus m
From: |
Nikunj A Dadhania |
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 |
User-agent: |
Notmuch/0.17+27~gae47d61 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-redhat-linux-gnu) |
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 <address@hidden> writes:
> On Tue, 23 Sep 2014 07:26:32 +0300
> "Michael S. Tsirkin" <address@hidden> wrote:
>
>> >
>> > This commit prevents pseries to boot. SLOF complains with the following
>> > messages:
>> >
>> > Trying to load: from: /address@hidden/address@hidden ... 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
- [Qemu-devel] [PULL v3 09/15] Revert "rng-egd: remove redundant free", (continued)
- [Qemu-devel] [PULL v3 09/15] Revert "rng-egd: remove redundant free", Michael S. Tsirkin, 2014/09/18
- [Qemu-devel] [PULL v3 10/15] virtio-net: drop assert on vm stop, Michael S. Tsirkin, 2014/09/18
- [Qemu-devel] [PULL v3 11/15] Revert "virtio: don't call device on !vm_running", Michael S. Tsirkin, 2014/09/18
- [Qemu-devel] [PULL v3 13/15] vhost-user: fix VIRTIO_NET_F_MRG_RXBUF negotiation, Michael S. Tsirkin, 2014/09/18
- [Qemu-devel] [PULL v3 12/15] virtio-pci: enable bus master for old guests, Michael S. Tsirkin, 2014/09/18
- [Qemu-devel] [PULL v3 15/15] pc: leave more space for BIOS allocations, Michael S. Tsirkin, 2014/09/18
- [Qemu-devel] [PULL v3 14/15] virtio-pci: fix migration for pci bus master, Michael S. Tsirkin, 2014/09/18
- Re: [Qemu-devel] [PULL v3 14/15] virtio-pci: fix migration for pci bus master, Michael S. Tsirkin, 2014/09/29
- Re: [Qemu-devel] [PULL v3 14/15] virtio-pci: fix migration for pci bus master, Greg Kurz, 2014/09/29
- Re: [Qemu-devel] [PULL v3 14/15] virtio-pci: fix migration for pci bus master, Nikunj A Dadhania, 2014/09/30
[Qemu-devel] [PULL v3 01/15] hw/machine: Free old values of string properties, Michael S. Tsirkin, 2014/09/18
Re: [Qemu-devel] [PULL v3 00/15] pci, pc, virtio, misc bugfixes, Peter Maydell, 2014/09/18