From: Alexander Graf <agraf@suse.de>
To: Alexey Kardashevskiy <aik@ozlabs.ru>
Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v7] spapr: Add support for time base offset migration
Date: Thu, 08 May 2014 14:27:39 +0200 [thread overview]
Message-ID: <536B783B.5030902@suse.de> (raw)
In-Reply-To: <5368F6C3.8000307@ozlabs.ru>
On 05/06/2014 04:50 PM, Alexey Kardashevskiy wrote:
> On 05/01/2014 08:37 PM, Alexey Kardashevskiy wrote:
>> This allows guests to have a different timebase origin from the host.
>>
>> This is needed for migration, where a guest can migrate from one host
>> to another and the two hosts might have a different timebase origin.
>> However, the timebase seen by the guest must not go backwards, and
>> should go forwards only by a small amount corresponding to the time
>> taken for the migration.
>>
>> This is only supported for recent POWER hardware which has the TBU40
>> (timebase upper 40 bits) register. That includes POWER6, 7, 8 but not
>> 970.
>>
>> This adds kvm_access_one_reg() to access a special register which is not
>> in env->spr. This requires kvm_set_one_reg/kvm_get_one_reg patch.
>>
>> The feature must be present in the host kernel.
>>
>> This bumps vmstate_spapr::version_id and enables new vmstate_ppc_timebase
>> only for it. Since the vmstate_spapr::minimum_version_id remains
>> unchanged, migration from older QEMU is supported but without
>> vmstate_ppc_timebase.
>>
>> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
>> ---
>> Changes:
>> v7:
>> * migration_duration_ns forced to be between [0...1s]
>> * s/tb/tb_remote/
>> * time_of_the_day_ns is int64_t now as this is what get_clock_realtime()
>> returns
> Still bad? :)
The dependency isn't fulfilled yet :)
Alex
next prev parent reply other threads:[~2014-05-08 12:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-01 10:37 [Qemu-devel] [PATCH v7] spapr: Add support for time base offset migration Alexey Kardashevskiy
2014-05-06 14:50 ` Alexey Kardashevskiy
2014-05-08 12:27 ` Alexander Graf [this message]
2014-05-15 15:52 ` Alexey Kardashevskiy
2014-05-16 13:08 ` Alexander Graf
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=536B783B.5030902@suse.de \
--to=agraf@suse.de \
--cc=aik@ozlabs.ru \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@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).