kvm tools: Use correct offset for virtio-net config space

This patch fixes the read action of virtio-net config by not
handling reads to the start of the space as MSI related
operations.

This fixes the MAC configuration of the device and makes uip network
work again.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
Sasha Levin
2011-08-11 23:41:51 +03:00
committed by Will Deacon
parent 8f239c8492
commit f79538434d
-6
View File
@@ -221,12 +221,6 @@ static bool virtio_net_pci_io_in(struct ioport *ioport, struct kvm *kvm, u16 por
kvm__irq_line(kvm, pci_header.irq_line, VIRTIO_IRQ_LOW);
ndev.isr = VIRTIO_IRQ_LOW;
break;
case VIRTIO_MSI_CONFIG_VECTOR:
ioport__write16(data, ndev.config_vector);
break;
case VIRTIO_MSI_QUEUE_VECTOR:
ioport__write16(data, ndev.vq_vector[ndev.queue_selector]);
break;
default:
ret = virtio_net_pci_io_device_specific_in(data, offset, size, count);
};