Re: [PATCH v6 01/22] KVM: x86: Allocate new rmap and large page tracking when moving memslot

2020-02-19 Thread Peter Xu
On Tue, Feb 18, 2020 at 01:07:15PM -0800, Sean Christopherson wrote: > Reallocate a rmap array and recalcuate large page compatibility when > moving an existing memslot to correctly handle the alignment properties > of the new memslot. The number of rmap entries required at each level > is depende

[PATCH v6 01/22] KVM: x86: Allocate new rmap and large page tracking when moving memslot

2020-02-18 Thread Sean Christopherson
Reallocate a rmap array and recalcuate large page compatibility when moving an existing memslot to correctly handle the alignment properties of the new memslot. The number of rmap entries required at each level is dependent on the alignment of the memslot's base gfn with respect to that level, e.g