Re: [PATCH] KVM/MMU: Simplify __kvm_sync_page() function

2018-07-18 Thread Paolo Bonzini
On 18/07/2018 08:12, Tianyu Lan wrote: > Merge check of "sp->role.cr4_pae != !!is_pae(vcpu))" and "vcpu-> > arch.mmu.sync_page(vcpu, sp) == 0". kvm_mmu_prepare_zap_page() > is called under both these conditions. > > Signed-off-by: Lan Tianyu > --- > arch/x86/kvm/mmu.c | 8 ++-- > 1 file chan

[PATCH] KVM/MMU: Simplify __kvm_sync_page() function

2018-07-17 Thread Tianyu Lan
Merge check of "sp->role.cr4_pae != !!is_pae(vcpu))" and "vcpu-> arch.mmu.sync_page(vcpu, sp) == 0". kvm_mmu_prepare_zap_page() is called under both these conditions. Signed-off-by: Lan Tianyu --- arch/x86/kvm/mmu.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/arch