]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: Add a dedicated INVD intercept routine
authorTom Lendacky <thomas.lendacky@amd.com>
Thu, 24 Sep 2020 18:41:57 +0000 (13:41 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Sep 2020 17:27:35 +0000 (13:27 -0400)
commit3f95647abd12d35f96c866524bee3250c142b075
tree2b0f1f1e9d7ff62e000b23573184ceebb45248be
parent92eb427b8abac149c3de3af5e3bc23bf551e3ccf
KVM: SVM: Add a dedicated INVD intercept routine

The INVD instruction intercept performs emulation. Emulation can't be done
on an SEV guest because the guest memory is encrypted.

Provide a dedicated intercept routine for the INVD intercept. And since
the instruction is emulated as a NOP, just skip it instead.

Fixes: 527390bcc2f8 ("KVM: SVM: Add KVM_SEV_INIT command")
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Message-Id: <a0b9a19ffa7fef86a3cc700c7ea01cb2731e04e5.1600972918.git.thomas.lendacky@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.c