]> www.infradead.org Git - nvme.git/commit
KVM: Documentation: Enumerate allowed value macros of `irq_type`
authorChangyuan Lyu <changyuanl@google.com>
Sun, 23 Jun 2024 16:45:40 +0000 (09:45 -0700)
committerOliver Upton <oliver.upton@linux.dev>
Fri, 28 Jun 2024 22:00:18 +0000 (22:00 +0000)
commit03bd36a387b85089a38ff37a9646f7e0a1249fe4
tree2c8608a632e98b6b350ae6456c63635e6606c638
parentdc1d234cdd4ac5bf1aa903d9ef0d34470b3faa14
KVM: Documentation: Enumerate allowed value macros of `irq_type`

The expression `irq_type[n]` may confuse readers to interpret `n`
as the bit position and think of CPU = 1 << 0, SPI = 1 << 1, and
PPI = 1 << 2.

Since arch/arm64/include/uapi/asm/kvm.h already has macro definitions
for the allowed values, this commit uses these symbols to clear up
the ambiguity.

Signed-off-by: Changyuan Lyu <changyuanl@google.com>
Link: https://lore.kernel.org/r/20240623164542.2999626-2-changyuanl@google.com
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Documentation/virt/kvm/api.rst