]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: X86: Don't check unsync if the original spte is writible
authorLai Jiangshan <laijs@linux.alibaba.com>
Sat, 18 Sep 2021 00:56:36 +0000 (08:56 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 30 Sep 2021 08:27:10 +0000 (04:27 -0400)
commit32d487dc4caa08932efd54a3534e0f037fa7d07a
tree5290bc2e6680a3c542300caf6f8362644d80adf7
parentf3d7cdb4186c85adf9bf3c3ecec42c9b2d8ef4d1
KVM: X86: Don't check unsync if the original spte is writible

If the original spte is writable, the target gfn should not be the
gfn of synchronized shadowpage and can continue to be writable.

When !can_unsync, speculative must be false.  So when the check of
"!can_unsync" is removed, we need to move the label of "out" up.

Signed-off-by: Lai Jiangshan <laijs@linux.alibaba.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20210918005636.3675-11-jiangshanlai@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/spte.c