qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 14/21] MIPS: KVM: Add nanosecond count bias KVM


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH 14/21] MIPS: KVM: Add nanosecond count bias KVM register
Date: Wed, 28 May 2014 18:24:04 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

Il 28/05/2014 16:21, James Hogan ha scritto:
The implementation in QEMU that I've settled upon makes do with just
COUNT_CTL and COUNT_RESUME, but with a slight kernel modification so
that COUNT_RESUME is writeable (to any positive monotonic nanosecond
value <= now). It works fairly cleanly and correctly even with stopping
and starting VM clock (gdb, stop/cont, savevm/loadvm, live migration),
to match the behaviour of the existing mips cpu timer emulation, so I
plan to drop this bias patch, and will post a v2 patchset soon with just
a few modifications.

It makes sense to have writable registers in the emulator, even if they are read-only in real hardware. We also do that for x86, FWIW.

So the idea looks okay to me.

Paolo



reply via email to

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