From patchwork Thu Feb 18 10:07:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leonid Bloch X-Patchwork-Id: 8348231 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 60F459F399 for ; Thu, 18 Feb 2016 10:10:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BC61A20357 for ; Thu, 18 Feb 2016 10:10:18 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BC09D20320 for ; Thu, 18 Feb 2016 10:10:17 +0000 (UTC) Received: from localhost ([::1]:39412 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWLXN-0001Br-1S for patchwork-qemu-devel@patchwork.kernel.org; Thu, 18 Feb 2016 05:10:17 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWLVC-0006M6-8q for qemu-devel@nongnu.org; Thu, 18 Feb 2016 05:08:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWLV7-0001Ox-PZ for qemu-devel@nongnu.org; Thu, 18 Feb 2016 05:08:02 -0500 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]:36395) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWLV7-0001Og-Ig for qemu-devel@nongnu.org; Thu, 18 Feb 2016 05:07:57 -0500 Received: by mail-wm0-x22f.google.com with SMTP id g62so18756789wme.1 for ; Thu, 18 Feb 2016 02:07:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ravellosystems-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=gLfs4Y3oqpg0SQa9FTMpvvheCBmvGkboqkAxooel/fk=; b=iLdatGeJgsTliYP2ugoTHjA7RkN5AEq+VWwJIIJySk9NkCv5bpf1FtDgRoiUns0zLx DksYm2dBAg356yz5GQwPO8+euu4Rhr3B2veIBIZFNTGXxgsy9wYq4TZ6OD6+4uRPQoFq vdQGtqnQcDyAjR8iI9Msno1autC0BfQDEAt0rWg7uz7Ar1lU4kf0FiEKsE3lB5TVOpcs gfQLYitUVwvFswD2AgRJCNHv0hl52HJFy5p+F4CLprK4B9/ZfyvnEYC+06B+Af+076jg qj4eo+yzRFRBJO1e9KO6GrIOAJdq15Vj9fNycPEc02V8L7CyJnJqxM1oOZYKl2FDPu71 vNQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=gLfs4Y3oqpg0SQa9FTMpvvheCBmvGkboqkAxooel/fk=; b=O2we+opeOlOzKOJ1mSEN8M0BHnqjHKTgXmWgN75W8LwAfWEMnBSAuElBUchD7m612s buCpQLcrHgaUTq0zj8fAnpn9P6iPScq5V4uYgAPquJykdQrqgNqA/Le5KmPdFnnjNQQr hzlpwcsGoR0TSdtCFfVlrUGGIfSL1rM/J6fK0rX0MM7DM/P5clLLiFoFYPDyEIivkgYy yo+KrDO+R056ZdyDGH1dAQ9b1FvLOGqsYKbhMZybkHo/HH7c1mD4fS9nKnUHRab3+Tum mF1nF6vnlV3fAhvKG2kj8UmNAPk6B+Slm73ykGEM0N7tA9iB9Sith1Z8M6b5Os/HCY/q Nr1A== X-Gm-Message-State: AG10YOSh/v4rHNbzJhRfGVAtEnI8IZuNb6J4Tx5dTHpIzcSSjb70cXh3LI/wlwS4T+kLoRBv X-Received: by 10.28.194.68 with SMTP id s65mr2235825wmf.65.1455790076923; Thu, 18 Feb 2016 02:07:56 -0800 (PST) Received: from bark.daynix ([5.102.236.99]) by smtp.gmail.com with ESMTPSA id x65sm2214799wmg.4.2016.02.18.02.07.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Feb 2016 02:07:55 -0800 (PST) From: Leonid Bloch To: qemu-devel@nongnu.org Date: Thu, 18 Feb 2016 12:07:22 +0200 Message-Id: <1455790054-1952-2-git-send-email-leonid.bloch@ravellosystems.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1455790054-1952-1-git-send-email-leonid.bloch@ravellosystems.com> References: <1455790054-1952-1-git-send-email-leonid.bloch@ravellosystems.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::22f Cc: Dmitry Fleytman , Jason Wang , Leonid Bloch , Shmulik Ladkani , "Michael S. Tsirkin" Subject: [Qemu-devel] [PATCH 01/13] msix: make msix_clr_pending() visible for clients X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Dmitry Fleytman This function will be used by e1000e device code. Signed-off-by: Dmitry Fleytman Signed-off-by: Leonid Bloch Reviewed-by: Michael S. Tsirkin --- hw/pci/msix.c | 2 +- include/hw/pci/msix.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/pci/msix.c b/hw/pci/msix.c index eb4ef11..cce89d9 100644 --- a/hw/pci/msix.c +++ b/hw/pci/msix.c @@ -72,7 +72,7 @@ void msix_set_pending(PCIDevice *dev, unsigned int vector) *msix_pending_byte(dev, vector) |= msix_pending_mask(vector); } -static void msix_clr_pending(PCIDevice *dev, int vector) +void msix_clr_pending(PCIDevice *dev, int vector) { *msix_pending_byte(dev, vector) &= ~msix_pending_mask(vector); } diff --git a/include/hw/pci/msix.h b/include/hw/pci/msix.h index 72e5f93..048a29d 100644 --- a/include/hw/pci/msix.h +++ b/include/hw/pci/msix.h @@ -29,6 +29,7 @@ int msix_present(PCIDevice *dev); bool msix_is_masked(PCIDevice *dev, unsigned vector); void msix_set_pending(PCIDevice *dev, unsigned vector); +void msix_clr_pending(PCIDevice *dev, int vector); int msix_vector_use(PCIDevice *dev, unsigned vector); void msix_vector_unuse(PCIDevice *dev, unsigned vector);