Unverified Commit af276270 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!3848 [22.03-LTS-SP3] Bug fix for KVM MMU

Merge Pull Request from: @yuzhang_intel 
 
Title: Bug fix for KVM MMU

Content:
This PR is to fix a bug in KVM MMU. The bug can cause a failure to create a nested VM, when 
- host is an AMD CPU &&
- host is running in 64-bit mode &&
- L1 VMM is running in 32-bit/PAE mode &&
- L1 VMM tries to create L2 using NPT.

Intel-kernel issue:
https://gitee.com/openeuler/intel-kernel/issues/I8UBIZ 
 
Link:https://gitee.com/openeuler/kernel/pulls/3848

 

Reviewed-by: default avatarZenghui Yu <yuzenghui@huawei.com>
Reviewed-by: default avatarJason Zeng <jason.zeng@intel.com>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parents f1fdfcca 76838c25
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3464,6 +3464,7 @@ static int mmu_alloc_special_roots(struct kvm_vcpu *vcpu)
		return -ENOMEM;

#ifdef CONFIG_X86_64
	pml4_root = (void *)get_zeroed_page(GFP_KERNEL_ACCOUNT);
	if (!pml4_root)
		goto err_pml4;