Re: [PATCH v3 2/2] arm/arm64: KVM: enable 32 bits kvm vcpu events support

From: gengdongjiu
Date: Fri Oct 12 2018 - 11:36:21 EST


Hi James,

> Hi Dongjiu Geng,
>
> On 11/10/2018 20:07, Dongjiu Geng wrote:
> > The commit 539aee0edb9f ("KVM: arm64: Share the parts of get/set
> > events useful to 32bit") shares the get/set events helper for arm64
> > and arm32,
>
> Oops. I evidently didn't test this bit. Looks like I just depended on the symbol to be defined, I didn't check the CAP was exposed.

Yes, you do not check the CAP when you test it.

>
>
> > it is better also share the check
> > for vcpu events capability to enable 32 bit kvm vcpu events support.
>
> not just better, necessary for correctly-written user-space to know the feature is supported. This last bit would be clearer as: "but forgot to
> share the cap extension code."

Ok, will update it.

>
>
> Thanks for catching this!

You are welcome

>
> Acked-by: James Morse <james.morse@xxxxxxx>
>
>
> Thanks,
>
> James