All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: todd@fries.net, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/1] Make vmport an optional feature at run time.
Date: Sat, 06 Sep 2008 21:24:45 -0500	[thread overview]
Message-ID: <48C33B6D.5080606@codemonkey.ws> (raw)
In-Reply-To: <20080825055840.GA683@fries.net>

Todd T. Fries wrote:
> Just incase a 'more complete' vmport codeset is useful, here is my
> stab at extending it.  I haven't extended it far enough yet that
> OpenBSD's vmt(4) interface works, but would be more than happy
> if someone else were to carry this flag and run with it..
>
>
>
> +static uint32_t vmport_cmd_get_time(void *opaque, uint32_t addr)
> +{
> +    CPUState *env = opaque;
> +    struct timeval tv;
> +    gettimeofday(&tv, NULL);
> +    env->regs[R_EAX] = tv.tv_sec;
> +    env->regs[R_EBX] = tv.tv_usec;
> +    return tv.tv_sec;
> +}
>
>   

FWIW, this is incorrect.  You are presenting the host's version of wall 
clock time, not the guest's version.

Regards,

Anthony Liguori

  reply	other threads:[~2008-09-07  2:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-24 11:47 [Qemu-devel] [PATCH 1/1] Make vmport an optional feature at run time Ian Kirk
2008-08-24 19:38 ` Anthony Liguori
2008-08-24 19:54   ` Ian Kirk
2008-08-25  0:23     ` Anthony Liguori
2008-08-25  6:19       ` [Qemu-devel] [PATCH] 1/1: vmport update Todd T. Fries
2008-09-07  2:24         ` Anthony Liguori [this message]
2008-09-07  3:48           ` [Qemu-devel] [PATCH 1/1] Make vmport an optional feature at run time qemu-devel
2008-08-25  8:34       ` Thiemo Seufer
2008-08-25  9:26         ` Ian Kirk
2008-09-07  2:27         ` Anthony Liguori

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=48C33B6D.5080606@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=qemu-devel@nongnu.org \
    --cc=todd@fries.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.