From: "Stephen C. Tweedie" Subject: Re: Help/problems with blktap on xen-unstable Date: Tue, 26 Sep 2006 12:40:02 +0100 Message-ID: <1159270802.7649.7.camel@sisko.scot.redhat.com> References: <4510E1C0.7020405@rolandpj.com> <1158747512.32181.7.camel@leto.intern.saout.de> <45118A05.2030909@redhat.com> <45123C4B.1020205@rolandpj.com> <45127E5A.1090202@redhat.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <45127E5A.1090202@redhat.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Steven Rostedt Cc: Roland Paterson-Jones , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Hi, On Thu, 2006-09-21 at 07:58 -0400, Steven Rostedt wrote: > As a miscellaneous device, it no longer has a major number. All > versions would become a miscellaneous device. So instead of having a > blktap major, and the minor pointing to each of the blktap descriptors > in the array, you would record the minor in the descriptor, and among > opening the device, you need to search the descriptors to find the minor > that matches the opened device. There's an easy way to do both, I think. We already have an ioctl to return the blktap major, so simply registering the control device as a misc device and then allocating the major for the full set of domain devices dynamically should work. --Stephen