Skip to content
Commit 78332517 authored by Jing Zhang's avatar Jing Zhang Committed by Sean Christopherson
Browse files

KVM: selftests: Stop assuming stats are contiguous in kvm_binary_stats_test

Remove the assumption from kvm_binary_stats_test that all stats are
laid out contiguously in memory. The current stats in KVM are
contiguously laid out in memory, but that may change in the future and
the ABI specifically allows holes in the stats data (since each stat
exposes its own offset).

While here drop the check that each stats' offset is less than
size_data, as that is now always true by construction.

Link: https://lore.kernel.org/kvm/20221208193857.4090582-9-dmatlack@google.com/


Fixes: 0b45d587 ("KVM: selftests: Add selftest for KVM statistics data binary interface")
Signed-off-by: default avatarJing Zhang <jingzhangos@google.com>
[dmatlack: Re-worded the commit message.]
Signed-off-by: default avatarDavid Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/20230117222707.3949974-1-dmatlack@google.com


Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent 96e78ebb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment