From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CzQ4u-0007ze-Jh for qemu-devel@nongnu.org; Thu, 10 Feb 2005 20:58:40 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CzQ4s-0007vy-Ix for qemu-devel@nongnu.org; Thu, 10 Feb 2005 20:58:39 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CzQ4s-0007th-0l for qemu-devel@nongnu.org; Thu, 10 Feb 2005 20:58:38 -0500 Received: from [65.19.178.186] (helo=pythonhacker.is-a-geek.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CzPoJ-00028k-2A for qemu-devel@nongnu.org; Thu, 10 Feb 2005 20:41:31 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by pythonhacker.is-a-geek.net (Postfix) with ESMTP id 8332A403D5 for ; Thu, 10 Feb 2005 20:41:30 -0500 (EST) Received: from pythonhacker.is-a-geek.net ([127.0.0.1]) by localhost (pythonhacker.is-a-geek.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18969-02 for ; Thu, 10 Feb 2005 20:41:12 -0500 (EST) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by pythonhacker.is-a-geek.net (Postfix) with ESMTP id 8AA52403CF for ; Thu, 10 Feb 2005 20:41:06 -0500 (EST) From: Darryl Dixon In-Reply-To: <1108084799.5629.3.camel@localhost.localdomain> References: <1108084799.5629.3.camel@localhost.localdomain> Content-Type: multipart/alternative; boundary="=-7823/xnr+JRhE4KQNIAB" Date: Fri, 11 Feb 2005 14:41:04 +1300 Message-Id: <1108086064.5629.8.camel@localhost.localdomain> Mime-Version: 1.0 Subject: [Qemu-devel] [PATCH] Re: KQEMU error, unable to get major 254 Reply-To: esrever_otua@pythonhacker.is-a-geek.net, 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 --=-7823/xnr+JRhE4KQNIAB Content-Type: text/plain Content-Transfer-Encoding: 7bit I have worked around this temporarily with the following patch: diff -ru qemu/kqemu/install.sh qemu_major250/kqemu/install.sh --- qemu/kqemu/install.sh 2005-02-11 11:10:28.000000000 +1300 +++ qemu_major250/kqemu/install.sh 2005-02-11 14:24:04.000000000 +1300 @@ -20,5 +20,5 @@ # Create the kqemu device. No special priviledge is needed to use kqemu. device="/dev/kqemu" rm -f $device -mknod $device c 254 0 +mknod $device c 250 0 chmod 666 $device Only in qemu_major250/kqemu: .kmod.o.cmd diff -ru qemu/kqemu/kqemu.h qemu_major250/kqemu/kqemu.h --- qemu/kqemu/kqemu.h 2005-02-11 11:10:28.000000000 +1300 +++ qemu_major250/kqemu/kqemu.h 2005-02-11 14:23:46.000000000 +1300 @@ -1,7 +1,7 @@ #ifndef KQEMU_H #define KQEMU_H -#define KQEMU_MAJOR 254 +#define KQEMU_MAJOR 250 #define KQEMU_VERSION 0x010000 Cheers, D On Fri, 2005-02-11 at 14:19 +1300, Darryl Dixon wrote: > Hi Fabrice, > > I have managed to download the latest cvs and tried it out on > Fedora Core 3 (kernel 2.6.10). It seems that for some reason the > kqemu module is unable to be assigned major device number 254. Below > are the errors: > [root@localhost ~]# modprobe kqemu > FATAL: Error inserting kqemu > (/lib/modules/2.6.10-1.760_FC3/misc/kqemu.ko): Device or resource busy > [root@localhost ~]# tail /var/log/messages > Feb 11 14:14:07 localhost kernel: QEMU Accelerator Module version > 1.0.0, Copyright (c) 2005 Fabrice Bellard > Feb 11 14:14:07 localhost kernel: This is a proprietary product. Read > the LICENSE file for more information > Feb 11 14:14:07 localhost kernel: Redistribution of this module is > prohibited without authorization > Feb 11 14:14:07 localhost kernel: kqemu: could not get major 254 > > > Regards, > -- > Darryl Dixon -- Darryl Dixon --=-7823/xnr+JRhE4KQNIAB Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit I have worked around this temporarily with the following patch:

diff -ru qemu/kqemu/install.sh qemu_major250/kqemu/install.sh
--- qemu/kqemu/install.sh       2005-02-11 11:10:28.000000000 +1300
+++ qemu_major250/kqemu/install.sh      2005-02-11 14:24:04.000000000 +1300
@@ -20,5 +20,5 @@
# Create the kqemu device. No special priviledge is needed to use kqemu.
device="/dev/kqemu"
rm -f $device
-mknod $device c 254 0
+mknod $device c 250 0
chmod 666 $device
Only in qemu_major250/kqemu: .kmod.o.cmd
diff -ru qemu/kqemu/kqemu.h qemu_major250/kqemu/kqemu.h
--- qemu/kqemu/kqemu.h  2005-02-11 11:10:28.000000000 +1300
+++ qemu_major250/kqemu/kqemu.h 2005-02-11 14:23:46.000000000 +1300
@@ -1,7 +1,7 @@
#ifndef KQEMU_H
#define KQEMU_H

-#define KQEMU_MAJOR 254
+#define KQEMU_MAJOR 250

#define KQEMU_VERSION 0x010000



Cheers,
D




On Fri, 2005-02-11 at 14:19 +1300, Darryl Dixon wrote:
Hi Fabrice,

    I have managed to download the latest cvs and tried it out on Fedora Core 3 (kernel 2.6.10).  It seems that for some reason the kqemu module is unable to be assigned major device number 254.  Below are the errors:
[root@localhost ~]# modprobe kqemu
FATAL: Error inserting kqemu (/lib/modules/2.6.10-1.760_FC3/misc/kqemu.ko): Device or resource busy
[root@localhost ~]# tail /var/log/messages
Feb 11 14:14:07 localhost kernel: QEMU Accelerator Module version 1.0.0, Copyright (c) 2005 Fabrice Bellard
Feb 11 14:14:07 localhost kernel: This is a proprietary product. Read the LICENSE file for more information
Feb 11 14:14:07 localhost kernel: Redistribution of this module is prohibited without authorization
Feb 11 14:14:07 localhost kernel: kqemu: could not get major 254


Regards,
--
Darryl Dixon <esrever_otua@pythonhacker.is-a-geek.net>
--
Darryl Dixon <esrever_otua@pythonhacker.is-a-geek.net>
--=-7823/xnr+JRhE4KQNIAB--