From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sasha Levin Subject: Re: [PATCH] kvm tools: PCI -- Make PCI device numbers being unique Date: Sun, 08 May 2011 21:48:09 +0300 Message-ID: <1304880489.12850.9.camel@lappy> References: <4DC6E111.805@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Pekka Enberg , Ingo Molnar , Asias He , Prasad Joshi , kvm-vger To: Cyrill Gorcunov Return-path: Received: from mail-ww0-f44.google.com ([74.125.82.44]:58481 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755378Ab1EHSsZ (ORCPT ); Sun, 8 May 2011 14:48:25 -0400 Received: by wwa36 with SMTP id 36so5074576wwa.1 for ; Sun, 08 May 2011 11:48:23 -0700 (PDT) In-Reply-To: <4DC6E111.805@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: On Sun, 2011-05-08 at 22:29 +0400, Cyrill Gorcunov wrote: > Index: linux-2.6.git/tools/kvm/virtio/rng.c > ===================================================================== > --- linux-2.6.git.orig/tools/kvm/virtio/rng.c > +++ linux-2.6.git/tools/kvm/virtio/rng.c > @@ -178,5 +178,5 @@ void virtio_rng__init(struct kvm *kvm) > virtio_rng_pci_device.irq_line = line; > pci__register(&virtio_rng_pci_device, dev); > > - ioport__register(IOPORT_VIRTIO_RNG, &virtio_rng_io_ops, IOPORT_VIRTIO_RNG_SIZE); > + ioport__register(PCI_DEVICE_VIRTIO_RNG, &virtio_rng_io_ops, IOPORT_VIRTIO_RNG_SIZE); > } I think you wanted to change irq__register_device, not ioport__register in virtio-rng. -- Sasha.