From patchwork Mon Mar 11 18:02:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Andryuk X-Patchwork-Id: 10847979 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 16EAD139A for ; Mon, 11 Mar 2019 18:15:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 03EB328BA7 for ; Mon, 11 Mar 2019 18:15:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E969828BDF; Mon, 11 Mar 2019 18:14:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8879E28BA7 for ; Mon, 11 Mar 2019 18:14:59 +0000 (UTC) Received: from localhost ([127.0.0.1]:38097 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3PRy-00036E-T1 for patchwork-qemu-devel@patchwork.kernel.org; Mon, 11 Mar 2019 14:14:58 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47753) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3PHB-0003Ai-EX for qemu-devel@nongnu.org; Mon, 11 Mar 2019 14:03:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3PHA-0002id-Ge for qemu-devel@nongnu.org; Mon, 11 Mar 2019 14:03:49 -0400 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]:35005) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h3PHA-0002Ue-AG for qemu-devel@nongnu.org; Mon, 11 Mar 2019 14:03:48 -0400 Received: by mail-qt1-x843.google.com with SMTP id b16so5030812qtt.2 for ; Mon, 11 Mar 2019 11:03:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WeVoF9PrMuQFqq85MC3JztPLLMKfH/BmcSYZTIUdjfM=; b=aMQTJuzAGXXzds92Thgctd89R4sNn01ppbvDKulySBG65eCL4prmBfdz3pE5b7dhQp 4vdOjNLUjYxWvswdZwciSS6WwOF838u2YLttHIa4fJWdtvl2MqhbbiUI2D3ek6BMY7pM vxoV9phuViTXu9bTAEfkn2WNV4nEBp7L8+M7k3DUj+r0na31kcrpi1T1zipgSVVs6pE+ Ei8X3dHnxogrGPV4hew6HfsXwfos+hVMHHZKEHD+cqg1aNkY/OF4QXn4ivTw1hg1uhGw l6GeR/5Z7AxDf6ECAgVflBQjSG/V+zgC/IynDNxESR9R0daH1Q4njbgRqMDtoymzCWOF ZCmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=WeVoF9PrMuQFqq85MC3JztPLLMKfH/BmcSYZTIUdjfM=; b=ab0CBOZLvPodm6r7s1h6oPown19Bh6hOTvMrokydX2aA/FyhYY0d6M9Qmt4IuxlvuC G+3SNWwDfeJy+7nmoKFGvRDsjT+8oRdPgh2AOHtovOSAd6Wci+1VvO9ian+BddDMuMPq g5RfSrSO4vomPw2w8AEtOJD2bzqcjwHDFbxs1mKJBfP9EQT1OXzEOhpZlxL7i8YVd+uG FZ6EVBJPRL26dF193i3r9NRjdAxlNpGMBHLnf+lUhSQEpd9zNo7SqW1B0mVSc/cqu1SX NKGIy+37KPeIgbTDdPiwxJNX9k05ipK+HC6zGFyrWiUj+Wan/gkQt9YA7bmNR0lNtaEq ggPw== X-Gm-Message-State: APjAAAUCMA1jYDnegNP6q0pX5B4/tIbipFxkGVZvbrHlHRCie+Skdof1 avDHLnKC0K31Yk1SC58aHGSl6B8sok0= X-Google-Smtp-Source: APXvYqzLD3q9ahjdG6tj7XkIoyztEZUzB1FUs0jJTqvqBpH+ZMZiDc1wFgrEl3W5ZeQHVaomln7tBA== X-Received: by 2002:ac8:3554:: with SMTP id z20mr591129qtb.150.1552327407902; Mon, 11 Mar 2019 11:03:27 -0700 (PDT) Received: from pm2-ws13.praxislan02.com ([2001:470:8:67e:ba27:ebff:fee8:ce27]) by smtp.gmail.com with ESMTPSA id f126sm4687637qka.14.2019.03.11.11.03.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Mar 2019 11:03:27 -0700 (PDT) From: Jason Andryuk To: qemu-devel@nongnu.org Date: Mon, 11 Mar 2019 14:02:15 -0400 Message-Id: <20190311180216.18811-6-jandryuk@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190311180216.18811-1-jandryuk@gmail.com> References: <20190311180216.18811-1-jandryuk@gmail.com> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::843 Subject: [Qemu-devel] [PATCH 5/6] xen-pt: Hide MSI-X from xen stubdoms X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: James McKenzie , Stefano Stabellini , Jason Andryuk , marmarek@invisiblethingslab.com, Paul Durrant , Anthony Perard , xen-devel@lists.xenproject.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP MSI-X is not supported in Xen stubdoms, so it must be disabled. Use the existing xen_pt_hide_dev_cap to hide when running under -xen-stubdom. A compile-time patch was originally written by James McKenzie Signed-off-by: Jason Andryuk --- hw/xen/xen_pt_config_init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/xen/xen_pt_config_init.c b/hw/xen/xen_pt_config_init.c index 31ec5add1d..b827a493ea 100644 --- a/hw/xen/xen_pt_config_init.c +++ b/hw/xen/xen_pt_config_init.c @@ -54,6 +54,9 @@ static int xen_pt_hide_dev_cap(const XenHostPCIDevice *d, uint8_t grp_id) return 1; } break; + case PCI_CAP_ID_MSIX: + /* stubdoms don't support MSI-X so skip it. */ + return xen_stubdom_enabled(); } return 0; }