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)
commit4bb05f30483fd21ea5413eaf1182768f251cf625
tree2b0f1f1e9d7ff62e000b23573184ceebb45248be
parent8d214c481611b29458a57913bd786f0ac06f0605
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: 1654efcbc431 ("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