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. > > 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. Paolo