Skip to content

KVM: x86: Cleanup kvm_get_dr() usage

Sean Christopherson kvm lkml 1 version Applied

Status from this message: Applied to kvm-x86 misc, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: x86: Make kvm_get_dr() return a value, not use an out parameterarch/x86/include/asm/kvm_host.h arch/x86/kvm/emulate.c arch/x86/kvm/kvm_emulate.h +5 more+21 -491 reply
2/2KVM: x86: Open code all direct reads to guest DR6 and DR7arch/x86/kvm/smm.c arch/x86/kvm/vmx/nested.c arch/x86/kvm/x86.c+6 -61 reply

Reviews trailers per patch

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

PatchMathias Krause
1/2A-b R-b
2/2R-b

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

Read the v1 thread

Cover letter [PATCH 0/2] KVM: x86: Cleanup kvm_get_dr() usage

Make kvm_get_dr() use an actual return instead of a void return with an output, which led to a _lot_ of ugly code, and then open code all direct reads to DR6 and DR7, as KVM has a goofy mix of some flows open coding reads and some flows bouncing through kvm_get_dr().

Sean Christopherson (2):
KVM: x86: Make kvm_get_dr() return a value, not use an out parameter
KVM: x86: Open code all direct reads to guest DR6 and DR7

 arch/x86/include/asm/kvm_host.h |  2 +-
 arch/x86/kvm/emulate.c          | 17 ++++-------------
 arch/x86/kvm/kvm_emulate.h      |  2 +-
 arch/x86/kvm/smm.c              | 15 ++++-----------
 arch/x86/kvm/svm/svm.c          |  7 ++-----
 arch/x86/kvm/vmx/nested.c       |  2 +-
 arch/x86/kvm/vmx/vmx.c          |  5 +----
 arch/x86/kvm/x86.c              | 20 +++++++-------------
 8 files changed, 21 insertions(+), 49 deletions(-)

base-commit: 873eef46b33c86be414d60bd00390e64fc0f006f

Signature · 1 line
2.43.0.687.g38aa6559b0-goog