KVM: SVM: Mark SEV launch secret pages as dirty.
authorCfir Cohen <cfir@google.com>
Sat, 8 Aug 2020 00:37:46 +0000 (17:37 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Sep 2020 11:57:24 +0000 (07:57 -0400)
commit50085beee878e7c4e8ddbd3d634c0170589802e0
tree5328b8b8a4571b567ab5d8f3228ceb39e0c273b1
parentfc595f35994233a566904bf811ffb9c3c80a84a9
KVM: SVM: Mark SEV launch secret pages as dirty.

The LAUNCH_SECRET command performs encryption of the
launch secret memory contents. Mark pinned pages as
dirty, before unpinning them.
This matches the logic in sev_launch_update_data().

Signed-off-by: Cfir Cohen <cfir@google.com>
Message-Id: <20200808003746.66687-1-cfir@google.com>
Reviewed-by: Brijesh Singh <brijesh.singh@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/sev.c