From f79538434d5aa044a22b5a87c3c24f560ea18d27 Mon Sep 17 00:00:00 2001 From: Sasha Levin Date: Thu, 11 Aug 2011 23:41:51 +0300 Subject: [PATCH] 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 Signed-off-by: Pekka Enberg --- virtio/net.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/virtio/net.c b/virtio/net.c index 35d4997..a74f1e7 100644 --- a/virtio/net.c +++ b/virtio/net.c @@ -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); };