Re: [PATCH] KVM: x86: nSVM: fix switch to guest mmu

2018-12-19 Thread Paolo Bonzini
On 19/12/18 17:25, Vitaly Kuznetsov wrote: > Recent optimizations in MMU code broke nested SVM with NPT in L1 > completely: when we do nested_svm_{,un}init_mmu_context() we want > to switch from TDP MMU to shadow MMU, both init_kvm_tdp_mmu() and > kvm_init_shadow_mmu() check if re-configuration is

[PATCH] KVM: x86: nSVM: fix switch to guest mmu

2018-12-19 Thread Vitaly Kuznetsov
Recent optimizations in MMU code broke nested SVM with NPT in L1 completely: when we do nested_svm_{,un}init_mmu_context() we want to switch from TDP MMU to shadow MMU, both init_kvm_tdp_mmu() and kvm_init_shadow_mmu() check if re-configuration is needed by looking at cache source data. The data,