Skip to content

nSVM: Minor cleanups for intercepts code

Yosry Ahmed kvm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3KVM: nSVM: Use intuitive local variables in recalc_intercepts()arch/x86/kvm/svm/nested.c+15 -164 replies
2/3KVM: nSVM: Rename recalc_intercepts() to clarify vmcb02 as the targetarch/x86/kvm/svm/nested.c arch/x86/kvm/svm/sev.c arch/x86/kvm/svm/svm.c +1 more+10 -102 replies
3/3KVM: nSVM: Use vmcb12_is_intercept() in nested_sync_control_from_vmcb02()arch/x86/kvm/svm/nested.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] nSVM: Minor cleanups for intercepts code

A few minor cleanups for nested intercepts code, namely making recalc_intercepts() more readable and renaming it, and using vmcb12_is_intercept() instead of open-coding it.

Yosry Ahmed (3):
KVM: nSVM: Use intuitive local variables in recalc_intercepts()
KVM: nSVM: Rename recalc_intercepts() to clarify vmcb02 as the target
KVM: nSVM: Use vmcb12_is_intercept() in
nested_sync_control_from_vmcb02()

 arch/x86/kvm/svm/nested.c | 37 ++++++++++++++++++-------------------
 arch/x86/kvm/svm/sev.c    |  2 +-
 arch/x86/kvm/svm/svm.c    |  4 ++--
 arch/x86/kvm/svm/svm.h    | 10 +++++-----
 4 files changed, 26 insertions(+), 27 deletions(-)
Signature · 1 line
2.52.0.457.g6b5491de43-goog