[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <570D76B4.1030703@redhat.com>
Date: Wed, 13 Apr 2016 00:29:08 +0200
From: Paolo Bonzini <pbonzini@...hat.com>
To: Radim Krčmář <rkrcmar@...hat.com>,
Suravee Suthikulpanit <Suravee.Suthikulpanit@....com>
Cc: joro@...tes.org, bp@...en8.de, gleb@...nel.org,
alex.williamson@...hat.com, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org, wei@...hat.com,
sherry.hurwitz@....com
Subject: Re: [PART1 RFC v4 08/11] svm: Add VMEXIT handlers for AVIC
On 12/04/2016 18:22, Radim Krčmář wrote:
>> > +
>> > + if (apic_id > 4 || cluster_id >= 0xf)
>> > + return NULL;
>> > + index = (cluster_id << 2) + apic_id;
> ffs(apic_id), because 'apic_id' must be compacted into 2 bits.
>
ffs(apic_id)-1 actually.
Thanks for the review, Radim.
Paolo
Powered by blists - more mailing lists