qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 1/2] [RFC] Make vmport report the processor spee


From: François Revol
Subject: Re: [Qemu-devel] [PATCH 1/2] [RFC] Make vmport report the processor speed
Date: Tue, 06 Jan 2009 05:24:07 +0100 CET

> 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)

François.




reply via email to

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