Skip to contentSkip to conversation

parallel and -nographic

PATCH In review Magnus Damm 3 participants 3 messages Jan 15, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 parallel and -nographic

Hello,

The recent parallel port change broke -nographic. Without this patch "qemu -nographic" fails and outputs the following error:

qemu: could not open parallel device 'stdio'

/ magnus

Index: vl.c
===================================================================
RCS file: /cvsroot/qemu/qemu/vl.c,v
retrieving revision 1.116

vl.c +1 -1
diff -u -r1.116 vl.c
@@ -1033,7 +1033,7 @@
     void *fd_opaque;
 } FDCharDriver;
 
-#define STDIO_MAX_CLIENTS 2
+#define STDIO_MAX_CLIENTS 3
 
 static int stdio_nb_clients;
 static CharDriverState *stdio_clients[STDIO_MAX_CLIENTS];
#1 lore raw

Hi,

I think the bug comes from the fact that the parallel port is redirected to stdio in -nographic mode. I see no reason to do that.

Fabrice.

Quoted 34 lines · Magnus Damm

Hello,

The recent parallel port change broke -nographic. Without this patch "qemu -nographic" fails and outputs the following error:

qemu: could not open parallel device 'stdio'

/ magnus

Index: vl.c
===================================================================
RCS file: /cvsroot/qemu/qemu/vl.c,v
retrieving revision 1.116
diff -u -r1.116 vl.c

vl.c +1 -1
@@ -1033,7 +1033,7 @@
     void *fd_opaque;
 } FDCharDriver;
 
-#define STDIO_MAX_CLIENTS 2
+#define STDIO_MAX_CLIENTS 3
 
 static int stdio_nb_clients;
 static CharDriverState *stdio_clients[STDIO_MAX_CLIENTS];

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

#2 lore raw

Hello,

Quoted 2 lines · Fabrice Bellard

I think the bug comes from the fact that the parallel port is redirected to stdio in -nographic mode. I see no reason to do that.

Neither do I. But I was not sure - therefore the workaroundish patch.. =)

/ magnus