[Qemu-devel] Re: Qemu-devel Digest, Vol 50, Issue 70

2007-05-30 Thread Clemens Kolbitsch

[EMAIL PROTECTED] wrote:

Send Qemu-devel mailing list submissions to
qemu-devel@nongnu.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.nongnu.org/mailman/listinfo/qemu-devel
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]

You can reach the person managing the list at
[EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than Re: Contents of Qemu-devel digest...


Today's Topics:

   1. qemu vl.c (Paul Brook)
   2. QEMU/PCI shutdown event (Clemens Kolbitsch)
   3. qemu/hw pxa.h pxa2xx.c (Andrzej Zaborowski)
   4. RE: QEMU/PCI shutdown event (Dor Laor)
   5. kqemu and 2.6.22-rc3 (Xavier Gnata)
   6. qemu mips-dis.c (Thiemo Seufer)
   7. qemu/linux-user syscall.c (Thiemo Seufer)
   8. Re: qemu/linux-user syscall.c (Paul Brook)


--

Message: 1
Date: Mon, 28 May 2007 02:29:59 +
From: Paul Brook [EMAIL PROTECTED]
Subject: [Qemu-devel] qemu vl.c
To: qemu-devel@nongnu.org
Message-ID: [EMAIL PROTECTED]

CVSROOT:/sources/qemu
Module name:qemu
Changes by: Paul Brook pbrook   07/05/28 02:29:59

Modified files:
	.  : vl.c 


Log message:
Fix tap device counting.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/vl.c?cvsroot=qemur1=1.302r2=1.303




--

Message: 2
Date: Mon, 28 May 2007 13:05:29 +0200
From: Clemens Kolbitsch [EMAIL PROTECTED]
Subject: [Qemu-devel] QEMU/PCI shutdown event
To: qemu-devel@nongnu.org
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

hi everyone!
i'm programming a pci-device that includes some threads  
socket-connections (that allow remote debugging of my device).


however, i want to cleanly shutdown all threads and sockets when qemu 
exits... is there an easy way of getting informed of a qemu shutdown?


(something similar to pci_device_init...)

thanks!!




--

Message: 3
Date: Mon, 28 May 2007 11:26:16 +
From: Andrzej Zaborowski [EMAIL PROTECTED]
Subject: [Qemu-devel] qemu/hw pxa.h pxa2xx.c
To: qemu-devel@nongnu.org
Message-ID: [EMAIL PROTECTED]

CVSROOT:/sources/qemu
Module name:qemu
Changes by: Andrzej Zaborowski balrog   07/05/28 11:26:16

Modified files:
	hw : pxa.h pxa2xx.c 


Log message:
Remove a local subpage IO hack, now that general subpage IO works.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/pxa.h?cvsroot=qemur1=1.5r2=1.6
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/pxa2xx.c?cvsroot=qemur1=1.13r2=1.14




--

Message: 4
Date: Mon, 28 May 2007 04:46:41 -0700
From: Dor Laor [EMAIL PROTECTED]
Subject: RE: [Qemu-devel] QEMU/PCI shutdown event
To: qemu-devel@nongnu.org
Message-ID:
[EMAIL PROTECTED]

Content-Type: text/plain;   charset=us-ascii

  

hi everyone!
i'm programming a pci-device that includes some threads 
socket-connections (that allow remote debugging of my device).

however, i want to cleanly shutdown all threads and sockets when qemu
exits... is there an easy way of getting informed of a qemu shutdown?

(something similar to pci_device_init...)

thanks!!




You can use qemu_register_reset handler.
Note that it get's called when the guests exits but not if you just quit
the monitor.
  

dear qemu-developers,
i think it would be very helpful, if such a possibility exists.. maybe 
you could consider implementing this in a future release :-)


just a suggestion ;-)

greets!




Re: [Qemu-devel] Regression bug

2007-05-30 Thread Ben Taylor

 Blue Swirl [EMAIL PROTECTED] wrote: 
 On 5/29/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  On Tue, May 29, 2007 at 09:44:39PM +0300, Blue Swirl wrote:
   Hi,
  
   I found a bug in the subpage checking code. Could you try if the
   attached patch fixes the problem?
 
  thats a negative. the exact same behavior as before.
 
 Thanks.
 
 The bug was actually that on PC, the very last addresses are mapped,
 and the current code failed when the start_addr + size wrapped back to
 0. That didn't happen on amd64, where I first tried to reproduce the
 bug.
 
 The attached patch fixes the problem for me, I'll commit it if there
 are no objections.

