KVM: x86: Mark GPRs dirty when written
authorTom Lendacky <thomas.lendacky@amd.com>
Thu, 10 Dec 2020 17:09:41 +0000 (11:09 -0600)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 14 Dec 2020 16:09:33 +0000 (11:09 -0500)
commit1c04d8c986567c27c56c05205dceadc92efb14ff
tree6f4b6b7d948cf79ca3d7c2e93d79a5e14b3441e6
parentadd5e2f045414523aa6dc29d69b21e8f82e5ffb8
KVM: x86: Mark GPRs dirty when written

When performing VMGEXIT processing for an SEV-ES guest, register values
will be synced between KVM and the GHCB. Prepare for detecting when a GPR
has been updated (marked dirty) in order to determine whether to sync the
register to the GHCB.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Message-Id: <7ca2a1cdb61456f2fe9c64193e34d601e395c133.1607620209.git.thomas.lendacky@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/kvm_cache_regs.h