From patchwork Wed Aug 17 09:44:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: walimis X-Patchwork-Id: 1073422 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p7HA1OL0027570 for ; Wed, 17 Aug 2011 10:01:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752521Ab1HQKBW (ORCPT ); Wed, 17 Aug 2011 06:01:22 -0400 Received: from mail.windriver.com ([147.11.1.11]:47872 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752413Ab1HQKBV (ORCPT ); Wed, 17 Aug 2011 06:01:21 -0400 Received: from ALA-HCA.corp.ad.wrs.com (ala-hca [147.11.189.40]) by mail.windriver.com (8.14.3/8.14.3) with ESMTP id p7HA14Va003433 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 17 Aug 2011 03:01:04 -0700 (PDT) Received: from localhost.localdomain (128.224.162.211) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.1.255.0; Wed, 17 Aug 2011 03:01:03 -0700 From: Liming Wang To: Pekka Enberg CC: Sasha Levin , Ingo Molnar , Subject: [PATCH 1/2] kvm tools: fix wrong virtio id for balloon Date: Wed, 17 Aug 2011 17:44:53 +0800 Message-ID: <1313574294-23123-1-git-send-email-walimisdev@gmail.com> X-Mailer: git-send-email 1.7.0.4 MIME-Version: 1.0 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 17 Aug 2011 10:01:25 +0000 (UTC) Replace the wrong rng virtio id with the correct balloon id. Signed-off-by: Liming Wang --- 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;