Skip to content

KVM: Clean up guest/host cache read/write code

Sean Christopherson kvm lkml 1 version Applied

Status from this message: Queued, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3KVM: Check for a bad hva before dropping into the ghc slow pathvirt/kvm/kvm_main.c+6 -60 replies
2/3KVM: Clean up __kvm_gfn_to_hva_cache_init() and its callersvirt/kvm/kvm_main.c+12 -90 replies
3/3KVM: Return immediately if __kvm_gfn_to_hva_cache_init() failsvirt/kvm/kvm_main.c+8 -40 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] KVM: Clean up guest/host cache read/write code

Minor cleanup to fix the underlying crustiness that led to an uninitialized variable warning reported by Barret.

The first two patches are tagged with Fixes:, but I don't know that they're actually worth backporting to stable. Functionally, everthing works, it's just a bit weird and AFAICT not what is intended. It might be preferable to take Barret's patch[*] first and only mark that for stable, as it fixes the immediate issue without revamping __kvm_gfn_to_hva_cache_init().

[*] https://lkml.kernel.org/r/[email protected]

Sean Christopherson (3):
KVM: Check for a bad hva before dropping into the ghc slow path
KVM: Clean up __kvm_gfn_to_hva_cache_init() and its callers
KVM: Return immediately if __kvm_gfn_to_hva_cache_init() fails

 virt/kvm/kvm_main.c | 45 ++++++++++++++++++++++++++-------------------
 1 file changed, 26 insertions(+), 19 deletions(-)
Signature · 1 line
2.24.1