qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-ppc] [PATCH|RFC 0/1] Fix PCI hotplug on pseries guest


From: Laurent Vivier
Subject: [Qemu-ppc] [PATCH|RFC 0/1] Fix PCI hotplug on pseries guest
Date: Wed, 22 Jul 2015 13:54:58 +0200

When hotplugging a new PCI card, for instance virtio-net-pci, into pseries
guest the card appears on the PCI bus but it is not usable.

virto-net module probe fails with -2. This is because virtqs cannot be
accessed.

The kernel affects address 0 for BAR0 I/O:

    pci 0000:00:01.0: BAR 0: assigned [io  0x10000-0x1001f]

whereas QEMU ignores it (info qtree):

    bar 0: i/o at 0xffffffffffffffff [0x1e]

Michael has already sent a patch to fix this issue, but this fix is
common for all architectures. I have tried to modify it to only
change PCI behavior conditionally.

Michael Roth (1):
  pci: allow 0 address for PCI IO/MEM regions

 hw/pci/pci.c             | 9 ++++++---
 hw/ppc/spapr_pci.c       | 1 +
 include/hw/pci/pci_bus.h | 5 +++++
 3 files changed, 12 insertions(+), 3 deletions(-)

-- 
2.1.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]