[Qemu-devel] [Patch] cpu-exec.c: Make cpu_signal_handler work on Mac OS X/Darwin x86

2007-02-05 Thread Pierre d'Herbemont

Hi,

This should fix:

/Users/ilya/tmp/feb4/qemu_cvs_user/qemu/cpu-exec.c: In function  
'cpu_x86_signal_handler':

/Users/ilya/tmp/feb4/qemu_cvs_user/qemu/cpu-exec.c:1307:
error: request for member 'gregs' in something not a structure or union
/Users/ilya/tmp/feb4/qemu_cvs_user/qemu/cpu-exec.c:1307:
error: 'EIP' undeclared (first use in this function)
...

on Mac OS X/x86.
Index: cpu-exec.c
===
RCS file: /sources/qemu/qemu/cpu-exec.c,v
retrieving revision 1.91
diff -u -r1.91 cpu-exec.c
--- cpu-exec.c  2 Feb 2007 03:57:09 -   1.91
+++ cpu-exec.c  5 Feb 2007 09:32:32 -
@@ -1261,6 +1261,20 @@
 
 #if defined(__i386__)
 
+#ifdef linux
+
+# define EIP_sig(context) ((context)->uc_mcontext.gregs[REG_EIP])
+# define TRAP_sig(context)((context)->uc_mcontext.gregs[REG_TRAPNO])
+# define ERROR_sig(context)   ((context)->uc_mcontext.gregs[REG_ERR])
+
+#elif defined(__APPLE__)
+# include 
+
+# define EIP_sig(context) (*((unsigned 
long*)&(context)->uc_mcontext->ss.eip))
+# define TRAP_sig(context)((context)->uc_mcontext->es.trapno)
+# define ERROR_sig(context)   ((context)->uc_mcontext->es.err)
+#endif
+
 #if defined(USE_CODE_COPY)
 static void cpu_send_trap(unsigned long pc, int trap, 
   struct ucontext *uc)
@@ -1295,8 +1309,8 @@
 #define REG_ERRERR
 #define REG_TRAPNO TRAPNO
 #endif
-pc = uc->uc_mcontext.gregs[REG_EIP];
-trapno = uc->uc_mcontext.gregs[REG_TRAPNO];
+pc = EIP_sig(uc);
+trapno = TRAP_sig(uc);
 #if defined(TARGET_I386) && defined(USE_CODE_COPY)
 if (trapno == 0x00 || trapno == 0x05) {
 /* send division by zero or bound exception */
@@ -1306,7 +1320,7 @@
 #endif
 return handle_cpu_signal(pc, (unsigned long)info->si_addr, 
  trapno == 0xe ? 
- (uc->uc_mcontext.gregs[REG_ERR] >> 1) & 1 : 0,
+ (ERROR_sig(uc) >> 1) & 1 : 0,
  &uc->uc_sigmask, puc);
 }
 


Ilya, Hope this will work for you.

Pierre.___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] [Patch] darwin-user: fix com mpage entry offset

2007-02-05 Thread Pierre d'Herbemont

Hi,

This patch fix typos in the commpage definition.

Pierre.

Index: darwin-user/commpage.c
===
RCS file: /sources/qemu/qemu/darwin-user/commpage.c,v
retrieving revision 1.1
diff -u -r1.1 commpage.c
--- darwin-user/commpage.c  18 Jan 2007 20:06:33 -  1.1
+++ darwin-user/commpage.c  3 Feb 2007 16:47:47 -
@@ -114,10 +114,10 @@
 COMMPAGE_ENTRY(spinlock_lock, 1, 0x260,  OSSpinLockLock,
CALL_DIRECT),
 COMMPAGE_ENTRY(spinlock_unlock,   1, 0x2a0,  OSSpinLockUnlock,  
CALL_DIRECT),
 COMMPAGE_ENTRY(pthread_getspecific,   0, 0x2c0,  unimpl_commpage,   
CALL_INDIRECT),
-COMMPAGE_ENTRY(gettimeofday,  1, 0x2c0,  do_cgettimeofday,  
CALL_INDIRECT),
-COMMPAGE_ENTRY(sys_dcache_flush,  0, 0x2c0,  unimpl_commpage,   
CALL_INDIRECT),
-COMMPAGE_ENTRY(sys_icache_invalidate, 0, 0x2c0,  unimpl_commpage,   
CALL_INDIRECT),
-COMMPAGE_ENTRY(pthread_self,  0, 0x2c0,  unimpl_commpage,   
CALL_INDIRECT),
+COMMPAGE_ENTRY(gettimeofday,  1, 0x2e0,  do_cgettimeofday,  
CALL_INDIRECT),
+COMMPAGE_ENTRY(sys_dcache_flush,  0, 0x4e0,  unimpl_commpage,   
CALL_INDIRECT),
+COMMPAGE_ENTRY(sys_icache_invalidate, 0, 0x520,  unimpl_commpage,   
CALL_INDIRECT),
+COMMPAGE_ENTRY(pthread_self,  0, 0x580,  unimpl_commpage,   
CALL_INDIRECT),
 
 COMMPAGE_ENTRY(relinquish,0, 0x5c0,  unimpl_commpage,   
CALL_INDIRECT),
 
