From: Sasha Levin Date: Fri, 11 Nov 2011 22:02:21 +0000 (+0200) Subject: kvm tools: Fix parameter to virtio device features config X-Git-Tag: next-20111115~2^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=70e4f64d16467ed53d17470ae7e9739b0d6fa03a;p=karo-tx-linux.git 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 --- 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);