qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Cirrus VGA


From: Juergen Lock
Subject: Re: [Qemu-devel] Cirrus VGA
Date: Sat, 5 Jun 2004 22:46:12 +0200 (CEST)

In article <address@hidden> you write:
>-=-=-=-=-=-
>
>On Sat, 2004-06-05 at 15:16, Juergen Lock wrote:
>
>Maybe good if I actually attach my diff...

 :)
>-- 
>Antony T Curtis <address@hidden>
>
>-=-=-=-=-=-
>
>diff -bur ../cvs/qemu/configure qemu/configure
>--- ../cvs/qemu/configure      Sat Jun  5 13:25:07 2004
>+++ qemu/configure     Sat Jun  5 14:33:58 2004
>@@ -418,8 +418,13 @@
> echo "TARGET_DIRS=$target_list" >> $config_mak
> 
> if [ "$bsd" = "yes" ] ; then
>+  echo "#define HAVE_TERMIOS_H" >> $config_h
>+  echo "#define HAVE_SYS_IOCTL_H" >> $config_h
>+  echo "#define HAVE_SYS_FILIO_H" >> $config_h
>   echo "#define O_LARGEFILE 0" >> $config_h
>+  echo "#define off64_t off_t" >> $config_h
>   echo "#define lseek64 lseek" >> $config_h
>+  echo "#define mkstemp64 mkstemp" >> $config_h
>   echo "#define ftruncate64 ftruncate" >> $config_h
>   echo "#define MAP_ANONYMOUS MAP_ANON" >> $config_h
>   echo "#define _BSD 1" >> $config_h

 These are fixed in the port btw.

>...
>diff -bur ../cvs/qemu/vl.c qemu/vl.c
>--- ../cvs/qemu/vl.c   Sat Jun  5 13:25:07 2004
>+++ qemu/vl.c  Sat Jun  5 13:50:36 2004
>...

>@@ -1051,10 +1064,18 @@
> #ifdef _BSD
> static int tun_open(char *ifname, int ifname_size)
> {
>-    int fd;
>+    int fd = -1, i;
>     char *dev;
>     struct stat s;
> 
>+    for (i = 0; fd < 0 && i < 4; i++) {
>+        char vnname[16];
>+        snprintf(vnname,16,"/dev/vmnet%d",i);
>+        fd = open(vnname, O_RDWR);
>+    }
>+
>+
>+    if (fd < 0)
>     fd = open("/dev/tap", O_RDWR);
>     if (fd < 0) {
>         fprintf(stderr, "warning: could not open /dev/tap: no virtual
>network emulation\n");

 Huh?  Is the vmware networking module compatible to if_tap somehow?
And is there a description of its features somewhere?

 Curious,
        Juergen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]