This is my take on Junaid and Sean's patch, from the TLB cleanup series. It passes initial tests, including my usual guest installation and kvm-unit-tests battery (with both ept=0 and ept=1), but I'm not sure if there's anything that isn't covered by kvm-unit-tests, especially for nested. I have not yet run guest installation tests under nested virt but I will before merging the whole TLB cleanup series. Please review! Junaid Shahid (1): KVM: x86: Sync SPTEs when injecting page/EPT fault into L1 Paolo Bonzini (2): KVM: x86: introduce kvm_mmu_invalidate_gva KVM: x86: cleanup kvm_inject_emulated_page_fault arch/x86/include/asm/kvm_host.h | 2 + arch/x86/kvm/mmu/mmu.c | 77 +++++++++++++++++++-------------- arch/x86/kvm/mmu/paging_tmpl.h | 2 +- arch/x86/kvm/vmx/nested.c | 12 ++--- arch/x86/kvm/vmx/vmx.c | 2 +- arch/x86/kvm/x86.c | 16 +++++-- 6 files changed, 67 insertions(+), 44 deletions(-) -- 2.18.2