From patchwork Fri Aug 27 07:09:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: David Gibson X-Patchwork-Id: 1521528 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.a=rsa-sha256 header.s=201602 header.b=IgHhmspv; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GwsG35gcpz9sPf for ; Fri, 27 Aug 2021 17:45:47 +1000 (AEST) Received: from localhost ([::1]:35622 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJWYb-0003ou-EG for incoming@patchwork.ozlabs.org; Fri, 27 Aug 2021 03:45:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52300) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJW0S-0001Rh-1Q; Fri, 27 Aug 2021 03:10:28 -0400 Received: from ozlabs.org ([203.11.71.1]:40019) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJW0Q-0007Vw-Au; Fri, 27 Aug 2021 03:10:27 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 4GwrSZ60Csz9sXk; Fri, 27 Aug 2021 17:09:50 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=201602; t=1630048190; bh=VNhnQvDV9fzB32EkfI9Q2C9+aXXWxo58SYEs8WdWAjs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IgHhmspvVIUILH4s3NNaeAVUKLbZBC8XYAGnytMzp1YaZiR0sGNydeBQO7c87Bqbx dSqGEwW16Fi3yT6La4kpzuYQp94MONfladHgY52GXm2B4PZb7g2BDINqtDYDftXZpb hHQBggDbyG+MIcRGJsbvHXGBZhbh7t9JBeg2gBpU= From: David Gibson To: peter.maydell@linaro.org, groug@kaod.org Subject: [PULL 14/18] ppc/xive: Export xive_presenter_notify() Date: Fri, 27 Aug 2021 17:09:42 +1000 Message-Id: <20210827070946.219970-15-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210827070946.219970-1-david@gibson.dropbear.id.au> References: <20210827070946.219970-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Received-SPF: pass client-ip=203.11.71.1; envelope-from=dgibson@ozlabs.org; helo=ozlabs.org X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Gibson , qemu-ppc@nongnu.org, qemu-devel@nongnu.org, =?utf-8?q?C=C3=A9dric_Le_Goater?= Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Cédric Le Goater It's generic enough to be used from the XIVE2 router and avoid more duplication. Reviewed-by: Greg Kurz Signed-off-by: Cédric Le Goater Message-Id: <20210809134547.689560-9-clg@kaod.org> Signed-off-by: David Gibson --- hw/intc/xive.c | 8 ++++---- include/hw/ppc/xive.h | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/hw/intc/xive.c b/hw/intc/xive.c index 5ec61ec14e..b817ee8e37 100644 --- a/hw/intc/xive.c +++ b/hw/intc/xive.c @@ -1514,10 +1514,10 @@ int xive_presenter_tctx_match(XivePresenter *xptr, XiveTCTX *tctx, * * The parameters represent what is sent on the PowerBus */ -static bool xive_presenter_notify(XiveFabric *xfb, uint8_t format, - uint8_t nvt_blk, uint32_t nvt_idx, - bool cam_ignore, uint8_t priority, - uint32_t logic_serv) +bool xive_presenter_notify(XiveFabric *xfb, uint8_t format, + uint8_t nvt_blk, uint32_t nvt_idx, + bool cam_ignore, uint8_t priority, + uint32_t logic_serv) { XiveFabricClass *xfc = XIVE_FABRIC_GET_CLASS(xfb); XiveTCTXMatch match = { .tctx = NULL, .ring = 0 }; diff --git a/include/hw/ppc/xive.h b/include/hw/ppc/xive.h index 7e25c25bfd..db76411654 100644 --- a/include/hw/ppc/xive.h +++ b/include/hw/ppc/xive.h @@ -408,6 +408,10 @@ int xive_presenter_tctx_match(XivePresenter *xptr, XiveTCTX *tctx, uint8_t format, uint8_t nvt_blk, uint32_t nvt_idx, bool cam_ignore, uint32_t logic_serv); +bool xive_presenter_notify(XiveFabric *xfb, uint8_t format, + uint8_t nvt_blk, uint32_t nvt_idx, + bool cam_ignore, uint8_t priority, + uint32_t logic_serv); /* * XIVE Fabric (Interface between Interrupt Controller and Machine)