]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Merge branch 'kvm-single-pdptrs' into HEAD
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 12 Jun 2026 08:47:24 +0000 (10:47 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 12 Jun 2026 08:47:24 +0000 (10:47 +0200)
The non-MMU changes/preliminary cleanups from the "split kvm_mmu in
three" series[1].  The final outcome is to have a single copy of the
PDPTRs (in vcpu->arch) instead of two (in root_mmu and nested_mmu).

[1] https://lore.kernel.org/kvm/20260603105814.10236-1-pbonzini@redhat.com/T/#t

1  2 
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/regs.h
arch/x86/kvm/svm/nested.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/vmx/nested.c
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/x86.c
arch/x86/kvm/x86.h

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index acb22167901faa2fc541570d5a8543fac01405da,60ff064de12fda061f7b58b377d5aeb4da44a4b6..9de577ef9c9741fa91714efec8c9f1ba07cbe854
@@@ -254,9 -290,29 +254,9 @@@ static inline bool x86_exception_has_er
  
  static inline bool mmu_is_nested(struct kvm_vcpu *vcpu)
  {
-       return vcpu->arch.walk_mmu == &vcpu->arch.nested_mmu;
+       return vcpu->arch.mmu == &vcpu->arch.guest_mmu;
  }
  
 -static inline bool is_pae(struct kvm_vcpu *vcpu)
 -{
 -      return kvm_is_cr4_bit_set(vcpu, X86_CR4_PAE);
 -}
 -
 -static inline bool is_pse(struct kvm_vcpu *vcpu)
 -{
 -      return kvm_is_cr4_bit_set(vcpu, X86_CR4_PSE);
 -}
 -
 -static inline bool is_paging(struct kvm_vcpu *vcpu)
 -{
 -      return likely(kvm_is_cr0_bit_set(vcpu, X86_CR0_PG));
 -}
 -
 -static inline bool is_pae_paging(struct kvm_vcpu *vcpu)
 -{
 -      return !is_long_mode(vcpu) && is_pae(vcpu) && is_paging(vcpu);
 -}
 -
  static inline u8 vcpu_virt_addr_bits(struct kvm_vcpu *vcpu)
  {
        return kvm_is_cr4_bit_set(vcpu, X86_CR4_LA57) ? 57 : 48;