Skip to content

target/i386: Misc cleanup on KVM PV defs, outdated comments and error handling

Zhao Liu kvm qemu-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest9 patches 10 repliesIn review
  2. v38 patches 2 repliesSuperseded
  3. v26 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v16 patches5 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9target/i386/kvm: Add feature bit definitions for KVM CPUIDhw/i386/kvm/clock.c target/i386/cpu.h target/i386/kvm/kvm.c+39 -171 reply
2/9target/i386/kvm: Remove local MSR_KVM_WALL_CLOCK and MSR_KVM_SYSTEM_TIME definitionstarget/i386/kvm/kvm.c+0 -31 reply
3/9target/i386/kvm: Only save/load kvmclock MSRs when kvmclock enabledtarget/i386/kvm/kvm.c+8 -41 reply
4/9target/i386/kvm: Save/load MSRs of kvmclock2 (KVM_FEATURE_CLOCKSOURCE2)target/i386/cpu.h target/i386/kvm/kvm.c+18 -01 reply
5/9target/i386/kvm: Drop workaround for KVM_X86_DISABLE_EXITS_HTL typotarget/i386/kvm/kvm.c+0 -41 reply
6/9target/i386/confidential-guest: Fix comment of x86_confidential_guest_kvm_type()target/i386/confidential-guest.h+1 -10 replies
7/9target/i386/kvm: Clean up return values of MSR filter related functionstarget/i386/kvm/kvm.c target/i386/kvm/kvm_i386.h+16 -221 reply
8/9target/i386/kvm: Clean up error handling in kvm_arch_init()target/i386/kvm/kvm.c+7 -31 reply
9/9target/i386/kvm: Replace ARRAY_SIZE(msr_handlers) with KVM_MSR_FILTER_MAX_RANGEStarget/i386/kvm/kvm.c+3 -31 reply

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by.

PatchXiaoyao LiPankaj GuptaZide Chen
1/9R-b
2/9R-b R-b
3/9R-b
4/9R-b
5/9R-b
6/9R-b
7/9R-b
8/9R-b
9/9R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/9] target/i386: Misc cleanup on KVM PV defs, outdated comments and error handling

Hi,

This is my v4 cleanup series. Compared with v3 [1],
* Returned kvm_vm_ioctl() directly in kvm_install_msr_filters().
* Added a patch (patch 9) to clean up ARRAY_SIZE(msr_handlers).

Background and Introduction
===========================

This series picks cleanup from my previous kvmclock [2] (as other renaming attempts were temporarily put on hold).

In addition, this series also include the cleanup on a historically workaround, recent comment of coco interface [3] and error handling corner cases in kvm_arch_init().

Avoiding the fragmentation of these misc cleanups, I consolidated them all in one series and was able to tackle them in one go!

[1]: https://lore.kernel.org/qemu-devel/[email protected]/T/
[2]: https://lore.kernel.org/qemu-devel/[email protected]/
[3]: https://lore.kernel.org/qemu-devel/[email protected]/

Thanks and Best Regards,
Zhao
---
Zhao Liu (9):
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 kvmclock2
(KVM_FEATURE_CLOCKSOURCE2)
target/i386/kvm: Drop workaround for KVM_X86_DISABLE_EXITS_HTL typo target/i386/confidential-guest: Fix comment of
x86_confidential_guest_kvm_type()
target/i386/kvm: Clean up return values of MSR filter related
functions
target/i386/kvm: Clean up error handling in kvm_arch_init() target/i386/kvm: Replace ARRAY_SIZE(msr_handlers) with
KVM_MSR_FILTER_MAX_RANGES

 hw/i386/kvm/clock.c              |   5 +-
 target/i386/confidential-guest.h |   2 +-
 target/i386/cpu.h                |  25 +++++++
 target/i386/kvm/kvm.c            | 113 +++++++++++++++++--------------
 target/i386/kvm/kvm_i386.h       |   4 +-
 5 files changed, 92 insertions(+), 57 deletions(-)
Signature · 1 line
2.34.1