target/i386/kvm: Cleanup the kvmclock feature name
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 10 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | target/i386/kvm: Add feature bit definitions for KVM CPUIDhw/ target/ target/ | +39 | 1 reply | |
| 2/7 | target/i386/kvm: Remove local MSR_KVM_WALL_CLOCK and MSR_KVM_SYSTEM_TIME definitionstarget/ | +0 | 1 reply | |
| 3/7 | target/i386/kvm: Only Save/load kvmclock MSRs when kvmclock enabledtarget/ | +8 | 0 replies | |
| 4/7 | target/i386/kvm: Save/load MSRs of new kvmclock (KVM_FEATURE_CLOCKSOURCE2)target/ target/ | +18 | 0 replies | |
| 5/7 | target/i386/kvm: Add legacy_kvmclock cpu propertyhw/ target/ target/ +1 more | +28 | 0 replies | |
| 6/7 | target/i386: Fix duplicated kvmclock name in FEAT_KVMtarget/ target/ | +3 | 0 replies | |
| 7/7 | target/i386/kvm: Update comment in kvm_cpu_realizefn()target/ | +4 | 0 replies |
Reviews trailers per patch
1 of 7 patches has a Reviewed-by or Acked-by.
| Patch | Xiaoyao Li |
|---|---|
| 1/7 | |
| 2/7 | R-b |
| 3/7 | |
| 4/7 | |
| 5/7 | |
| 6/7 | |
| 7/7 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH for-9.1 0/7] target/i386/kvm: Cleanup the kvmclock feature name
From: Zhao Liu <[email protected]>
Hi list,
This series is based on Paolo's guest_phys_bits patchset [1].
Currently, the old and new kvmclocks have the same feature name "kvmclock" in FeatureWordInfo[FEAT_KVM].
When I tried to dig into the history of this unusual naming and fix it, I realized that Tim was already trying to rename it, so I picked up his renaming patch [2] (with a new commit message and other minor changes).
13 years age, the same name was introduced in [3], and its main purpose is to make it easy for users to enable/disable 2 kvmclocks. Then, in 2012, Don tried to rename the new kvmclock, but the follow-up did not address Igor and Eduardo's comments about compatibility.
Tim [2], not long ago, and I just now, were both puzzled by the naming one after the other.
So, this series is to push for renaming the new kvmclock feature to "kvmclock2" and adding compatibility support for older machines (PC 9.0 and older).
Finally, let's put an end to decades of doubt about this name.
Next Step
=========
This series just separates the two kvmclocks from the naming, and in subsequent patches I plan to stop setting kvmclock(old kcmclock) by default as long as KVM supports kvmclock2 (new kvmclock).
Also, try to deprecate the old kvmclock in KVM side.
[1]: https://lore.kernel.org/qemu-devel/[email protected]/
[2]: https://lore.kernel.org/qemu-devel/[email protected]/
[3]: https://lore.kernel.org/qemu-devel/[email protected]/
[4]: https://lore.kernel.org/qemu-devel/[email protected]/
Thanks and Best Regards,
Zhao
---
Tim Wiederhake (1):
target/i386: Fix duplicated kvmclock name in FEAT_KVM
Zhao Liu (6):
target/i386/kvm: Add feature bit definitions for KVM CPUID target/i386/kvm: Remove local MSR_KVM_WALL_CLOCK and
MSR_KVM_SYSTEM_TIME definitions
target/i386/kvm: Only Save/load kvmclock MSRs when kvmclock enabled target/i386/kvm: Save/load MSRs of new kvmclock
(KVM_FEATURE_CLOCKSOURCE2)
target/i386/kvm: Add legacy_kvmclock cpu property target/i386/kvm: Update comment in kvm_cpu_realizefn()
hw/i386/kvm/clock.c | 5 ++-- hw/i386/pc.c | 1 + target/i386/cpu.c | 3 +- target/i386/cpu.h | 32 +++++++++++++++++++++ target/i386/kvm/kvm-cpu.c | 25 ++++++++++++++++- target/i386/kvm/kvm.c | 59 +++++++++++++++++++++++++-------------- 6 files changed, 99 insertions(+), 26 deletions(-)
Signature · 1 line
2.34.1