Re: [PATCH V2] kvm x86/mmu: use KVM_REQ_MMU_SYNC to sync when needed

2020-09-11 Thread Paolo Bonzini
On 02/09/20 15:54, Lai Jiangshan wrote: > From: Lai Jiangshan > > When kvm_mmu_get_page() gets a page with unsynced children, the spt > pagetable is unsynchronized with the guest pagetable. But the > guest might not issue a "flush" operation on it when the pagetable > entry is changed from zero

Re: [PATCH V2] kvm x86/mmu: use KVM_REQ_MMU_SYNC to sync when needed

2020-09-02 Thread Sean Christopherson
On Wed, Sep 02, 2020 at 04:12:55PM +0200, Vitaly Kuznetsov wrote: > Lai Jiangshan writes: > > > From: Lai Jiangshan > > > > When kvm_mmu_get_page() gets a page with unsynced children, the spt > > pagetable is unsynchronized with the guest pagetable. But the > > guest might not issue a "flush"

Re: [PATCH V2] kvm x86/mmu: use KVM_REQ_MMU_SYNC to sync when needed

2020-09-02 Thread Vitaly Kuznetsov
Lai Jiangshan writes: > From: Lai Jiangshan > > When kvm_mmu_get_page() gets a page with unsynced children, the spt > pagetable is unsynchronized with the guest pagetable. But the > guest might not issue a "flush" operation on it when the pagetable > entry is changed from zero or other cases.

[PATCH V2] kvm x86/mmu: use KVM_REQ_MMU_SYNC to sync when needed

2020-09-02 Thread Lai Jiangshan
From: Lai Jiangshan When kvm_mmu_get_page() gets a page with unsynced children, the spt pagetable is unsynchronized with the guest pagetable. But the guest might not issue a "flush" operation on it when the pagetable entry is changed from zero or other cases. The hypervisor has the