@@ -305,7 +305,7 @@
 
 void unimpl_commpage(void *cpu_env, int num)
 {
-gemu_log("qemu: commpage function 0x%x not implemented\n", num);
+qerror("qemu: commpage function 0x%x not implemented\n", num);
 }
 
 /___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


Re: [Qemu-devel] qemu vl.c

2007-02-05 Thread Johannes Schindelin
Hi,

On Sat, 3 Feb 2007, Kazu wrote:

> An attached patch cleans serial for Win32.

Sorry for messing it up.

Ciao,
Dscho



___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] qemu qemu-doc.texi

2007-02-05 Thread Fabrice Bellard
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Fabrice Bellard07/02/05 19:38:35

Modified files:
.  : qemu-doc.texi 

Log message:
gcc version

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/qemu-doc.texi?cvsroot=qemu&r1=1.126&r2=1.127


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] qemu qemu-doc.texi

2007-02-05 Thread Fabrice Bellard
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Fabrice Bellard07/02/05 19:42:07

Modified files:
.  : qemu-doc.texi 

Log message:
Darwin user help (Pierre d'Herbemont)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/qemu-doc.texi?cvsroot=qemu&r1=1.127&r2=1.128


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] qemu/darwin-user main.c

2007-02-05 Thread Fabrice Bellard
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Fabrice Bellard07/02/05 19:43:27

Modified files:
darwin-user: main.c 

Log message:
Darwin cleanup usage (Pierre d'Herbemont)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/darwin-user/main.c?cvsroot=qemu&r1=1.2&r2=1.3


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] qemu/darwin-user syscall.c syscalls.h

2007-02-05 Thread Fabrice Bellard
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Fabrice Bellard07/02/05 19:47:42

Modified files:
darwin-user: syscall.c syscalls.h 

Log message:
This patch cleans up target_mach_msg_trap(), removes unuseful  
do_pread, begins sysctl implementation and implements fcntl (Pierre 
d'Herbemont).

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/darwin-user/syscall.c?cvsroot=qemu&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/qemu/darwin-user/syscalls.h?cvsroot=qemu&r1=1.1&r2=1.2


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] encrypted disks broken?

2007-02-05 Thread Lonnie Mendez
Is anyone else seeing this with current cvs?

shell$ qemu-img create -e -f qcow qtest.qcow 100M
shell$ qemu -hda qtest.qcow -monitor stdio
hda is encrypted.
Password: QEMU 0.8.2 monitor - type 'help' for more information
(qemu) 

In the above illustration you can't enter the encryption key because the
monitor butts in.  Seems like something isn't right.



___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] qemu/darwin-user commpage.c

2007-02-05 Thread Fabrice Bellard
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Fabrice Bellard07/02/05 19:50:01

Modified files:
darwin-user: commpage.c 

Log message:
This patch fixes typos in the commpage definition (Pierre d'Herbemont).

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/darwin-user/commpage.c?cvsroot=qemu&r1=1.1&r2=1.2


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] qemu vnc.c

2007-02-05 Thread Fabrice Bellard
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Fabrice Bellard07/02/05 20:14:10

Modified files:
.  : vnc.c 

Log message:
Mouse relative offset VNC extension (Anthony Liguori)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/vnc.c?cvsroot=qemu&r1=1.10&r2=1.11


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] qemu vnc.c monitor.c vl.h

2007-02-05 Thread Fabrice Bellard
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Fabrice Bellard07/02/05 20:20:30

Modified files:
.  : vnc.c monitor.c vl.h 