Works for me, too.

Ben





[Qemu-devel] qemu exec.c

2007-05-30 Thread Blue Swirl
CVSROOT:/cvsroot/qemu
Module name:qemu
Changes by: Blue Swirl blueswir1  07/05/30 17:25:06

Modified files:
.  : exec.c 

Log message:
Fix the bug introduced by subpage code preventing PC boot

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/exec.c?cvsroot=qemur1=1.97r2=1.98




RE: [Qemu-devel] QEMU/PCI shutdown event

2007-05-30 Thread Clemens Kolbitsch



hi everyone!
i'm programming a pci-device that includes some threads 
socket-connections (that allow remote debugging of my device).

however, i want to cleanly shutdown all threads and sockets when qemu
exits... is there an easy way of getting informed of a qemu shutdown?

(something similar to pci_device_init...)

thanks!!


  

You can use qemu_register_reset handler.
Note that it get's called when the guests exits but not if you just quit
the monitor.
  


dear qemu-developers,
i think it would be very helpful, if such a possibility exists.. maybe 
you could consider implementing this in a future release :-)


just a suggestion ;-)

greets!
  


sorry for this aweful post!! seems i forgot to delete half the message :-(




[Qemu-devel] qemu/hw apb_pci.c

2007-05-30 Thread Blue Swirl
CVSROOT:/cvsroot/qemu
Module name:qemu
Changes by: Blue Swirl blueswir1  07/05/30 18:54:40

Modified files:
hw : apb_pci.c 

Log message:
Replace target_ulong with target_phys_addr_t

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/apb_pci.c?cvsroot=qemur1=1.5r2=1.6




Re: [Qemu-devel] mac os x on qemu?

2007-05-30 Thread C . W . Betts
In order to run Intel Mac OS X, you would need to circumvent the 
built-in DRM that Apple uses.  Last time I checked, Qemu has the 
ability to use an EFI BIOS.  However, you should be able to boot and 
install Darwin.

On Saturday, May 26, 2007, at 06:29 AM, Christian Buhtz wrote:

Did I understand the docs right that I am able to install MacOS X on 
qemu if qemu runs under WinXP on a IntelPC?






PGP.sig
Description: This is a digitally signed message part


[Qemu-devel] qemu hw/mips_malta.c hw/mips_pica61.c hw/mips_r...

2007-05-30 Thread Thiemo Seufer
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Thiemo Seufer ths 07/05/30 20:46:02

Modified files:
hw : mips_malta.c mips_pica61.c mips_r4k.c 
target-mips: cpu.h translate_init.c 

Log message:
Fix CPU (re-)selection on reset.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/mips_malta.c?cvsroot=qemur1=1.28r2=1.29
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/mips_pica61.c?cvsroot=qemur1=1.4r2=1.5
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/mips_r4k.c?cvsroot=qemur1=1.44r2=1.45
http://cvs.savannah.gnu.org/viewcvs/qemu/target-mips/cpu.h?cvsroot=qemur1=1.38r2=1.39
http://cvs.savannah.gnu.org/viewcvs/qemu/target-mips/translate_init.c?cvsroot=qemur1=1.9r2=1.10




[Qemu-devel] qemu/hw mips_malta.c

2007-05-30 Thread Thiemo Seufer
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Thiemo Seufer ths 07/05/30 21:30:06

Modified files:
hw : mips_malta.c 

Log message:
Fix typo in comment.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/mips_malta.c?cvsroot=qemur1=1.29r2=1.30




[Qemu-devel] [PATCH] mips-linux-user errno mapping

2007-05-30 Thread Stuart Anderson


The linux user code was completely missing the ability to map errnos
from the host to the target. This patch adds this ability, with the
mapping needed for MIPS. With this patch, an appreciable number of the
tests in LTP now PASS (remaining failures are due to other bugs not yet
fixed).


  Stuart

Stuart R. Anderson   [EMAIL PROTECTED]
Network  Software Engineering   http://www.netsweng.com/
1024D/37A79149:  0791 D3B8 9A4C 2CDC A31F
   BD03 0A62 E534 37A7 9149Index: qemu/linux-user/errno_defs.h
===
--- /dev/null	1970-01-01 00:00:00.0 +
+++ qemu/linux-user/errno_defs.h	2007-05-30 13:29:13.0 -0400
@@ -0,0 +1,143 @@
+#warning errno_defs
+/*
+ * Target definitions of errnos. These may be overridden by an
+ * architecture specific header if needed.
+ *
+ * Taken from asm-generic/errno-base.h and asm-generic/errno.h
+ */
+#define TARGET_EPERM1  /* Operation not permitted */
+#define TARGET_ENOENT   2  /* No such file or directory */
+#define TARGET_ESRCH3  /* No such process */
+#define TARGET_EINTR4  /* Interrupted system call */
+#define TARGET_EIO  5  /* I/O error */
+#define TARGET_ENXIO6  /* No such device or address */
+#define TARGET_E2BIG7  /* Argument list too long */
+#define TARGET_ENOEXEC  8  /* TARGET_Exec format error */
+#define TARGET_EBADF9  /* Bad file number */
+#define TARGET_ECHILD  10  /* No child processes */
+#define TARGET_EAGAIN  11  /* Try again */
+#define TARGET_ENOMEM  12  /* Out of memory */
+#define TARGET_EACCES  13  /* Permission denied */
+#define TARGET_EFAULT  14  /* Bad address */
+#define TARGET_ENOTBLK 15  /* Block device required */
+#define TARGET_EBUSY   16  /* Device or resource busy */
+#define TARGET_EEXIST  17  /* File exists */
+#define TARGET_EXDEV   18  /* Cross-device link */
+#define TARGET_ENODEV  19  /* No such device */
+#define TARGET_ENOTDIR 20  /* Not a directory */
+#define TARGET_EISDIR  21  /* Is a directory */
+#define TARGET_EINVAL  22  /* Invalid argument */
+#define TARGET_ENFILE  23  /* File table overflow */
+#define TARGET_EMFILE  24  /* Too many open files */
+#define TARGET_ENOTTY  25  /* Not a typewriter */
+#define TARGET_ETXTBSY 26  /* Text file busy */
+#define TARGET_EFBIG   27  /* File too large */
+#define TARGET_ENOSPC  28  /* No space left on device */
+#define TARGET_ESPIPE  29  /* Illegal seek */
+#define TARGET_EROFS   30  /* Read-only file system */
+#define TARGET_EMLINK  31  /* Too many links */
+#define TARGET_EPIPE   32  /* Broken pipe */
+#define TARGET_EDOM33  /* Math argument out of domain of func */
+#define TARGET_ERANGE  34  /* Math result not representable */
+
+#define TARGET_EDEADLK 35  /* Resource deadlock would occur */
+#define TARGET_ENAMETOOLONG36  /* File name too long */
+#define TARGET_ENOLCK  37  /* No record locks available */
+#define TARGET_ENOSYS  38  /* Function not implemented */
+#define TARGET_ENOTEMPTY   39  /* Directory not empty */
+#define TARGET_ELOOP   40  /* Too many symbolic links encountered */
+
+#define TARGET_ENOMSG  42  /* No message of desired type */
+#define TARGET_EIDRM   43  /* Identifier removed */
+#define TARGET_ECHRNG  44  /* Channel number out of range */
+#define TARGET_EL2NSYNC45  /* Level 2 not synchronized */
+#define TARGET_EL3HLT  46  /* Level 3 halted */
+#define TARGET_EL3RST  47  /* Level 3 reset */
+#define TARGET_ELNRNG  48  /* Link number out of range */
+#define TARGET_EUNATCH 49  /* Protocol driver not attached */
+#define TARGET_ENOCSI  50  /* No CSI structure available */
+#define TARGET_EL2HLT  51  /* Level 2 halted */
+#define TARGET_EBADE   52  /* Invalid exchange */
+#define TARGET_EBADR   53  /* Invalid request descriptor */
+#define TARGET_EXFULL  54  /* TARGET_Exchange full */
+#define TARGET_ENOANO  55  /* No anode */
+#define TARGET_EBADRQC 56  /* Invalid request code */
+#define TARGET_EBADSLT 57  /* Invalid slot */
+
+#define TARGET_EBFONT  59  /* Bad font file format */
+#define TARGET_ENOSTR  60  /* Device not a stream */
+#define TARGET_ENODATA 61  /* No data available */
+#define