qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 2/2] PPC: Cuda: Use cuda timer to expose tbfreq


From: Mark Cave-Ayland
Subject: Re: [Qemu-devel] [PATCH 2/2] PPC: Cuda: Use cuda timer to expose tbfreq to guest
Date: Mon, 14 Jul 2014 15:04:14 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.6.0

On 13/07/14 21:36, Alexander Graf wrote:

Mac OS X calibrates a number of frequencies on bootup based on reading
tb values on bootup and comparing them to via cuda timer values.

The only variable we can really steer well (thanks to KVM) is the cuda
frequency. So let's use that one to fake Mac OS X into believing the
bus frequency is tbfreq * 4. That way Mac OS X will automatically
calculate the correct timebase frequency.

With this patch and the patch set I posted earlier I can successfully
run Mac OS X 10.2, 10.3 and 10.4 guests with -M mac99 on TCG and KVM.

Fantastic! I thought you mentioned before that there was a problem with the way in which OS X used the MMU which meant it wouldn't be possible to run under KVM but I guess that has been fixed now?

Also do any of these changes help any of the *BSDs to boot further?


ATB,

Mark.




reply via email to

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