From nobody Tue Feb 10 11:16:13 2026 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1563325380; cv=none; d=zoho.com; s=zohoarc; b=PzzZi21kSgSnk9paho0oDJly/8cUV/qHFI+qf1i0RUyZkZTr/nookWtk0h0IioO5/ynfCh6CW7KS+gv03qz9JrUiZmQlPq14VCqO8W7KzZ9uwsazzsuPZQLALQld8fwMxannLkp5TeOFJS941k39sON/1+V7HXMcBq7MW/hbrrQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1563325380; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=QzgxeAcHUbNYOAVLAOthXSrRWuxQnRdftNUw2WfPvo8=; b=dK9RbVtqWJbGjPnJIzk/Anrp4chPNsLqI1Le7BljpfC9wU0z/2VoJYuIi8+Y9qI3nv9SpZdrAfHpGfgsVA8fFlOYaQ5OR45YdysMe5eXhuBO2qNGPvx0xUiHxu9cUVrUjq1X5cRy9OqPsrCM1mraPqJaFOtWdTUr4Moywlt3wAE= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1563325380501922.3143031909798; Tue, 16 Jul 2019 18:03:00 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hnYK6-00055Z-Bc; Wed, 17 Jul 2019 01:01:34 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hnYK4-00055O-Fp for xen-devel@lists.xenproject.org; Wed, 17 Jul 2019 01:01:32 +0000 Received: from wout4-smtp.messagingengine.com (unknown [64.147.123.20]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 695ccef4-a82e-11e9-aa66-8bb310a9bfcd; Wed, 17 Jul 2019 01:01:30 +0000 (UTC) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 8BD4D3EB; Tue, 16 Jul 2019 21:01:29 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Tue, 16 Jul 2019 21:01:29 -0400 Received: from localhost.localdomain (ip5b412221.dynamic.kabel-deutschland.de [91.65.34.33]) by mail.messagingengine.com (Postfix) with ESMTPA id 5302F38008D; Tue, 16 Jul 2019 21:01:28 -0400 (EDT) X-Inumbo-ID: 695ccef4-a82e-11e9-aa66-8bb310a9bfcd DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=SnT1nCoHjJFRhs+EcWdbFq47ZHj0OL2KgdeM1Eytu WI=; b=opmNLfG8MI8BJSyYEkKxko6Hfo2o9oPCMhQYhd1Ev+mGCbmufZABZ/fz9 IYu15kM2Bpej9VPF//OAHaz/J4unp0lwLhgibvcY6CK2DwPEC+5kHNgTJxbLAEXK CH1P9Lgdzqog+U0ndMoKb3mTUubCWkneD2jXnCTv4JcSJKx0+6drjWfBIwboPxI1 xbQDIojXMcuU46NCTj67NndZ37vaLcDkHewxWwog/h94IWKN8Z8+EgCiWACIhUWY 9Ygsb2Kfa5YXI8msaUqvT/wV1jaP4lwYstmAb/xWNZrUUqeX2MxXI/OKjh9e2423 8Ct3q+w+Xybc3+0xxIylAMQ0de+PA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddriedugdegvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhggtgfgsehtkeertdertdejnecuhfhrohhmpeforghrvghk ucforghrtgiihihkohifshhkihdqifpkrhgvtghkihcuoehmrghrmhgrrhgvkhesihhnvh hishhisghlvghthhhinhhgshhlrggsrdgtohhmqeenucfkphepledurdeihedrfeegrdef feenucfrrghrrghmpehmrghilhhfrhhomhepmhgrrhhmrghrvghksehinhhvihhsihgslh gvthhhihhnghhslhgrsgdrtghomhenucevlhhushhtvghrufhiiigvpedu X-ME-Proxy: From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= To: xen-devel@lists.xenproject.org Date: Wed, 17 Jul 2019 03:00:44 +0200 Message-Id: <5c8fb8141c0f92ccaa78cdc169b8544f7634ce65.1563325215.git-series.marmarek@invisiblethingslab.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Subject: [Xen-devel] [PATCH v5 6/6] tools/libxc: add wrapper for PHYSDEVOP_msi_control X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Ian Jackson , =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= , Wei Liu Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Add libxc wrapper for PHYSDEVOP_msi_control introduced in previous commit. Signed-off-by: Marek Marczykowski-G=C3=B3recki Reviewed-by: Roger Pau Monn=C3=A9 --- Changes in v3: - new patch Changes in v4: - adjust for updated previous patch Changes in v5: - rename to PHYSDEVOP_msi_control, adjust arguments --- tools/libxc/include/xenctrl.h | 6 ++++++ tools/libxc/xc_physdev.c | 19 +++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/tools/libxc/include/xenctrl.h b/tools/libxc/include/xenctrl.h index 538007a..826d10d 100644 --- a/tools/libxc/include/xenctrl.h +++ b/tools/libxc/include/xenctrl.h @@ -1638,6 +1638,12 @@ int xc_physdev_unmap_pirq(xc_interface *xch, uint32_t domid, int pirq); =20 +int xc_physdev_msi_control(xc_interface *xch, + int seg, + int bus, + int devfn, + int flags); + /* * LOGGING AND ERROR REPORTING */ diff --git a/tools/libxc/xc_physdev.c b/tools/libxc/xc_physdev.c index 460a8e7..a25a117 100644 --- a/tools/libxc/xc_physdev.c +++ b/tools/libxc/xc_physdev.c @@ -111,3 +111,22 @@ int xc_physdev_unmap_pirq(xc_interface *xch, return rc; } =20 +int xc_physdev_msi_control(xc_interface *xch, + int seg, + int bus, + int devfn, + int flags) +{ + int rc; + struct physdev_msi_control op; + + memset(&op, 0, sizeof(struct physdev_msi_control)); + op.seg =3D seg; + op.bus =3D bus; + op.devfn =3D devfn; + op.flags =3D flags; + + rc =3D do_physdev_op(xch, PHYSDEVOP_msi_control, &op, sizeof(op)); + + return rc; +} --=20 git-series 0.9.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel