KVM/x86: Drop "1" as MSR emulation return value
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest posting 2/26 patches 10 repliesIn review
- v2 posting 1/25 patches 1 replySuperseded
Changes in v2 from the cover letter
- series carved out from initial "KVM: Avoid literal numbers as return values" series
- don't use new KVM_MSR_RET_* defines, but 0 and -errno
Patches in v2 posting 2/2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | KVM/x86: Change comment before KVM_MSR_RET_* definesarch/ | +2 | 0 replies | |
| 2/6 | KVM/x86: Return -errno instead of "1" for APIC related MSR emulationarch/ | +19 | 0 replies | |
| 3/6 | KVM/x86: Return -errno instead of "1" for Hyper-V related MSR emulationarch/ | +36 | 0 replies | |
| 4/6 | KVM/x86: Return -errno instead of "1" for VMX related MSR emulationarch/ arch/ arch/ +1 more | +62 | 0 replies | |
| 5/6 | KVM/x86: Return -errno instead of "1" for SVM related MSR emulationarch/ arch/ | +20 | 0 replies | |
| 6/6 | KVM/x86: Return -errno instead of "1" for common MSR emulationarch/ arch/ arch/ +1 more | +63 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/6] KVM/x86: Drop "1" as MSR emulation return value
Get rid of the literal "1" used as general error return value in KVM MSR emulation. It can easily be replaced by negative errno values instead.
This is meant to avoid confusion with the literal "1" used as return value for "return to guest".
Changes in V2:
- series carved out from initial "KVM: Avoid literal numbers as return values" series
- don't use new KVM_MSR_RET_* defines, but 0 and -errno
Juergen Gross (6):
KVM/x86: Change comment before KVM_MSR_RET_* defines KVM/x86: Return -errno instead of "1" for APIC related MSR emulation KVM/x86: Return -errno instead of "1" for Hyper-V related MSR
emulation
KVM/x86: Return -errno instead of "1" for VMX related MSR emulation KVM/x86: Return -errno instead of "1" for SVM related MSR emulation KVM/x86: Return -errno instead of "1" for common MSR emulation
arch/x86/kvm/hyperv.c | 72 ++++++++++++------------- arch/x86/kvm/lapic.c | 39 +++++++------- arch/x86/kvm/mtrr.c | 6 +-- arch/x86/kvm/pmu.c | 8 +-- arch/x86/kvm/svm/pmu.c | 4 +- arch/x86/kvm/svm/svm.c | 36 ++++++------- arch/x86/kvm/vmx/nested.c | 2 +- arch/x86/kvm/vmx/pmu_intel.c | 16 +++--- arch/x86/kvm/vmx/tdx.c | 10 ++-- arch/x86/kvm/vmx/vmx.c | 96 ++++++++++++++++----------------- arch/x86/kvm/x86.c | 102 +++++++++++++++++------------------ arch/x86/kvm/x86.h | 4 +- arch/x86/kvm/xen.c | 10 ++-- 13 files changed, 202 insertions(+), 203 deletions(-)
Signature · 1 line
2.54.0