Re: [PATCH 2/5] KVM: cpuid: extract do_cpuid_7_mask and support multiple subleafs

From: Paolo Bonzini
Date: Wed Jul 10 2019 - 02:30:37 EST


On 08/07/19 09:07, Jing Liu wrote:
>>
> And when adding subleaf 1, plan to add codes,
>
> case 1:
> ÂÂÂÂentry->eax |= kvm_cpuid_7_1_eax_x86_features;
> ÂÂÂÂentry->ebx = entry->ecx = entry->edx =0;
> ÂÂÂÂbreak;
>
> What do you think?

This should be "&=", not "|=". Otherwise yes, that's the idea.

Paolo