Commit-ID: 6478ce1416aacf1ce35530f79ea035f89fb21e90 Gitweb: http://git.kernel.org/tip/6478ce1416aacf1ce35530f79ea035f89fb21e90 Author: Sasha Levin <sasha.levin@xxxxxxxxxx> AuthorDate: Wed, 5 Mar 2014 23:08:16 -0500 Committer: Pekka Enberg <penberg@xxxxxxxxxx> CommitDate: Thu, 6 Mar 2014 18:49:56 +0200 kvm tools: mark our PCI card as PIO and MMIO able A recent -next patch named "PCI: Ignore BAR contents when firmware left decoding disabled" has pointed out that PCI cards are supposed to declare that they have either PIO or MMIO BARs by disabling them if it didn't. Fix it by correctly marking our emulated PCI card as PIO/MMIO enabled. Signed-off-by: Sasha Levin <sasha.levin@xxxxxxxxxx> Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxx> --- tools/kvm/virtio/pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/kvm/virtio/pci.c b/tools/kvm/virtio/pci.c index fa7aa00..665d492 100644 --- a/tools/kvm/virtio/pci.c +++ b/tools/kvm/virtio/pci.c @@ -360,6 +360,7 @@ int virtio_pci__init(struct kvm *kvm, void *dev, struct virtio_device *vdev, vpci->pci_hdr = (struct pci_device_header) { .vendor_id = cpu_to_le16(PCI_VENDOR_ID_REDHAT_QUMRANET), .device_id = cpu_to_le16(device_id), + .command = PCI_COMMAND_IO | PCI_COMMAND_MEMORY, .header_type = PCI_HEADER_TYPE_NORMAL, .revision_id = 0, .class[0] = class & 0xff, -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
![]() |