Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753720AbWL2Isj (ORCPT ); Fri, 29 Dec 2006 03:48:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965031AbWL2Isj (ORCPT ); Fri, 29 Dec 2006 03:48:39 -0500 Received: from nf-out-0910.google.com ([64.233.182.187]:18681 "EHLO nf-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753720AbWL2Isj (ORCPT ); Fri, 29 Dec 2006 03:48:39 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=PEGuCGhbW9ykChODdRm/9qf+ePKeJOKQ8xiyUI2xLIDgJYdIy+7OJcvW8Nim275KbdrR9rNIWlP9R9ZzGR0adXWuttl4zs/Sq1NRMIiDTfnMe4IbMkTRAXaNuzfjgZEK8VpFF9PZe82HQx9koupAGlyr+qppP0EoI1Ujg/ctEJQ= Message-ID: Date: Fri, 29 Dec 2006 16:48:37 +0800 From: "Jeff Chua" To: "Arnd Bergmann" Subject: Re: open /dev/kvm: No such file or directory Cc: "Avi Kivity" , "Dor Laor" , lkml , "Greg KH" In-Reply-To: <200612290650.28508.arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4593E7EB.7070801@argo.co.il> <200612290650.28508.arnd@arndb.de> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 852 Lines: 25 On 12/29/06, Arnd Bergmann wrote: > On Thursday 28 December 2006 16:51, Avi Kivity wrote: > > Greg, /dev/kvm is a MISC_DYNAMIC_MINOR device. Is there any way of > > using it without udev? Should I allocate a static number? > > You can write a small script that parses /proc/misc and creates the device, > like > > # /sbin/mknod /dev/kvm c 10 `grep '\' /proc/misc | cut -f 1 -d\ ` > > If you already have an init script, e.g. to set up tun/tap devices, > it would make sense to put it in there. > > Arnd <>< > That works. That's exacting what I'm looking for. Thank you, Jeff. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/