Re: [PATCH v2 1/9] KVM: x86: Add AMD SEV specific Hypercall3

From: Sean Christopherson
Date: Fri Jan 08 2021 - 11:57:11 EST


On Thu, Jan 07, 2021, Steve Rutherford wrote:
> Supporting merging of consecutive entries (or not) is less important
> to get right since it doesn't change any of the APIs. If someone runs
> into performance issues, they can loop back and fix this then. I'm
> slightly concerned with the behavior for overlapping regions.

I'm assuming merging entries will be a near-trivial effort once everything else
is implemented, e.g. KVM will need to traverse the list to remove entries when
address are converted back to private. Piling on merging functionality at that
point should not be all that hard, especially if the list is sorted and entries
are merged on insertion.