qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Antony T Curtis <antony.t.curtis@ntlworld.com>
To: qemu-devel@nongnu.org
Subject: [Fwd: Re: qemu port (was: Re: [Qemu-devel] Running QEMU on FreeBSD)]
Date: Thu, 03 Jun 2004 11:03:33 +0100	[thread overview]
Message-ID: <1086257013.6650.11.camel@pcgem.rdg.cyberkinetica.com> (raw)

-----Forwarded Message-----
From: Antony T Curtis <antony.t.curtis@ntlworld.com>
To: Juergen Lock <qemu-l@jelal.kn-bremen.de>
Subject: Re: qemu port (was: Re: [Qemu-devel] Running QEMU on FreeBSD)
Date: Thu, 03 Jun 2004 10:41:00 +0100

On Thu, 2004-06-03 at 00:18, Juergen Lock wrote:
> On Mon, May 31, 2004 at 09:46:21AM +0000, Antony T Curtis wrote:
> > ...
> 
> > Replace the rintl() function in target-i386/op.c with the following:
> > 
> > CPU86_LDouble rintl(CPU86_LDouble __x) {
> >   register CPU86_LDouble __result;
> >   __asm __volatile__ ("frndint" : "=t" (__result) : "0" (__x));
> >   return __result;
> > }
> 
> OK, I've now taken this and the other FreeBSD patches, added a few
> small ones of my own and made a port, it can be fetched at
> 	http://www.freebsd.org/cgi/query-pr.cgi?pr=67506&f=raw
> (and hopefully will be committed soon.)
> 
>  I've noticed the following things tho:
> 
> - needs to run as root in order to use /dev/tap* networking (why?)

This is from a access check in the if_tap module. If you look at
/usr/src/sys/net/if_tap.c, you will notice that there is a check for the
uid == 0 in the open path. It needs to be commented out.

> - slirp (usermode networking) compiles but doesn't seem to work for me

I haven't tried it.

> - seems to have a timer problem (time sleep 1 takes 49 seconds and
> booting sleeps for minutes at the acd0 probe), but only on _some_ guest
> systems (FreeSBIE, knoppix.)  An installed 5.2.1 guest system works ok
> (this also doesn't happen with linux as host.)  And enabling /dev/rtc doesn't
> help either... (not included since it needs a patch to emulators/rtc.)

I haven't tried running QEMU on 4.x

> - using physical media doesn't work on 4.x hosts (missing DIOCGMEDIASIZE
> ioctl)

On 4.x you have to use something like...

if (!ioctl(fd, FIOCGDINFO, &disklabel)) {
  int cyls = disklabel.d_ncylinders;
  int heads = disklabel.d_ntracks;
  int sectors = disklabel.d_nsectors;
  disksize_in_sectors = cyls * heads * sectors;
}

>  Testers and anyone who has ideas about these problems welcome...
> 
> 	Juergen
>  FLAGS (\Seen))
-- 

             reply	other threads:[~2004-06-03 10:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-03 10:03 Antony T Curtis [this message]
2004-06-04 18:58 ` [Fwd: Re: qemu port (was: Re: [Qemu-devel] Running QEMU on FreeBSD)] Juergen Lock

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1086257013.6650.11.camel@pcgem.rdg.cyberkinetica.com \
    --to=antony.t.curtis@ntlworld.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).