mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-08-23 06:28:00 +00:00
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:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user