From: Jan Beulich Date: Thu, 7 Apr 2022 16:01:24 +0000 (+0200) Subject: vPCI: fix MSI-X PBA read/write gprintk()s X-Git-Tag: archive/raspbian/4.17.0-1+rpi1^2~33^2~760 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d3f61beea4255e2d86ae82303384c57a3262435e;p=xen.git vPCI: fix MSI-X PBA read/write gprintk()s %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 Reviewed-by: Roger Pau Monné --- diff --git a/xen/drivers/vpci/msix.c b/xen/drivers/vpci/msix.c index 63f162cf5a..ab758a1ddf 100644 --- a/xen/drivers/vpci/msix.c +++ b/xen/drivers/vpci/msix.c @@ -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; }