Log message:
info vnc command (Anthony Liguori)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/vnc.c?cvsroot=qemu&r1=1.11&r2=1.12
http://cvs.savannah.gnu.org/viewcvs/qemu/monitor.c?cvsroot=qemu&r1=1.62&r2=1.63
http://cvs.savannah.gnu.org/viewcvs/qemu/vl.h?cvsroot=qemu&r1=1.183&r2=1.184


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] qemu qemu-img.c vl.c linux-user/main.c

2007-02-05 Thread Fabrice Bellard
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Fabrice Bellard07/02/05 20:21:32

Modified files:
.  : qemu-img.c vl.c 
linux-user : main.c 

Log message:
copyright update

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/qemu-img.c?cvsroot=qemu&r1=1.15&r2=1.16
http://cvs.savannah.gnu.org/viewcvs/qemu/vl.c?cvsroot=qemu&r1=1.246&r2=1.247
http://cvs.savannah.gnu.org/viewcvs/qemu/linux-user/main.c?cvsroot=qemu&r1=1.97&r2=1.98


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] qemu gdbstub.c vl.c gdbstub.h monitor.c

2007-02-05 Thread Fabrice Bellard
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Fabrice Bellard07/02/05 20:46:05

Modified files:
.  : gdbstub.c vl.c gdbstub.h monitor.c 

Log message:
gdbserver fix

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/gdbstub.c?cvsroot=qemu&r1=1.46&r2=1.47
http://cvs.savannah.gnu.org/viewcvs/qemu/vl.c?cvsroot=qemu&r1=1.247&r2=1.248
http://cvs.savannah.gnu.org/viewcvs/qemu/gdbstub.h?cvsroot=qemu&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/qemu/monitor.c?cvsroot=qemu&r1=1.63&r2=1.64


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] qemu Changelog VERSION

2007-02-05 Thread Fabrice Bellard
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Fabrice Bellard07/02/05 20:46:55

Modified files:
.  : Changelog VERSION 

Log message:
update

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/Changelog?cvsroot=qemu&r1=1.127&r2=1.128
http://cvs.savannah.gnu.org/viewcvs/qemu/VERSION?cvsroot=qemu&r1=1.29&r2=1.30


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] qemu/tests Makefile

2007-02-05 Thread Fabrice Bellard
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Fabrice Bellard07/02/05 20:51:14

Modified files:
tests  : Makefile 

Log message:
update path

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/tests/Makefile?cvsroot=qemu&r1=1.39&r2=1.40


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


Re: [Qemu-devel] qemu Changelog VERSION

2007-02-05 Thread Christian MICHON

On 2/5/07, Fabrice Bellard <[EMAIL PROTECTED]> wrote:

CVSROOT:/sources/qemu
Module name:qemu
Changes by: Fabrice Bellard07/02/05 20:46:55

Modified files:
.  : Changelog VERSION


this is starting to feel like christmas :)

woot!

--
Christian


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] qemu/tests test-i386.c

2007-02-05 Thread Fabrice Bellard
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Fabrice Bellard07/02/05 20:52:39

Modified files:
tests  : test-i386.c 

Log message:
int conversion test

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/tests/test-i386.c?cvsroot=qemu&r1=1.52&r2=1.53


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] qemu LICENSE

2007-02-05 Thread Fabrice Bellard
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Fabrice Bellard07/02/05 21:06:29

Modified files:
.  : LICENSE 

Log message:
update

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/LICENSE?cvsroot=qemu&r1=1.2&r2=1.3


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] qemu README.distrib

2007-02-05 Thread Fabrice Bellard
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Fabrice Bellard07/02/05 21:08:16

Removed files:
.  : README.distrib 

Log message:
removed

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/README.distrib?cvsroot=qemu&r1=1.2&r2=0


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] qemu linux-2.6.9-qemu-fast.patch

2007-02-05 Thread Fabrice Bellard
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Fabrice Bellard07/02/05 21:09:14

Removed files:
.  : linux-2.6.9-qemu-fast.patch 

Log message:
removed

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/linux-2.6.9-qemu-fast.patch?cvsroot=qemu&r1=1.1&r2=0


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] Monitor multiplexing

2007-02-05 Thread Jason Wessel


I would like to submit the monitor multiplexing patch again.  It is 
ported against the latest CVS.


It allows adding monitor capabilities like stdio but with tcp for 
instance, and the escape character can be changed from the default.


signed-off-by: [EMAIL PROTECTED]
Index: monitor.c
===
RCS file: /sources/qemu/qemu/monitor.c,v
retrieving revision 1.64
diff -u -r1.64 monitor.c
--- monitor.c   5 Feb 2007 20:46:05 -   1.64
+++ monitor.c   5 Feb 2007 21:15:12 -
@@ -54,7 +54,8 @@
 const char *help;
 } term_cmd_t;
 
