On Wed, May 22, 2024 at 05:45:39PM +0200, Paolo Bonzini wrote: > On Wed, May 22, 2024 at 8:49 AM Yan Zhao <yan.y.zhao@xxxxxxxxx> wrote: > > > Disabling the quirk would allow KVM to choose between a slow/precise/partial zap, > > > and full/fast zap. > > TDX needs to disable the quirk for slow/precise/partial zap, right? > > Yes - and since TDX is a separate VM type it might even start with the > quirk disabled. For sure, the memslot flag is the worst option and I'd > really prefer to avoid it. Thanks. Will implement a quirk and let TDX code in QEMU to disable the quirk. > > > > I have the same feeling that the bug is probably not reproducible with latest > > > KVM code > > Or with the latest QEMU code, if it was related somehow to non-atomic > changes to the memory map. > Thanks for this input. Will check if it's related.