From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sasha Levin Subject: [PATCH 2/2] kvm tools: Use correct offset for virtio-net config space Date: Thu, 11 Aug 2011 23:41:51 +0300 Message-ID: <1313095311-7413-2-git-send-email-levinsasha928@gmail.com> References: <1313095311-7413-1-git-send-email-levinsasha928@gmail.com> Cc: kvm@vger.kernel.org, mingo@elte.hu, asias.hejun@gmail.com, gorcunov@gmail.com, Sasha Levin To: penberg@kernel.org Return-path: Received: from mail-wy0-f174.google.com ([74.125.82.174]:60290 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753707Ab1HKUnA (ORCPT ); Thu, 11 Aug 2011 16:43:00 -0400 Received: by wyg24 with SMTP id 24so1693341wyg.19 for ; Thu, 11 Aug 2011 13:42:58 -0700 (PDT) In-Reply-To: <1313095311-7413-1-git-send-email-levinsasha928@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: 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 --- tools/kvm/virtio/net.c | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/tools/kvm/virtio/net.c b/tools/kvm/virtio/net.c index 35d4997..a74f1e7 100644 --- a/tools/kvm/virtio/net.c +++ b/tools/kvm/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); }; -- 1.7.6