[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YUn4Qq/vrqRai/FB@kroah.com>
Date: Tue, 21 Sep 2021 17:20:34 +0200
From: Greg KH <gregkh@...uxfoundation.org>
To: "Longpeng(Mike)" <longpeng2@...wei.com>
Cc: andraprs@...zon.com, lexnv@...zon.com, alcioa@...zon.com,
linux-kernel@...r.kernel.org, arei.gonglei@...wei.com,
kamal@...onical.com, pbonzini@...hat.com, sgarzare@...hat.com,
stefanha@...hat.com, vkuznets@...hat.com,
ne-devel-upstream@...zon.com
Subject: Re: [PATCH v2 1/4] nitro_enclaves: merge contiguous physical memory
regions
On Tue, Sep 21, 2021 at 11:10:36PM +0800, Longpeng(Mike) wrote:
> There can be cases when there are more memory regions that need to be
> set for an enclave than the maximum supported number of memory regions
> per enclave. One example can be when the memory regions are backed by 2
> MiB hugepages (the minimum supported hugepage size).
>
> Let's merge the adjacent regions if they are physical contiguous. This
> way the final number of memory regions is less than before merging and
> could potentially avoid reaching maximum.
>
> Signed-off-by: Longpeng(Mike) <longpeng2@...wei.com>
> ---
> drivers/virt/nitro_enclaves/ne_misc_dev.c | 87 ++++++++++++++++++++-----------
> 1 file changed, 58 insertions(+), 29 deletions(-)
>
What changed from v1?
Powered by blists - more mailing lists