Re: [PATCH v3 0/2] KVM: x86: Report actual nent from KVM_GET_CPUID2
From: Sean Christopherson
Date: Thu Jun 01 2023 - 21:22:55 EST
On Fri, 26 May 2023 14:03:38 -0700, Sean Christopherson wrote:
> Essentially v3 of Takahiro's patch. Update cpuid->nent on a successful
> KVM_GET_CPUID2 so that userspace knows exactly how many entries were
> filled. Add a testcase to verify KVM's ABI.
>
> v3:
> - Don't bother updating cpuid->nent in the error path, the data is never
> copied to userspace.
> - Add testcase to cpuid_test
>
> [...]
Applied to kvm-x86 misc, thanks!
[1/2] KVM: x86: Update number of entries for KVM_GET_CPUID2 on success, not failure
https://github.com/kvm-x86/linux/commit/ab322c43cce9
[2/2] KVM: selftests: Extend cpuid_test to verify KVM_GET_CPUID2 "nent" updates
https://github.com/kvm-x86/linux/commit/2c7613131998
--
https://github.com/kvm-x86/linux/tree/next
https://github.com/kvm-x86/linux/tree/fixes