Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DFNUJ-0004oN-RI for qemu-devel@nongnu.org; Sat, 26 Mar 2005 21:26:51 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DFNUE-0004kL-O0 for qemu-devel@nongnu.org; Sat, 26 Mar 2005 21:26:48 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DFNUB-0004eW-6s for qemu-devel@nongnu.org; Sat, 26 Mar 2005 21:26:43 -0500 Received: from [211.29.132.199] (helo=mail18.syd.optusnet.com.au) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1DFMpe-0007XZ-RX for qemu-devel@nongnu.org; Sat, 26 Mar 2005 20:44:51 -0500 Received: from nell (c220-237-34-67.brasd1.vic.optusnet.com.au [220.237.34.67]) by mail18.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id j2R1ijoD023929 (version=TLSv1/SSLv3 cipher=DES-CBC3-SHA bits=168 verify=NO) for ; Sun, 27 Mar 2005 11:44:46 +1000 Received: from michaelg by nell with local (Exim 4.50) id 1DFMvN-0006lI-Q6 for qemu-devel@nongnu.org; Sun, 27 Mar 2005 11:50:46 +1000 From: Michael Geddes Date: Sun, 27 Mar 2005 12:50:39 +1100 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2754013.GrNHYLEm18"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200503271150.45678.michaelrgeddes@optusnet.com.au> Subject: [Qemu-devel] KQemu - devfs patch Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --nextPart2754013.GrNHYLEm18 Content-Type: multipart/mixed; boundary="Boundary-01=_wFhRC/M3bil+kbV" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-01=_wFhRC/M3bil+kbV Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi all, I have been very impressed with qemu, and in particular KQemu, and have got= =20 WinXP up and running (after some aborted attempts last year) with no troubl= e=20 this time. Anyway, I'm a devfs user, and until udev is a little more mature, will rema= in=20 so. Here's a wee patch to make the /dev/kqemu device appear under devfs. Does there also need to be a sysfs patch to provide the 'dev' entry to assi= st=20 with udev? I'm not really sure of the S_IFCHR|S_IRUGO|S_IWUGO options to the=20 devfs_mk_cdev, but it seems to work. //.ichael G. --Boundary-01=_wFhRC/M3bil+kbV Content-Type: text/x-diff; charset="us-ascii"; name="kmod_patch.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="kmod_patch.diff" *** ../../kqemu/kmod.c 2005-02-11 09:09:09.000000000 +1100 =2D-- kmod.c 2005-03-25 09:33:14.000000000 +1100 *************** *** 15,20 **** =2D-- 15,21 ---- #include #include #include + #include =20 #include "kqemu.h" =20 *************** *** 303,312 **** =2D-- 304,315 ---- printk("KQEMU installed, max_instances=3D%d max_locked_mem=3D%dkB.\n", KQEMU_MAX_INSTANCES,=20 max_locked_pages * 4); + devfs_mk_cdev(MKDEV(KQEMU_MAJOR,0), S_IFCHR|S_IRUGO|S_IWUGO, "kqemu"); return 0; } =20 void cleanup_module(void) { unregister_chrdev(KQEMU_MAJOR, "kqemu"); + devfs_remove("kqemu"); } --Boundary-01=_wFhRC/M3bil+kbV-- --nextPart2754013.GrNHYLEm18 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQBCRhF1f50yc9c7WncRAk1HAKCHO/noRnBG1uA9QQQqV6AFY3bhVQCgh9rP zd44DN3V9bnnbj79o4wmMXY= =dO0g -----END PGP SIGNATURE----- --nextPart2754013.GrNHYLEm18--