Re: [PATCH 10/12] mm: x86: Invoke hypercall when page encryption status is changed

From: Andy Lutomirski
Date: Thu Feb 13 2020 - 00:42:18 EST


On Wed, Feb 12, 2020 at 5:18 PM Ashish Kalra <Ashish.Kalra@xxxxxxx> wrote:
>
> From: Brijesh Singh <brijesh.singh@xxxxxxx>
>
> Invoke a hypercall when a memory region is changed from encrypted ->
> decrypted and vice versa. Hypervisor need to know the page encryption
> status during the guest migration.

What happens if the guest memory status doesn't match what the
hypervisor thinks it is? What happens if the guest gets migrated
between the hypercall and the associated flushes?