diff options
author | Sean Christopherson <seanjc@google.com> | 2023-07-12 01:01:26 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-07-29 17:05:28 +0200 |
commit | 625646aede90554fed8d46fd0e081238e071ac5e (patch) | |
tree | 53f583f6e0648242005678c531de2efb7c24673e /lib/crc-ccitt.c | |
parent | KVM: Grab a reference to KVM for VM and vCPU stats file descriptors (diff) | |
download | linux-625646aede90554fed8d46fd0e081238e071ac5e.tar.xz linux-625646aede90554fed8d46fd0e081238e071ac5e.zip |
KVM: selftests: Use pread() to read binary stats header
Use pread() with an explicit offset when reading the header and the header
name for a binary stats fd so that the common helper and the binary stats
test don't subtly rely on the file effectively being untouched, e.g. to
allow multiple reads of the header, name, etc.
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20230711230131.648752-3-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'lib/crc-ccitt.c')
0 files changed, 0 insertions, 0 deletions