Skip to content

Allow migration with invtsc if TSC frequency is explicitly set

Eduardo Habkost kvm qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyIn review
  2. v22 patches 1 replySuperseded
  3. v14 patches 35 repliesSuperseded

Changes in v3 from the cover letter

* Fix build failure ((missing closing braces)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2kvm: Simplify invtsc checktarget/i386/kvm.c+2 -20 replies
2/2kvm: Allow invtsc migration if tsc-khz is set explicitlytarget/i386/kvm.c+11 -90 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchMarcelo Tosatti
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] Allow migration with invtsc if TSC frequency is explicitly set

This series makes QEMU accept migration if tsc-frequency is explicitly set on configuration. As management software is required to keep device configuration the same on migration source or destination, explicit tsc-frequency will ensure that either:

* The destination host has a matching TSC frequency; or
* The destination host has TSC scaling available.

Changelog
=========

v2 -> v3:
* Fix build failure ((missing closing braces)

v1 -> v2:
* v1 series subject was:
* [PATCH 0/4] Allow migration with invtsc if there's no frequency mismatch
* Removed patches 3/4 and 4/4, that allowed migration if no explicit tsc-frequency was set. Implementing the check on post_load or post_init is not enough to make migration abort, so we will need a more complex solution to implement that feature.

Plans for future work
=====================

1) Querying host TSC frequency/scaling capability
-------------------------------------------------

I plan to include TSC frequency/scaling information on query-cpu-model-expansion model="host" in a future series. Then management software will be able to automatically configure TSC frequency when invtsc is enabled, instead of requiring the user to configure it explicitly. While we don't implement that, invtsc migration will be possible only if the user configures TSC frequency manually.

2) invtsc migration with no explicit TSC frequency
--------------------------------------------------

A future series can implement migration when TSC frequency is not specified explicitly. It will be a bit more complex because it requires either letting the destination abort the migration, or sending TSC frequency/scaling information from destination to source.

---
Cc: Marcelo Tosatti <[email protected]>
Cc: "Daniel P. Berrange" <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: [email protected]
Cc: Haozhong Zhang <[email protected]>
Cc: "Michael S. Tsirkin" <[email protected]>
Cc: Igor Mammedov <[email protected]>
Cc: [email protected]
Cc: Jiri Denemark <[email protected]>

Eduardo Habkost (2):
kvm: Simplify invtsc check
kvm: Allow invtsc migration if tsc-khz is set explicitly

 target/i386/kvm.c | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)
Signature · 1 line
2.11.0.259.g40922b1