linux-next: manual merge of the kvm tree with the kvm-fixes tree

Mark Brown <[email protected]>
Newsgroups org.kernel.vger.linux-next,org.kernel.vger.kvm,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
Hi all,

Today's linux-next merge of the kvm tree got a conflict in:

  arch/x86/kvm/mmu/mmu.c

between commit:

  26505e1b5b546 ("KVM: SVM: make svm_flush_tlb_gva do a full asid flush if NPT enabled")

from the kvm-fixes tree and commits:

  148fe965df16a ("KVM: x86/mmu: unify root_gva_walk and ngva_walk")
  0a59a8b8a248e ("KVM: x86/mmu: pull struct kvm_pagewalk out of struct kvm_mmu")

from the kvm tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

diff --cc arch/x86/kvm/mmu/mmu.c
index c9e4739b26d71,6c13da942bfcc..0000000000000
--- a/arch/x86/kvm/mmu/mmu.c
+++ b/arch/x86/kvm/mmu/mmu.c
@@@ -6652,9 -6672,17 +6695,17 @@@ void kvm_mmu_invalidate_addr(struct kvm
  		if (is_noncanonical_invlpg_address(addr, vcpu))
  			return;
  
 -		kvm_x86_call(flush_tlb_gva)(vcpu, addr);
 +		kvm_x86_call(flush_tlb_gva)(vcpu, addr, NULL);
+ 
+ 		if (tdp_enabled)
+ 			return;
+ 
+ 		mmu = &vcpu->arch.root_mmu;
+ 	} else {
+ 		mmu = &vcpu->arch.guest_mmu;
  	}
  
+ 	/* Invalidate shadow pages, whether GPA->GVA or nGPA->GPA.  */
  	if (!mmu->sync_spte)
  		return;
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmp17YUACgkQJNaLcl1U
h9AVUAgAgIX5tIYRaJG9B3m89By7oIhCs35oJAjtcCHQSTkB0jR7Vz64ClLVnxPF
hav9G+s/hWf3sTzHmJBt1y2h3fDlK7EVzFxFaEJ3cxIYlqFNP0ye2XdmcqKo2zns
m3JYnhfBv+oDfKNZhuTfBay26PXrkUfcHrtS8aIj9eaSXgAyAQ1LRCTJp1rEtbyH
V7Go0ju+/82eEGpb+kSIKZe331K05Oh+wJ7v9ll1XP0naGIflL+4Lv0SfC7HoNCf
S/kBsVeMGwYL13ADn8sbVHlyRwSUSHug1ZC4VKRuZBdruLm3Qs9KbR6WoAU7CXL+
svh4d/D79I77wwPrxbxjaVz1pxD6Fg==
=yEOi
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.