Skip to content

KVM: VMX: CR0/CR4 guest/host masks cleanup

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 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: x86: Mark CR4.TSD as being possibly owned by the guestarch/x86/kvm/kvm_cache_regs.h arch/x86/kvm/vmx/vmx.c+3 -10 replies
2/2KVM: VMX: Use KVM_POSSIBLE_CR*_GUEST_BITS to initialize guest/host masksarch/x86/kvm/vmx/nested.c arch/x86/kvm/vmx/vmx.c+7 -120 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/2] KVM: VMX: CR0/CR4 guest/host masks cleanup

Fix a bug where CR4.TSD isn't correctly marked as being possibly owned by the guest in the common x86 macro, then clean up the mess that made the bug possible by throwing away VMX's mix of duplicate code and open coded tweaks. The lack of a define for the guest-owned CR0 bit has bugged me for a long time, but adding another define always seemed ridiculous.

Sean Christopherson (2):
KVM: x86: Mark CR4.TSD as being possibly owned by the guest
KVM: VMX: Use KVM_POSSIBLE_CR*_GUEST_BITS to initialize guest/host
masks

 arch/x86/kvm/kvm_cache_regs.h |  2 +-
 arch/x86/kvm/vmx/nested.c     |  4 ++--
 arch/x86/kvm/vmx/vmx.c        | 13 +++++--------
 3 files changed, 8 insertions(+), 11 deletions(-)
Signature · 1 line
2.26.0