Re: [PATCH] KVM: selftests: Fix signedness issue with vCPU mmap size check
From: James Houghton
Date: Thu Jul 10 2025 - 20:30:07 EST
On Thu, Jul 10, 2025 at 5:17 PM James Houghton <jthoughton@xxxxxxxxxx> wrote:
>
> Check that the return value of KVM_GET_VCPU_MMAP_SIZE is non-negative
> before comparing with sizeof(vcpu_run). If KVM_GET_VCPU_MMAP_SIZE fails,
> it will return -1, and `-1 > sizeof(vcpu_run)` is true, so the ASSERT
> passes.
:%s/vcpu_run/kvm_run/