diff options
author | Eggz | 2024-01-26 16:02:18 +0100 |
---|---|---|
committer | Eggz | 2024-01-26 16:02:18 +0100 |
commit | fcd5c31cde842176b2dd214b21c51f203423faf4 (patch) | |
tree | 98ee2710298e312bbd16f44f62e869fc29aec0c6 /flushbyasid.patch | |
parent | 241a0279b13accbf9894971261af84a19de2d3d1 (diff) | |
download | aur-fcd5c31cde842176b2dd214b21c51f203423faf4.tar.gz |
Updated
Diffstat (limited to 'flushbyasid.patch')
-rw-r--r-- | flushbyasid.patch | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/flushbyasid.patch b/flushbyasid.patch deleted file mode 100644 index 9926cc5e4218..000000000000 --- a/flushbyasid.patch +++ /dev/null @@ -1,45 +0,0 @@ -diff --git a/arch/x86/kvm/svm/nested.c b/arch/x86/kvm/svm/nested.c -index 3fea8c47679e..60891b9ce25f 100644 ---- a/arch/x86/kvm/svm/nested.c -+++ b/arch/x86/kvm/svm/nested.c -@@ -247,18 +247,6 @@ static bool nested_svm_check_bitmap_pa(struct kvm_vcpu *vcpu, u64 pa, u32 size) - kvm_vcpu_is_legal_gpa(vcpu, addr + size - 1); - } - --static bool nested_svm_check_tlb_ctl(struct kvm_vcpu *vcpu, u8 tlb_ctl) --{ -- /* Nested FLUSHBYASID is not supported yet. */ -- switch(tlb_ctl) { -- case TLB_CONTROL_DO_NOTHING: -- case TLB_CONTROL_FLUSH_ALL_ASID: -- return true; -- default: -- return false; -- } --} -- - static bool __nested_vmcb_check_controls(struct kvm_vcpu *vcpu, - struct vmcb_ctrl_area_cached *control) - { -@@ -278,9 +266,6 @@ static bool __nested_vmcb_check_controls(struct kvm_vcpu *vcpu, - IOPM_SIZE))) - return false; - -- if (CC(!nested_svm_check_tlb_ctl(vcpu, control->tlb_ctl))) -- return false; -- - if (CC((control->int_ctl & V_NMI_ENABLE_MASK) && - !vmcb12_is_intercept(control, INTERCEPT_NMI))) { - return false; -diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c -index 1785de7dc98b..9cf7eef161ff 100644 ---- a/arch/x86/kvm/svm/svm.c -+++ b/arch/x86/kvm/svm/svm.c -@@ -5083,6 +5083,7 @@ static __init void svm_set_cpu_caps(void) - if (nested) { - kvm_cpu_cap_set(X86_FEATURE_SVM); - kvm_cpu_cap_set(X86_FEATURE_VMCBCLEAN); -+ kvm_cpu_cap_set(X86_FEATURE_FLUSHBYASID); - - if (nrips) - kvm_cpu_cap_set(X86_FEATURE_NRIPS); |