From: Sasha Levin Subject: [PATCH] kvm tools: Fix parameter to virtio device features config Date: Sat, 12 Nov 2011 00:02:21 +0200 Message-ID: <1321048941-25817-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-bw0-f46.google.com ([209.85.214.46]:65282 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753751Ab1KKWEV (ORCPT ); Fri, 11 Nov 2011 17:04:21 -0500 Received: by mail-bw0-f46.google.com with SMTP id 11so3672118bke.19 for ; Fri, 11 Nov 2011 14:04:20 -0800 (PST) Sender: kvm-owner@vger.kernel.org List-ID: Commit ef10d0bfc95f72bebd37a2ef7205bf2d1f68d162 broke config updates by passing wrong argument to set_config(), this patch fixes it. Signed-off-by: Sasha Levin --- tools/kvm/virtio/pci.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/kvm/virtio/pci.c b/tools/kvm/virtio/pci.c index 85994f8..1660f06 100644 --- a/tools/kvm/virtio/pci.c +++ b/tools/kvm/virtio/pci.c @@ -181,7 +181,7 @@ static bool virtio_pci__io_out(struct ioport *ioport, struct kvm *kvm, u16 port, switch (offset) { case VIRTIO_PCI_GUEST_FEATURES: val = ioport__read32(data); - vtrans->virtio_ops->set_guest_features(kvm, vpci, val); + vtrans->virtio_ops->set_guest_features(kvm, vpci->dev, val); break; case VIRTIO_PCI_QUEUE_PFN: val = ioport__read32(data); -- 1.7.7.2