qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/2] [RFC] Make vmport report the processor speed
Date: Mon, 05 Jan 2009 22:56:48 -0600	[thread overview]
Message-ID: <4962E490.8010804@codemonkey.ws> (raw)
In-Reply-To: <24689573005-BeMail@laptop>

François Revol wrote:
>> If VMware ESX finds itself virtualized (read: inside VMware), 
>> it reads the TSC speed
>> from its backdoor, because measuring the TSC inside a VM is not 
>> exact.
>>
>> This patch implements a hacky way to detect the TSC speed and passes 
>> that through to
>> the VM. I am open to suggestions on how to improve the behavior.
>> It also adds a magic return value of 2 on the version return, 
>> which is required by
>> VMware ESX
>>     
>
> Oh this is interesting, I might add some stuff to Haiku to use it..
> BeOS (and Haiku) use RDTSC for timing, it's much more precise, but it's 
> why it runs so strange in VMs... (and will have to be handled when 
> implementing speedstep)
>   

You should look at KVM_CLOCK in Linux.  We could easily implement it for 
QEMU.  It provides a saner way to use the TSC as a time source in the  
guest.

Regards,

Anthony Liguori

> François.
>
>
>   

  reply	other threads:[~2009-01-06  4:55 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-05 16:11 [Qemu-devel] [PATCH 0/2] VMware ESX guest bringup (partial) Alexander Graf
2009-01-05 16:11 ` [Qemu-devel] [PATCH 1/2] [RFC] Make vmport report the processor speed Alexander Graf
2009-01-05 16:11   ` [Qemu-devel] [PATCH 2/2] Add phenom CPU descriptor Alexander Graf
2009-01-09 23:16     ` Alexander Graf
2009-01-09 23:36       ` Anthony Liguori
2009-01-05 16:37   ` [Qemu-devel] [PATCH 1/2] [RFC] Make vmport report the processor speed Anthony Liguori
2009-01-07  6:58     ` Alexander Graf
2009-01-06  4:24   ` François Revol
2009-01-06  4:56     ` Anthony Liguori [this message]
2009-01-06 22:33   ` Jamie Lokier
2009-01-07  6:29     ` Alexander Graf
2009-01-07 10:23       ` François Revol
2009-01-07 11:15         ` Alexander Graf
2009-01-07 11:32           ` François Revol
2009-01-07 14:34             ` Alexander Graf
2009-01-07 14:48               ` François Revol
2009-01-07 15:44                 ` Alexander Graf
2009-01-07 16:46   ` 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=4962E490.8010804@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --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).