diff mbox

[1/2] kvm tools: fix wrong virtio id for balloon

Message ID 1313574294-23123-1-git-send-email-walimisdev@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

walimis Aug. 17, 2011, 9:44 a.m. UTC
Replace the wrong rng virtio id with the correct balloon id.

Signed-off-by: Liming Wang <walimisdev@gmail.com>
---
 tools/kvm/virtio/balloon.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

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;