From 70e4f64d16467ed53d17470ae7e9739b0d6fa03a Mon Sep 17 00:00:00 2001 From: Sasha Levin Date: Sat, 12 Nov 2011 00:02:21 +0200 Subject: [PATCH] kvm tools: Fix parameter to virtio device features config Commit ef10d0b ("kvm tools: Add abstract virtio transport layer") config updates by passing wrong argument to set_config(), this patch fixes it. Signed-off-by: Sasha Levin Signed-off-by: Pekka Enberg --- tools/kvm/virtio/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kvm/virtio/pci.c b/tools/kvm/virtio/pci.c index 85994f879003..1660f060446d 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); -- 2.39.5