kvm tools: Fix parameter to virtio device features config
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.
Signed-off-by Sasha Levin <[email protected]>
--- tools/kvm/virtio/pci.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
tools/kvm/virtio/pci.c +1 -1
@@ -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