]> xenbits.xensource.com Git - xen.git/commitdiff
vPCI: fix MSI-X PBA read/write gprintk()s
authorJan Beulich <jbeulich@suse.com>
Fri, 8 Apr 2022 12:58:25 +0000 (14:58 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 8 Apr 2022 12:58:25 +0000 (14:58 +0200)
%pp wants the address of an SBDF, not that of a PCI device.

Fixes: b4f211606011 ("vpci/msix: fix PBA accesses")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
master commit: d3f61beea4255e2d86ae82303384c57a3262435e
master date: 2022-04-07 18:01:24 +0200

xen/drivers/vpci/msix.c

index ac5de98f6dadf5558bb57643ad8a2805a1cb36d9..ea5d73a02a7a9cb4d3f6c01de55c875642b4d39a 100644 (file)
@@ -247,7 +247,7 @@ static int msix_read(struct vcpu *v, unsigned long addr, unsigned int len,
         {
             gprintk(XENLOG_WARNING,
                     "%pp: unable to map MSI-X PBA, report all pending\n",
-                    msix->pdev);
+                    &msix->pdev->sbdf);
             return X86EMUL_OKAY;
         }
 
@@ -331,7 +331,7 @@ static int msix_write(struct vcpu *v, unsigned long addr, unsigned int len,
                 /* Unable to map the PBA, ignore write. */
                 gprintk(XENLOG_WARNING,
                         "%pp: unable to map MSI-X PBA, write ignored\n",
-                        msix->pdev);
+                        &msix->pdev->sbdf);
                 return X86EMUL_OKAY;
             }