Skip to content

KVM: x86: Report actual nent from KVM_GET_CPUID2

Sean Christopherson kvm lkml 1 version Applied

Status from this message: Applied to kvm-x86 misc, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest2 patches 2 repliesApplied

Changes in v3 from the cover letter

- Don't bother updating cpuid->nent in the error path, the data is never copied to userspace.
- Add testcase to cpuid_test

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: x86: Update number of entries for KVM_GET_CPUID2 on success, not failurearch/x86/kvm/cpuid.c+4 -90 replies
2/2KVM: selftests: Extend cpuid_test to verify KVM_GET_CPUID2 "nent" updatestools/testing/selftests/kvm/x86_64/cpuid_test.c+21 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/2] KVM: x86: Report actual nent from KVM_GET_CPUID2

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

v2: https://lore.kernel.org/all/[email protected]
v1: https://lore.kernel.org/all/[email protected]

Sean Christopherson (2):
KVM: x86: Update number of entries for KVM_GET_CPUID2 on success, not
failure
KVM: selftests: Extend cpuid_test to verify KVM_GET_CPUID2 "nent"
updates

 arch/x86/kvm/cpuid.c                          | 13 ++++--------
 .../testing/selftests/kvm/x86_64/cpuid_test.c | 21 +++++++++++++++++++
 2 files changed, 25 insertions(+), 9 deletions(-)

base-commit: b9846a698c9aff4eb2214a06ac83638ad098f33f

Signature · 1 line
2.41.0.rc0.172.g3f132b7071-goog