Re: [PATCH v3 00/21] KVM: Dirty ring interface

From: Paolo Bonzini
Date: Thu Jan 09 2020 - 15:42:50 EST


On 09/01/20 20:39, Peter Xu wrote:
>>
>> IIUC at the moment KVM never uses huge pages if any part of the huge page is
>> tracked.
>
> To be more precise - I think it's per-memslot. Say, if the memslot is
> dirty tracked, then no huge page on the host on that memslot (even if
> guest used huge page over that).
>
>> But if all parts of the page are written to then huge page
>> is used.
>
> I'm not sure of this... I think it's still in 4K granularity.

Right. Dirty tracking always uses 4K page size.

Paolo