Commit 4ad43721 authored by Juerg Haefliger's avatar Juerg Haefliger

UBUNTU: SAUCE: [Fix] x86/KVM/VMX: Add L1D flush logic

BugLink: https://bugs.launchpad.net/bugs/1811646

Enable L1D flushing for AMD which was missed in the backport of
c595ceee ("x86/KVM/VMX: Add L1D flush logic").

Fixes: 57880666 ("x86/KVM/VMX: Add L1D flush logic")
Signed-off-by: default avatarJuerg Haefliger <juergh@canonical.com>
Acked-by: default avatarStefan Bader <stefan.bader@canonical.com>
Acked-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
parent 2c34f16e
...@@ -1681,6 +1681,8 @@ static int pf_interception(struct vcpu_svm *svm) ...@@ -1681,6 +1681,8 @@ static int pf_interception(struct vcpu_svm *svm)
u32 error_code; u32 error_code;
int r = 1; int r = 1;
svm->vcpu.arch.l1tf_flush_l1d = true;
switch (svm->apf_reason) { switch (svm->apf_reason) {
default: default:
error_code = svm->vmcb->control.exit_info_1; error_code = svm->vmcb->control.exit_info_1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment