Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CC7F1C5519F for ; Thu, 12 Nov 2020 15:57:59 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D406522240 for ; Thu, 12 Nov 2020 15:57:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D406522240 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=antioche.eu.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.25946.54023 (Exim 4.92) (envelope-from ) id 1kdEyV-00065f-Hd; Thu, 12 Nov 2020 15:57:27 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 25946.54023; Thu, 12 Nov 2020 15:57:27 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kdEyV-00065Y-EY; Thu, 12 Nov 2020 15:57:27 +0000 Received: by outflank-mailman (input) for mailman id 25946; Thu, 12 Nov 2020 15:57:26 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kdEyU-00065T-LD for xen-devel@lists.xenproject.org; Thu, 12 Nov 2020 15:57:26 +0000 Received: from chassiron.antioche.eu.org (unknown [2001:41d0:fe9d:1101::1]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id d3866cb0-5131-4d4e-a969-a349ada0503c; Thu, 12 Nov 2020 15:57:23 +0000 (UTC) Received: from sandettie.soc.lip6.fr (82-64-3-41.subs.proxad.net [82.64.3.41]) by chassiron.antioche.eu.org (8.15.2/8.15.2) with ESMTPS id 0ACFvK2O022019 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=OK) for ; Thu, 12 Nov 2020 16:57:21 +0100 (MET) Received: by sandettie.soc.lip6.fr (Postfix, from userid 373) id 85E722E9CA8; Thu, 12 Nov 2020 16:57:15 +0100 (MET) Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kdEyU-00065T-LD for xen-devel@lists.xenproject.org; Thu, 12 Nov 2020 15:57:26 +0000 X-Inumbo-ID: d3866cb0-5131-4d4e-a969-a349ada0503c Received: from chassiron.antioche.eu.org (unknown [2001:41d0:fe9d:1101::1]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id d3866cb0-5131-4d4e-a969-a349ada0503c; Thu, 12 Nov 2020 15:57:23 +0000 (UTC) Received: from sandettie.soc.lip6.fr (82-64-3-41.subs.proxad.net [82.64.3.41]) by chassiron.antioche.eu.org (8.15.2/8.15.2) with ESMTPS id 0ACFvK2O022019 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=OK) for ; Thu, 12 Nov 2020 16:57:21 +0100 (MET) Received: by sandettie.soc.lip6.fr (Postfix, from userid 373) id 85E722E9CA8; Thu, 12 Nov 2020 16:57:15 +0100 (MET) Date: Thu, 12 Nov 2020 16:57:15 +0100 From: Manuel Bouyer To: xen-devel@lists.xenproject.org Subject: dom0 PVH: 'entry->arch.pirq != INVALID_PIRQ' failed at vmsi.c:843 Message-ID: <20201112155715.GA5003@antioche.eu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Greylist: Sender succeeded STARTTLS authentication, not delayed by milter-greylist-4.4.3 (chassiron.antioche.eu.org [151.127.5.145]); Thu, 12 Nov 2020 16:57:21 +0100 (MET) Hello, I'm trying to add dom0 PVH support to NetBSD. I'm tesing with Xen 4.13 on a brand new Intel x86 server (Dell R440). While the dom0 kernel configures hardware, Xen panics with: (XEN) Xen call trace: (XEN) [] R vpci_msix_arch_mask_entry+0x18/0x20 (XEN) [] S drivers/vpci/msix.c#msix_write+0x18a/0x2b0 (XEN) [] S arch/x86/hvm/intercept.c#hvm_mmio_write+0x23/0x3 0 (XEN) [] S hvm_process_io_intercept+0x1e9/0x260 (XEN) [] S hvm_io_intercept+0x1d/0x40 (XEN) [] S arch/x86/hvm/emulate.c#hvmemul_do_io+0x26a/0x4d0 (XEN) [] S drivers/vpci/msix.c#msix_accept+0x9/0x20 (XEN) [] S arch/x86/hvm/emulate.c#hvmemul_do_io_buffer+0x36 /0x70 (XEN) [] S arch/x86/hvm/emulate.c#hvmemul_linear_mmio_access+0x1e5/0x300 (XEN) [] S arch/x86/hvm/emulate.c#linear_write+0x84/0x160 (XEN) [] S arch/x86/hvm/emulate.c#hvmemul_write+0xe8/0x100 (XEN) [] S x86_emulate+0x289dc/0x2cfb0 (XEN) [] S map_domain_page+0x4b/0x600 (XEN) [] S __get_gfn_type_access+0x6a/0x100 (XEN) [] S arch/x86/mm/p2m-ept.c#ept_next_level+0x107/0x150 (XEN) [] S x86_emulate_wrapper+0x21/0x60 (XEN) [] S arch/x86/hvm/emulate.c#_hvm_emulate_one+0x4f/0x220 (XEN) [] S hvmemul_get_seg_reg+0x4d/0x50 (XEN) [] S hvm_emulate_one+0xe/0x10 (XEN) [] S hvm_emulate_one_insn+0x3a/0xf0 (XEN) [] S x86_insn_is_mem_access+0/0x260 (XEN) [] S handle_mmio_with_translation+0x49/0x60 (XEN) [] S hvm_hap_nested_page_fault+0x2c8/0x720 (XEN) [] S arch/x86/hvm/emulate.c#hv(XEN) (XEN) **************************************** (XEN) Panic on CPU 13: (XEN) Assertion 'entry->arch.pirq != INVALID_PIRQ' failed at vmsi.c:843 (XEN) **************************************** This is when it configures the broadcom network interface, which interrupts at "msix3 vec 0". It is the first MSI-X device configured; the previous ones are MSI only. Is it a bug on the Xen side, or something missing on the NetBSD side ? If the later, where can I find informations about it ? -- Manuel Bouyer NetBSD: 26 ans d'experience feront toujours la difference --