From: marc.zyngier@arm.com (Marc Zyngier)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC PATCH] KVM: arm/arm64: Don't let userspace update CNTVOFF once guest is running
Date: Wed, 08 Jul 2015 16:56:42 +0100 [thread overview]
Message-ID: <559D483A.40507@arm.com> (raw)
In-Reply-To: <CAFEAcA-vS8B8pJUSseFw0OaKJFPe-0rMT-XHxjNbSvyxaZ+9Tg@mail.gmail.com>
On 29/06/15 18:37, Peter Maydell wrote:
> On 29 June 2015 at 18:20, Claudio Fontana <claudio.fontana@huawei.com> wrote:
>> On 26.06.2015 06:49, Jan Kiszka wrote:
>>> QEMU has the concept of write-back levels: KVM_PUT_RUNTIME_STATE,
>>> KVM_PUT_RESET_STATE and KVM_PUT_FULL_STATE. I suspect this registers is
>>> just sorted into the wrong category, thus written as part of the
>>> RUNTIME_STATE. We had such bug patterns during the x86 maturing phase as
>>> well.
>
>> It seems that QEMU target-arm ignores the level parameter to
>> kvm_arch_put_registers completely.
>>
>> Is it intended?
>
> Yes, sort of. We don't in general know anything about the semantics
> of most of the system registers. It should always be safe to
> read them all out of the kernel and write them back...
I'm not sure you can safely assume this for time related things, unless
you can guarantee that all vcpus are stopped. Claudio is seeing time
jumping in weird ways, and so have I, which would tend to show that QEMU
is introducing some jitter.
Maybe not easily observable on real hardware, but the FastModel is
enough to show the issue.
So unless someone has a better solution, I'm seriously considering
getting this patch merged.
Thanks,
M.
--
Jazz is not dead. It just smells funny...
next prev parent reply other threads:[~2015-07-08 15:56 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-24 14:54 [RFC PATCH] KVM: arm/arm64: Don't let userspace update CNTVOFF once guest is running Marc Zyngier
2015-06-25 8:04 ` Christoffer Dall
2015-06-25 8:48 ` Marc Zyngier
2015-06-25 8:59 ` Claudio Fontana
2015-06-25 9:10 ` Peter Maydell
2015-06-25 9:25 ` Claudio Fontana
2015-06-26 4:49 ` Jan Kiszka
2015-06-29 17:20 ` Claudio Fontana
2015-06-29 17:37 ` Peter Maydell
2015-07-08 15:56 ` Marc Zyngier [this message]
2015-07-08 16:06 ` Peter Maydell
2015-07-08 16:37 ` Marc Zyngier
2015-07-08 19:13 ` Peter Maydell
2015-07-09 10:22 ` Christoffer Dall
2015-07-09 10:38 ` Peter Maydell
2015-07-09 12:05 ` Christoffer Dall
2015-07-09 12:07 ` Peter Maydell
2015-07-09 12:24 ` Christoffer Dall
2015-07-09 14:17 ` Christoffer Dall
2015-07-09 14:26 ` Peter Maydell
2015-07-09 16:06 ` Christoffer Dall
2015-07-09 10:40 ` Jan Kiszka
2015-07-09 12:08 ` Christoffer Dall
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=559D483A.40507@arm.com \
--to=marc.zyngier@arm.com \
--cc=linux-arm-kernel@lists.infradead.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).