All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] KVM: SVM: fix calculate dest mask incorrectly in x2apic mode.
       [not found] <1675328830-37483-1-git-send-email-yuanzhaoxiong@baidu.com>
@ 2023-02-02 16:03 ` Sean Christopherson
  0 siblings, 0 replies; only message in thread
From: Sean Christopherson @ 2023-02-02 16:03 UTC (permalink / raw)
  To: Yuan ZhaoXiong
  Cc: pbonzini, tglx, mingo, bp, dave.hansen, x86, hpa, mlevitsk, kvm,
	linux-kernel

On Thu, Feb 02, 2023, Yuan ZhaoXiong wrote:
> ICRH bits 31:16 is cluster id and bits 15:0 is dest mask when x2apic is
> enabled.
> 
> Fixes: 603ccef42ce9 ("KVM: x86: SVM: fix avic_kick_target_vcpus_fast")
> 
> Signed-off-by: Yuan ZhaoXiong <yuanzhaoxiong@baidu.com>
> ---
>  arch/x86/kvm/svm/avic.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/x86/kvm/svm/avic.c b/arch/x86/kvm/svm/avic.c
> index 6919dee..03b1e27 100644
> --- a/arch/x86/kvm/svm/avic.c
> +++ b/arch/x86/kvm/svm/avic.c
> @@ -378,7 +378,7 @@ static int avic_kick_target_vcpus_fast(struct kvm *kvm, struct kvm_lapic *source
>  
>  		if (apic_x2apic_mode(source)) {
>  			/* 16 bit dest mask, 16 bit cluster id */
> -			bitmap = dest & 0xFFFF0000;
> +			bitmap = dest & 0xFFFF;

Already fixed in the Paolo's tree, commit da3fb46d226a ("KVM: SVM: Fix x2APIC
Logical ID calculation for avic_kick_target_vcpus_fast").

In case you have more APIC/AVIC related fixes/bugs, a big pile of fixes are queued
for 6.3, see commit f15a87c00690 ("Merge branch 'kvm-lapic-fix-and-cleanup' into HEAD").

Thanks!

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-02 16:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1675328830-37483-1-git-send-email-yuanzhaoxiong@baidu.com>
2023-02-02 16:03 ` [PATCH] KVM: SVM: fix calculate dest mask incorrectly in x2apic mode Sean Christopherson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.