Re: [PATCH 0/2] KVM: x86/mmu: .change_pte() optimization in TDP MMU

From: Paolo Bonzini
Date: Wed Sep 06 2023 - 18:18:21 EST


On Tue, Sep 5, 2023 at 10:18 PM Sean Christopherson <seanjc@xxxxxxxxxx> wrote:
> Ooh, actually, maybe we could do
>
> static bool <name_tbd> = !IS_ENABLED(CONFIG_KSM);
>
> and then cross our fingers that that doesn't regress some other funky setups.

It probably breaks gvisor-like setups that use MAP_PRIVATE mmap for
memslots? It would instantly break CoW even if memory is never
written.

Paolo