]> xenbits.xensource.com Git - people/tklengyel/xen.git/commitdiff
vPCI: fix MSI-X PBA read/write gprintk()s
authorJan Beulich <jbeulich@suse.com>
Thu, 7 Apr 2022 16:01:24 +0000 (18:01 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 7 Apr 2022 16:01:24 +0000 (18:01 +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>
xen/drivers/vpci/msix.c

index 63f162cf5aab7a8d5770c21e1a9c3d4bf0a18a1b..ab758a1ddf1836eb5c0bfb8a7287f3d757d6f39f 100644 (file)
@@ -247,7 +247,7 @@ static int cf_check msix_read(
         {
             gprintk(XENLOG_WARNING,
                     "%pp: unable to map MSI-X PBA, report all pending\n",
-                    msix->pdev);
+                    &msix->pdev->sbdf);
             return X86EMUL_OKAY;
         }
 
@@ -332,7 +332,7 @@ static int cf_check msix_write(
             /* 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;
         }