-static CharDriverState *monitor_hd;
+#define MAX_MON 4
+static CharDriverState *monitor_hd[MAX_MON];
 static int hide_banner;
 
 static term_cmd_t term_cmds[];
@@ -69,8 +70,11 @@
 
 void term_flush(void)
 {
+int i;
 if (term_outbuf_index > 0) {
-qemu_chr_write(monitor_hd, term_outbuf, term_outbuf_index);
+for (i = 0; i < MAX_MON; i++)
+if (monitor_hd[i] && monitor_hd[i]->focus == 0)
+qemu_chr_write(monitor_hd[i], term_outbuf, term_outbuf_index);
 term_outbuf_index = 0;
 }
 }
@@ -2452,9 +2456,25 @@
 monitor_start_input();
 }
 
+static int is_first_init = 1;
+
 void monitor_init(CharDriverState *hd, int show_banner)
 {
-monitor_hd = hd;
+int i;
+
+if (is_first_init) {
+for (i = 0; i < MAX_MON; i++) {
+monitor_hd[i] = NULL;
+}
+is_first_init = 0;
+}
+for (i = 0; i < MAX_MON; i++) {
+if (monitor_hd[i] == NULL) {
+monitor_hd[i] = hd;
+break;
+}
+}
+
 hide_banner = !show_banner;
 
 qemu_chr_add_handlers(hd, term_can_read, term_read, term_event, NULL);
@@ -2475,8 +2495,12 @@
 void monitor_readline(const char *prompt, int is_password,
   char *buf, int buf_size)
 {
+int i;
+
 if (is_password) {
-qemu_chr_send_event(monitor_hd, CHR_EVENT_FOCUS);
+for (i = 0; i < MAX_MON; i++)
+if (monitor_hd[i] && monitor_hd[i]->focus == 0)
+qemu_chr_send_event(monitor_hd[i], CHR_EVENT_FOCUS);
 }
 readline_start(prompt, is_password, monitor_readline_cb, NULL);
 monitor_readline_buf = buf;
Index: qemu-doc.texi
===
RCS file: /sources/qemu/qemu/qemu-doc.texi,v
retrieving revision 1.128
diff -u -r1.128 qemu-doc.texi
--- qemu-doc.texi   5 Feb 2007 19:42:07 -   1.128
+++ qemu-doc.texi   5 Feb 2007 21:15:12 -
@@ -610,6 +610,18 @@
 same as if you had specified @code{-serial tcp} except the unix domain socket
 @var{path} is used for connections.
 
[EMAIL PROTECTED] mon:dev_string
+This is a special option to allow the monitor to be multiplexed onto
+another serial port.  The monitor is accessed with key sequence of
[EMAIL PROTECTED] and then pressing @key{c}. See monitor access
[EMAIL PROTECTED] in the -nographic section for more keys.
[EMAIL PROTECTED] should be any one of the serial devices specified
+above.  An example to multiplex the monitor onto a server telnet server
+listening on port  would be:
[EMAIL PROTECTED] @code
[EMAIL PROTECTED] -serial mon:telnet::,server,nowait
[EMAIL PROTECTED] table
+
 @end table
 
 @item -parallel dev
@@ -629,6 +641,19 @@
 The default device is @code{vc} in graphical mode and @code{stdio} in
 non graphical mode.
 
[EMAIL PROTECTED] -echr numeric_ascii_value
+Change the escape character used for switching to the monitor when using
+monitor and serial sharing.  The default is @code{0x01} when using the
[EMAIL PROTECTED] option.  @code{0x01} is equal to pressing
[EMAIL PROTECTED]  You can select a different character from the ascii
+control keys where 1 through 26 map to Control-a through Control-z.  For
+instance you could use the either of the following to change the escape
+character to Control-t.
[EMAIL PROTECTED] @code
[EMAIL PROTECTED] -echr 0x14
[EMAIL PROTECTED] -echr 20
[EMAIL PROTECTED] table
+
 @item -s
 Wait gdb connection to port 1234 (@pxref{gdb_usage}). 
 @item -p port
@@ -711,6 +736,8 @@
 Exit emulator
 @item Ctrl-a s
 Save disk data back to file (if -snapshot)
[EMAIL PROTECTED] Ctrl-a t
+toggle console timestamps
 @item Ctrl-a b
 Send break (magic sysrq in Linux)
 @item Ctrl-a c
Index: vl.c
===
RCS file: /sources/qemu/qemu/vl.c,v
retrieving revision 1.248
diff -u -r1.248 vl.c
--- vl.c5 Feb 2007 20:46:05 -   1.248
+++ vl.c5 Feb 2007 21:15:13 -
@@ -1213,6 +1213,218 @@
 return chr;
 }
 
+/* MUX driver for serial I/O splitting */
+static int term_timestamps;
+static int64_t term_timestamps_start;
+#define MAX_MUX 2
+typedef struct {
+IOCanRWHandler *chr_can_read[MAX_MUX];
+IOReadHandler *chr_read[MAX_MUX];
+IOEventHandler *chr_event[MAX_MUX];
+void *ext_opaque[MAX_MUX];
+CharDriverState *drv;
+int mux_cnt;
+int term_got_escape;
+ 

[Qemu-devel] qemu Makefile

2007-02-05 Thread Fabrice Bellard
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Fabrice Bellard07/02/05 21:22:42

Modified files:
.  : Makefile 

Log message:
update

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/Makefile?cvsroot=qemu&r1=1.111&r2=1.112


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] qemu cpu-exec.c

2007-02-05 Thread Fabrice Bellard
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Fabrice Bellard07/02/05 21:41:46

Modified files:
.  : cpu-exec.c 

Log message:
Make cpu_signal_handler work on Mac OS X/Darwin x86

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/cpu-exec.c?cvsroot=qemu&r1=1.92&r2=1.93


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] qemu/target-i386 cpu.h

