x86/mm: Validate memory when changing the C-bit

Add the needed functionality to change pages state from shared
to private and vice-versa using the Page State Change VMGEXIT as
documented in the GHCB spec.

Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220307213356.2797205-22-brijesh.singh@amd.com
This commit is contained in:
Brijesh Singh 2022-02-24 10:56:01 -06:00 • committed by Borislav Petkov
commit dc3f3d2474
5 changed files with 209 additions and 0 deletions