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

Re: dom0 PVH: 'entry->arch.pirq != INVALID_PIRQ' failed at vmsi.c:843


  • To: Manuel Bouyer <bouyer@xxxxxxxxxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Thu, 12 Nov 2020 21:19:39 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JEk3MTH4ClpZVHTXC3mpKek7Qm2H6NwtVf7MUraNuuw=; b=jEdH/O0GHR3zq/PsEj35PZLKdfv2fL0ReuOPMiv1iOGrnxX/HmYycoYOEoh1zjz+0hcQb2G16iov5o3LYqNkg6fJlBD2Q9NLgqVK0aQNGnhAY9RQ7ERl9Ch8DLkRvN5j8oiF/mfegpvhiSwT05P+uqRqhSi4kMku8CRIBcq140T1v/LkWjlhI6CXCzYpaAXtbFkKpevgoXw5L1X+P7njrvEMw5poe8s6a3s3KiJlieHfBAafu4akJ0it5mspK7c4u7LgrBC5cCC16Jbf7QcavX8YCzBsUE8h35as5v5bti3g8rL9HwDGMHWUHpixUOUNqDzzdGDfFZd6uehACNxevA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q5KIwYUnmMWohFckzTrxbB3Q/05ghEVdpe5e8ZckrEEImKQczTJK6pHLIDNUfFkedusQN7w0/4AJnJlqXKMPnYmIJ3fEJ7C0bTlcL+eh+KlK/eSdNgoQWsFx5rl9006PETvcEe7FKk7D5TQvvvTPkMb6wb08oAev1GWS0a/M/MiZS7IctLfTbPBNfDn31qI03l4UlvMCugZQ/eKSn1u2uzA6KoVAnJmzD5p8+894y/IwwZynJgbiT43/z97t4zqRdzEiOZHYZCUYaG33Yaup55KILEgAMLcZt5+GewaMVWUp3OD1wUfGx3Yb4/EymIZKKdZcyHGdS+YheiC7WxFZNQ==
  • Authentication-results: esa4.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 12 Nov 2020 20:20:16 +0000
  • Ironport-sdr: tsC6RdhXYn06IOnYM5+hIhW+b0jV8miSKM9b3seQEIJw+MbroFyrL5VRUBjHMUbnPN+laR2DWr 67SyvOiJGfn1Xtf1NV7RX7q1Doc8F2eICOqXuEHfQOllt+3hgr51Co4cFyTd2+qGn/7paGd58w 0HueKMafrLK2PNiFpYevPJg/hl3Al1chtqlP98quBu/1Unlild3IRlHySuM06MQWwyJwOTnpzi 6rHvFJOxRqWs3eCffnJmp6QDrTL+vqsSpuC0+Lr0ey850eJ4Y7du4aMK/4KTSGXqpb6WYnK2lk ZRE=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Thu, Nov 12, 2020 at 06:27:04PM +0100, Manuel Bouyer wrote:
> On Thu, Nov 12, 2020 at 05:32:40PM +0100, Roger Pau Monné wrote:
> > On Thu, Nov 12, 2020 at 04:57:15PM +0100, Manuel Bouyer wrote:
> > Can you give a try to the following debug patch and paste what you
> > get?
> > 
> > Thanks, Roger.
> > ---8<---
> > diff --git a/xen/drivers/vpci/msix.c b/xen/drivers/vpci/msix.c
> > index 64dd0a929c..7ff76b7f59 100644
> > --- a/xen/drivers/vpci/msix.c
> > +++ b/xen/drivers/vpci/msix.c
> > @@ -371,7 +371,12 @@ static int msix_write(struct vcpu *v, unsigned long 
> > addr, unsigned int len,
> >              entry->updated = false;
> >          }
> >          else
> > +        {
> > +            printk("%pp offset %u len %u new_masked %d enabled %d masked 
> > %d updated %d\n",
> > +                   &pdev->sbdf, offset, len, new_masked, msix->enabled, 
> > msix->masked,
> > +                   entry->updated);
> >              vpci_msix_arch_mask_entry(entry, pdev, entry->masked);
> > +        }
> >  
> >          break;
> >      }
> 
> I get
> (XEN) ffff83083feaf500p offset 12 len 4 new_masked 0 enabled 0 masked 0 
> updated 1
> (XEN) Assertion 'entry->arch.pirq != INVALID_PIRQ' failed at vmsi.c:843
> 
> You can find the full serial console log at
> http://www-soc.lip6.fr/~bouyer/xen-log.txt

The following might be able to get you going, but I think I need to
refine the logic a bit there, will have to give it some thought.

Thanks, Roger.
---8<---
diff --git a/xen/drivers/vpci/msix.c b/xen/drivers/vpci/msix.c
index 64dd0a929c..3eb6102a61 100644
--- a/xen/drivers/vpci/msix.c
+++ b/xen/drivers/vpci/msix.c
@@ -370,7 +370,7 @@ static int msix_write(struct vcpu *v, unsigned long addr, 
unsigned int len,
 
             entry->updated = false;
         }
-        else
+        else if ( msix->enabled )
             vpci_msix_arch_mask_entry(entry, pdev, entry->masked);
 
         break;



 


Rackspace

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