From 77775c929770d889f000af6914e539b275249297 Mon Sep 17 00:00:00 2001 From: Victor Sun Date: Fri, 31 Jul 2020 13:57:53 +0800 Subject: [PATCH] HV: correct RO mask of MSI cap structure In MSI Capability Structure, bit 7 (64 bit address capable) of MSICTRL is RO; Tracked-On: #5125 Signed-off-by: Victor Sun Reviewed-by: Li Fei Reviewed-by: Jason Chen CJ Acked-by: Eddie Dong --- hypervisor/dm/vpci/vmsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypervisor/dm/vpci/vmsi.c b/hypervisor/dm/vpci/vmsi.c index 3b540e963..29310e17c 100644 --- a/hypervisor/dm/vpci/vmsi.c +++ b/hypervisor/dm/vpci/vmsi.c @@ -112,7 +112,7 @@ void write_vmsi_cap_reg(struct pci_vdev *vdev, uint32_t offset, uint32_t bytes, { /* Capability ID, Next Capability Pointer and Message Control * (Except MSI Enable bit and Multiple Message Enable) are RO */ - static const uint8_t msi_ro_mask[0xEU] = { 0xffU, 0xffU, 0x1eU, 0xffU }; + static const uint8_t msi_ro_mask[0xEU] = { 0xffU, 0xffU, 0x8eU, 0xffU }; uint32_t msgctrl, old, ro_mask = ~0U; enable_disable_msi(vdev, false);