2007-02-05 Thread Fabrice Bellard
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Fabrice Bellard07/02/05 22:06:28

Modified files:
target-i386: cpu.h 

Log message:
darwin fix

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/target-i386/cpu.h?cvsroot=qemu&r1=1.40&r2=1.41


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] Re: Support for vga= kernel option

2007-02-05 Thread Pascal Terjan

2007/1/11, Pascal Terjan <[EMAIL PROTECTED]>:

Hello,
here is a little patch to add support for vga= when using -kernel.



Anything against this patch ?


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] Recent BIOS breaks SYSLINUX with -nographic

2007-02-05 Thread Ed Swierk

I'm attempting to boot a Linux disk image with the SYSLINUX boot
loader using the -nographic option. On the latest qemu CVS, the boot
loader hangs before printing "Ready" and booting the kernel. But if I
use the same version of qemu with the BIOS from 0.8.2, it boots just
fine.

For a simple test case, grab this Fedora boot disk:

 http://xenon.stanford.edu/~eswierk/misc/fc6-diskboot-serial.img.bz2

which I've modified to redirect output to the serial port, and run:

 qemu -hda fc6-diskboot-serial.img -nographic

Any clues would be appreciated.

--Ed


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] Re: Recent BIOS breaks SYSLINUX with -nographic

2007-02-05 Thread Ed Swierk

On 2/5/07, Ed Swierk <[EMAIL PROTECTED]> wrote:

I'm attempting to boot a Linux disk image with the SYSLINUX boot
loader using the -nographic option. On the latest qemu CVS, the boot
loader hangs before printing "Ready" and booting the kernel. But if I
use the same version of qemu with the BIOS from 0.8.2, it boots just
fine.


More specifically, bios.bin rev 1.14 works, rev 1.15 doesn't.

--Ed


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] [PATCH][KQEMU] Disable SSP in monitor

2007-02-05 Thread Anthony Liguori
Disable GCC's stack protector.  Works with older GCC's by using Linux's 
cc-option function.


Thanks again for GPL'ing KQEMU :-)

Regards,

Anthony Liguori
--- a/common/Makefile	2007-02-05 16:57:37.0 -0600
+++ b/common/Makefile	2007-02-05 18:16:41.0 -0600
@@ -21,6 +21,12 @@
 #ARCH=i386
 #ARCH=x86_64
 
+# From the Linux kernel
+# cc-option
+# Usage: cflags-y += $(call cc-option,$(CC),-march=winchip-c6,-march=i586)
+cc-option = $(shell if test -z "`$(1) $(2) -S -o /dev/null -xc \
+  /dev/null 2>&1`"; then echo "$(2)"; else echo "$(3)"; fi ;)
+
 HOST_CC=gcc
 MON_CC=gcc
 MON_LD=ld
