]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb7fcbe5fc9aa7e5ea8fe2f16dc5b7a20b420e9b0
tree6f4b6b7d948cf79ca3d7c2e93d79a5e14b3441e6
parent02d085e11c00d7f8ff51d9e0b4dfd1afa25f5a6a
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