From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: Re: [PATCH linux-2.6.18-xen] blktap: make max # of tap devices a module parameter Date: Wed, 23 Feb 2011 09:42:23 +0000 Message-ID: <4D64E48F0200007800033411@vpn.id2.novell.com> References: <4D63C644.1000503@redhat.com> <4D63E918020000780003327C@vpn.id2.novell.com> <4D63F3B7.90108@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4D63F3B7.90108@redhat.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Laszlo Ersek Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org >>> On 22.02.11 at 18:34, Laszlo Ersek wrote: > On 02/22/11 16:49, Jan Beulich wrote: >>>>> On 22.02.11 at 15:20, Laszlo Ersek wrote: >>> Hi, >>> >>> should anybody still use the blktap(1) driver in linux-2.6.18-xen, the >>> following patch intends to make the maximum number of tapdevs >>> configurable at module insertion time. The number is clamped to [256 = .. >>> NR_EVENT_CHANNELS]. I removed the definition of MAX_DEV_NAME because = it >>> didn't seem to be used at all. >>> >>> Thanks for considering, >>> Laszlo Ersek >> >> Without replacing the call to register_chrdev() with one to >> __register_chrdev() (available only with 2.6.32 and newer) I >> can't see how you would get beyond 256 devices with the >> changes you propose. >=20 > Oops, sorry; I naively assumed that minor device numbers were already=20 > covered by an earlier change. >=20 > I figure register_chrdev() could be reimplemented in blktap, based on=20 > lower-level char_dev.c (and kobject) primitives, but I'm not sure if = the=20 > original goal is worth that ugliness. In any case, should I bother=20 > posting a version like that eventually, or would it have no chance of=20 > being accepted? I too had thought about doing this in the past, but decided there#s not much point in it. Jan