vPCI: fix MSI-X PBA read/write gprintk()s
PATCH 1/1 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 <[email protected]>
---
I can't resist to say that this would not have happened if we hadn't made this a %p extension, but e.g. a %o one as I had proposed.
xen/drivers/vpci/msix.c +2 -2
@@ -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 ; }
Quoted 4 lines · Jan Beulich
%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 <[email protected]>
Reviewed-by Roger Pau Monné <[email protected]>
Thanks!