HomeFreeBSD

Hyper-V: vPCI: fix cpu id mis-mapping in vmbus_pcib_map_msi()

Description

Hyper-V: vPCI: fix cpu id mis-mapping in vmbus_pcib_map_msi()

The msi address contains apic id. The code in vmbus_pcib_map_msi()
treats it as cpu id, which could cause mis-configuration of msix
IRQs, leading to missing interrupts for SRIOV devices. This happens
when apic id is not the same as cpu id on certain large VM sizes
with multiple numa domains in Azure. Fix this issue by correctly
mapping apic ids to cpu ids.

On vPCI version before 1.4, it only supports up to 64 vcpus
for msi/msix interrupt. This change also adds a check and returns
error if the vcpu_id is greater than 63.

(cherry picked from commit 999174ba03642fa63c9654752993a62db461afc9)

Reported by: NetApp
Tested by: whu
Sponsored by: Microsoft

Details

Provenance
whuAuthored on Mar 11 2024, 5:24 AM
Parents
rG6b7800eea4ea: liblzma: don't export lzma_lz_decoder_uncompressed
Branches
Unknown
Tags
Unknown