@@ -44,6 +50,11 @@
 CFLAGS=$(COMMON_CFLAGS)
 MON_CFLAGS=$(COMMON_CFLAGS)
 KERNEL_CFLAGS=$(COMMON_CFLAGS)
+
+# Disable SSP if GCC supports it.
+MON_CFLAGS+=$(call cc-option,$(CC),-fno-stack-protector,)
+MON_CFLAGS+=$(call cc-option,$(CC),-fno-stack-protector-all,)
+
 ifeq ($(ARCH), x86_64)
 KERNEL_CFLAGS+=-mcmodel=kernel
 MON_CFLAGS+= -fpic # needed for correct computed goto relocations
___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


Re: [Qemu-devel] Re: Support for vga= kernel option

2007-02-05 Thread Hetz Ben Hamo

I suggest either re-posting the patch or sending it to the committers
(Fabrice or others).

Many developers are at #qemu in irc (freenode)

Thanks,
Hetz

On 2/6/07, Pascal Terjan <[EMAIL PROTECTED]> wrote:

2007/1/11, Pascal Terjan <[EMAIL PROTECTED]>:
> Hello,
> here is a little patch to add support for vga= when using -kernel.
>

Anything against this patch ?


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel




--
Skepticism is the lazy person's default position.
Visit my blog (hebrew) for things that (sometimes) matter:
http://wp.dad-answers.com


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


Re: [Qemu-devel] [PATCH][KQEMU] Disable SSP in monitor

2007-02-05 Thread Chris Wilson

Hi Fabrice,

On Mon, 5 Feb 2007, Anthony Liguori wrote:


Thanks again for GPL'ing KQEMU :-)


I hadn't realised this had happened. Many thanks from me too, Fabrice!

Cheers, Chris.
--
_ __ _
\  __/ / ,__(_)_  | Chris Wilson < at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


Re: [Qemu-devel] qemu gdbstub.c vl.c gdbstub.h monitor.c

2007-02-05 Thread Paul Brook
On Monday 05 February 2007 20:46, Fabrice Bellard wrote:
> CVSROOT:  /sources/qemu
> Module name:  qemu
> Changes by:   Fabrice Bellard07/02/05 20:46:05
>
> Modified files:
>   .  : gdbstub.c vl.c gdbstub.h monitor.c
>
> Log message:
>   gdbserver fix

What exactly are you fixing here? 

Accepting the same syntax as other character devices (in addition to just a 
port number) was a deliberate feature, and you seem to have reverted that. I 
specifically want to be able to talk to the stub over stdio.

Paul


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] kqemu / x86_64

2007-02-05 Thread Daniel Jacobowitz
Hi Fabrice,

I was thrilled to see in the announcement that kqemu x86_64 full
virtualization was new in pre10, so I tried it.  Unfortunately I
didn't get far.  I pointed it at my current Debian kernel and initrd,
and got:

kqemu: aborting: Unexpected exception 0x0d in monitor space
err= CS:EIP=f180:f0001f77 SS:SP=:f00c6df0

Is there something I could try that would be more informative?

[It got there much quicker than without kqemu though! :-)] 

-- 
Daniel Jacobowitz
CodeSourcery


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] Re: Recent BIOS breaks SYSLINUX

2007-02-05 Thread Ed Swierk

On 2/5/07, Ed Swierk <[EMAIL PROTECTED]> wrote:

I'm attempting to boot a Linux disk image with the SYSLINUX boot
loader using the -nographic option. On the latest qemu CVS, the boot
loader hangs before printing "Ready" and booting the kernel. But if I
use the same version of qemu with the BIOS from 0.8.2, it boots just
fine.


More testing reveals that -nographic has nothing to do with the
problem. The FC6 diskboot.img (which uses SYSLINUX) doesn't boot, even
without -nographic:

 http://mirrors.kernel.org/fedora/core/6/i386/os/images/diskboot.img

The FC6 boot.iso (which uses ISOLINUX) boots fine:

 http://mirrors.kernel.org/fedora/core/6/i386/os/images/boot.iso

as does diskboot.img with bios.bin 1.14 or earlier.

--Ed


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] a typo in kqemu-tech.html

2007-02-05 Thread Mulyadi Santosa

Hello Fabrice and all

I noticed small typo in kqemu-tech.html. In "Future Development" 
section, it is said that:

Support for the Linux 2.4.20 paravirtualization interface

But I believe it should be:
Support for the Linux 2.6.20 paravirtualization interface

regards,

Mulyadi



___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel