[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <fdc80f6b-cdb1-b1e6-a843-d5c6a75a69f5@redhat.com>
Date: Fri, 1 Jul 2016 09:56:51 +0200
From: Paolo Bonzini <pbonzini@...hat.com>
To: Radim Krčmář <rkrcmar@...hat.com>,
linux-kernel@...r.kernel.org, kvm@...r.kernel.org
Cc: "Lan, Tianyu" <tianyu.lan@...el.com>,
Igor Mammedov <imammedo@...hat.com>,
Jan Kiszka <jan.kiszka@....de>, Peter Xu <peterx@...hat.com>
Subject: Re: [PATCH v1 04/11] KVM: x86: use u16 for logical VCPU mask in lapic
On 30/06/2016 22:54, Radim Krčmář wrote:
> @@ -747,7 +745,7 @@ static inline bool kvm_apic_map_get_dest_lapic(struct kvm *kvm, struct kvm_lapic
> return true;
>
> lowest = kvm_vector_to_index(irq->vector, hweight16(*bitmap),
> - bitmap, 16);
> + (unsigned long *)bitmap, 16);
>
kvm_vector_to_index's last argument is always 16, so we might as well
omit it and make the third argument u16* too.
Paolo
Powered by blists - more mailing lists