[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen staging-4.16] vPCI: fix MSI-X PBA read/write gprintk()s



commit 44aae670cc28e0533cd893da408878c80a579876
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Fri Apr 8 14:58:25 2022 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Fri Apr 8 14:58:25 2022 +0200

    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 <jbeulich@xxxxxxxx>
    Reviewed-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
    master commit: d3f61beea4255e2d86ae82303384c57a3262435e
    master date: 2022-04-07 18:01:24 +0200
---
 xen/drivers/vpci/msix.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/xen/drivers/vpci/msix.c b/xen/drivers/vpci/msix.c
index ac5de98f6d..ea5d73a02a 100644
--- a/xen/drivers/vpci/msix.c
+++ b/xen/drivers/vpci/msix.c
@@ -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;
             }
 
--
generated by git-patchbot for /home/xen/git/xen.git#staging-4.16



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.