Skip to contentSkip to conversation

kvm tools: Fix parameter to virtio device features config

PATCH New Sasha Levin 1 participant 1 message Nov 11, 2011 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvm tools: Fix parameter to virtio device features config

Commit ef10d0bfc95f72bebd37a2ef7205bf2d1f68d162 broke config updates by passing wrong argument to set_config(), this patch fixes it.

---
 tools/kvm/virtio/pci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tools/kvm/virtio/pci.c +1 -1
index 85994f8..1660f06 100644
@@ -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);
Signature · 1 line
1.7.7.2