]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: x86: hyper-v: Fix the maximum number of sparse banks for XMM fast TLB flush...
authorVitaly Kuznetsov <vkuznets@redhat.com>
Tue, 22 Feb 2022 15:46:41 +0000 (16:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:06:43 +0000 (14:06 +0200)
commitc97284f3ad2c98b40311ac0a2fbd3fb24893d3b1
treec02aa72f5ed6b02d9dddd885f506404b9ee08d0d
parent8724eb988486713e8dcd92efeb7802f8c40dbb31
KVM: x86: hyper-v: Fix the maximum number of sparse banks for XMM fast TLB flush hypercalls

commit 7321f47eada53a395fb3086d49297eebb19e8e58 upstream.

When TLB flush hypercalls (HVCALL_FLUSH_VIRTUAL_ADDRESS_{LIST,SPACE}_EX are
issued in 'XMM fast' mode, the maximum number of allowed sparse_banks is
not 'HV_HYPERCALL_MAX_XMM_REGISTERS - 1' (5) but twice as many (10) as each
XMM register is 128 bit long and can hold two 64 bit long banks.

Cc: stable@vger.kernel.org # 5.14.x
Fixes: 5974565bc26d ("KVM: x86: kvm_hv_flush_tlb use inputs from XMM registers")
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20220222154642.684285-4-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/hyperv.c