nitro_enclaves: Sanity check physical memory regions during merging
authorLongpeng <longpeng2@huawei.com>
Sun, 7 Nov 2021 14:09:15 +0000 (22:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Nov 2021 15:11:09 +0000 (16:11 +0100)
commit090ce7831d340e8be92e5f2a90617cca6e92156e
tree5eee991c5f831a22fb3a7ce1e043eda3b0327c8c
parentf6bdc0aafe88cf4c727e7bb00da1f480ecd80bee
nitro_enclaves: Sanity check physical memory regions during merging

Sanity check the physical memory regions during the merge of contiguous
regions. Thus we can test the physical memory regions setup logic
individually, including the error cases coming from the sanity checks.

Reviewed-by: Andra Paraschiv <andraprs@amazon.com>
Signed-off-by: Longpeng <longpeng2@huawei.com>
Link: https://lore.kernel.org/r/20211107140918.2106-3-longpeng2@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/virt/nitro_enclaves/ne_misc_dev.c