Replace the wrong rng virtio id with the correct balloon id.

Signed-off-by: Liming Wang <[email protected]>
---
 tools/kvm/virtio/balloon.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/kvm/virtio/balloon.c b/tools/kvm/virtio/balloon.c
index c5853a5..aba52d6 100644
--- a/tools/kvm/virtio/balloon.c
+++ b/tools/kvm/virtio/balloon.c
@@ -356,7 +356,7 @@ void virtio_bln__init(struct kvm *kvm)
 
        bdev.base_addr = bdev_base_addr;
 
-       if (irq__register_device(VIRTIO_ID_RNG, &dev, &pin, &line) < 0)
+       if (irq__register_device(VIRTIO_ID_BALLOON, &dev, &pin, &line) < 0)
                return;
 
        bdev.pci_hdr.irq_pin    = pin;
-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to