diff options
| author | Sean Christopherson <seanjc@google.com> | 2026-08-06 10:14:00 -0700 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-09-11 15:41:57 -0700 |
| commit | 926a9ea9bdf0b09c1cd8e896b251152d892f2566 (patch) | |
| tree | eca4fe936a7f7026fee6286198e2207efd6b4f89 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 2616f497506a772db53e7bb1024cde50b4c165e0 (diff) | |
KVM: x86: Track kvm_vcpu_arch.pending_ioapic_eoi as a u8 to drop dead BUG_ON()
Track the vector associated with KVM_EXIT_IOAPIC_EOI as a u8, as the vector
is zero-initialized and is only ever set to a legal vector. I.e. unlike
many of the other vector variables in KVM, it can't be -1 (and can't be
greater than 255, though that should hold true for all vectors in KVM).
Drop the now fully dead BUG_ON(), which aside from being completely
unnecessary, was also useless, as it wouldn't guard against a negative
value, i.e. wouldn't detect KVM's magic -1 value.
For all intents and purposes, no functional change intended.
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Kai Huang <kai.huang@intel.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Link: https://patch.msgid.link/20260806171400.4119301-1-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
