From patchwork Sun Jul 10 11:47:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Condrea X-Patchwork-Id: 646758 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rnRZk0Y67z9sDk for ; Sun, 10 Jul 2016 21:58:38 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=JwxfLdpG; dkim-atps=neutral Received: from localhost ([::1]:54258 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMDNb-00015e-TW for incoming@patchwork.ozlabs.org; Sun, 10 Jul 2016 07:58:36 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMDDk-00065Q-Ko for qemu-devel@nongnu.org; Sun, 10 Jul 2016 07:48:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMDDj-0001ha-Ed for qemu-devel@nongnu.org; Sun, 10 Jul 2016 07:48:24 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:35734) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMDDj-0001hV-4w for qemu-devel@nongnu.org; Sun, 10 Jul 2016 07:48:23 -0400 Received: by mail-wm0-x243.google.com with SMTP id k123so13138549wme.2 for ; Sun, 10 Jul 2016 04:48:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=xfHQl+u5yynkPjKAPTpNqs4000Yiem+S0Wct713scik=; b=JwxfLdpG4OtKO+gwmaXrItlnsXgU6sd9PcHdxZFS/RNXlqUVwlGaPXDzXQyJ78QX1t R1ULAgPGqSBxrLKzz7sCj96aO5oU8dc3KD/dFj7Q/XDkKHJkZ4q1/3vdlRS8XJb3OIvp gYhHCRMrbs9seAfKOZ85PR7Ms0NQAS0lqsm9FXUOxEsbsBkzfTWatxWSSDhb6q2o6fC3 f8gvdtdMChNzpgp8+rT88b2KhEG3vubC3rVSTWomEv8D7gORMRKcaztIYJveEEpYqQIc UdhVQORMCl1rRjoYZqzADRFcQx4lXReWygi8HcEYhtJj5ke5gimj6W4iDzbPzCle63z5 TWBQ== 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=xfHQl+u5yynkPjKAPTpNqs4000Yiem+S0Wct713scik=; b=itce8SUqGpnC3xf1wu1VRWq4rmZi9F3OyQ6T4LKjcdHV1Qv85WP/tN/mgYLTZMUTM0 FufgI9h6/eH2y221PVTqGjI1hW/k2M8K6UjEBQeclcIbp3Lta0ZniIBe5fqv1P5aVpfP r21/PwBMsdo7wNnUvj2ZuampjZHi9mzcS7Tvk93ftbQhVo629tXLrQymCiyzhLZl+kBf T2q3zF0E5NyO5Hm6JmFALZ3nGwQWE3lzM2MgLdJ0ksVS2u1LxqMMrfze0i5A7V5Otrh0 QGmS4tZpHJn+bb162MItV9rkc2cin83m5a4+r2Q91C9wmxxxuXHHp8u3lPDrr6ElJ3Qq uWFg== X-Gm-Message-State: ALyK8tI7iLKeCU/dDr5yjqmlLtFAhEIojJVWDfsAlNWRpYzh1c3hc3p6O0woBJJMsXVthA== X-Received: by 10.28.37.2 with SMTP id l2mr12112970wml.23.1468151302528; Sun, 10 Jul 2016 04:48:22 -0700 (PDT) Received: from localhost.localdomain ([79.112.8.37]) by smtp.gmail.com with ESMTPSA id d137sm6888378wmd.12.2016.07.10.04.48.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 10 Jul 2016 04:48:21 -0700 (PDT) From: Emil Condrea To: qemu-devel@nongnu.org Date: Sun, 10 Jul 2016 14:47:39 +0300 Message-Id: <1468151270-12984-9-git-send-email-emilcondrea@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1468151270-12984-1-git-send-email-emilcondrea@gmail.com> References: <1468151270-12984-1-git-send-email-emilcondrea@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::243 Subject: [Qemu-devel] [PATCH 08/19] xen: Rename xen_be_send_notify 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: wei.liu2@citrix.com, stefanb@linux.vnet.ibm.com, stefano.stabellini@eu.citrix.com, xen-devel@lists.xen.org, quan.xu@intel.com, dgdegra@tycho.nsa.gov, emilcondrea@gmail.com Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Prepare xen_be_send_notify to be shared with frontends: * xen_be_send_notify -> xen_pv_send_notify Signed-off-by: Emil Condrea --- hw/block/xen_disk.c | 4 ++-- hw/char/xen_console.c | 4 ++-- hw/display/xenfb.c | 8 ++++---- hw/net/xen_nic.c | 4 ++-- hw/xen/xen_pvdev.c | 2 +- include/hw/xen/xen_pvdev.h | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/hw/block/xen_disk.c b/hw/block/xen_disk.c index 0716ca2..c36b08b 100644 --- a/hw/block/xen_disk.c +++ b/hw/block/xen_disk.c @@ -659,7 +659,7 @@ static void blk_send_response_all(struct XenBlkDev *blkdev) ioreq_release(ioreq, true); } if (send_notify) { - xen_be_send_notify(&blkdev->xendev); + xen_pv_send_notify(&blkdev->xendev); } } @@ -729,7 +729,7 @@ static void blk_handle_requests(struct XenBlkDev *blkdev) }; if (blk_send_response_one(ioreq)) { - xen_be_send_notify(&blkdev->xendev); + xen_pv_send_notify(&blkdev->xendev); } ioreq_release(ioreq, false); continue; diff --git a/hw/char/xen_console.c b/hw/char/xen_console.c index 889f7b2..94e6ab0 100644 --- a/hw/char/xen_console.c +++ b/hw/char/xen_console.c @@ -72,7 +72,7 @@ static void buffer_append(struct XenConsole *con) xen_mb(); intf->out_cons = cons; - xen_be_send_notify(&con->xendev); + xen_pv_send_notify(&con->xendev); if (buffer->max_capacity && buffer->size > buffer->max_capacity) { @@ -140,7 +140,7 @@ static void xencons_receive(void *opaque, const uint8_t *buf, int len) } xen_wmb(); intf->in_prod = prod; - xen_be_send_notify(&con->xendev); + xen_pv_send_notify(&con->xendev); } static void xencons_send(struct XenConsole *con) diff --git a/hw/display/xenfb.c b/hw/display/xenfb.c index 250dbc2..01ae00f 100644 --- a/hw/display/xenfb.c +++ b/hw/display/xenfb.c @@ -215,7 +215,7 @@ static int xenfb_kbd_event(struct XenInput *xenfb, XENKBD_IN_RING_REF(page, prod) = *event; xen_wmb(); /* ensure ring contents visible */ page->in_prod = prod + 1; - return xen_be_send_notify(&xenfb->c.xendev); + return xen_pv_send_notify(&xenfb->c.xendev); } /* Send a keyboard (or mouse button) event */ @@ -397,7 +397,7 @@ static void input_event(struct XenDevice *xendev) if (page->out_prod == page->out_cons) return; page->out_cons = page->out_prod; - xen_be_send_notify(&xenfb->c.xendev); + xen_pv_send_notify(&xenfb->c.xendev); } /* -------------------------------------------------------------------- */ @@ -664,7 +664,7 @@ static void xenfb_send_event(struct XenFB *xenfb, union xenfb_in_event *event) xen_wmb(); /* ensure ring contents visible */ page->in_prod = prod + 1; - xen_be_send_notify(&xenfb->c.xendev); + xen_pv_send_notify(&xenfb->c.xendev); } static void xenfb_send_refresh_period(struct XenFB *xenfb, int period) @@ -935,7 +935,7 @@ static void fb_event(struct XenDevice *xendev) struct XenFB *xenfb = container_of(xendev, struct XenFB, c.xendev); xenfb_handle_events(xenfb); - xen_be_send_notify(&xenfb->c.xendev); + xen_pv_send_notify(&xenfb->c.xendev); } /* -------------------------------------------------------------------- */ diff --git a/hw/net/xen_nic.c b/hw/net/xen_nic.c index 1fc6a22..f46c745 100644 --- a/hw/net/xen_nic.c +++ b/hw/net/xen_nic.c @@ -70,7 +70,7 @@ static void net_tx_response(struct XenNetDev *netdev, netif_tx_request_t *txp, i netdev->tx_ring.rsp_prod_pvt = ++i; RING_PUSH_RESPONSES_AND_CHECK_NOTIFY(&netdev->tx_ring, notify); if (notify) { - xen_be_send_notify(&netdev->xendev); + xen_pv_send_notify(&netdev->xendev); } if (i == netdev->tx_ring.req_cons) { @@ -218,7 +218,7 @@ static void net_rx_response(struct XenNetDev *netdev, netdev->rx_ring.rsp_prod_pvt = ++i; RING_PUSH_RESPONSES_AND_CHECK_NOTIFY(&netdev->rx_ring, notify); if (notify) { - xen_be_send_notify(&netdev->xendev); + xen_pv_send_notify(&netdev->xendev); } } diff --git a/hw/xen/xen_pvdev.c b/hw/xen/xen_pvdev.c index 6bf1ae4..3d8b2c2 100644 --- a/hw/xen/xen_pvdev.c +++ b/hw/xen/xen_pvdev.c @@ -204,7 +204,7 @@ void xen_pv_unbind_evtchn(struct XenDevice *xendev) xendev->local_port = -1; } -int xen_be_send_notify(struct XenDevice *xendev) +int xen_pv_send_notify(struct XenDevice *xendev) { return xenevtchn_notify(xendev->evtchndev, xendev->local_port); } diff --git a/include/hw/xen/xen_pvdev.h b/include/hw/xen/xen_pvdev.h index 5c27184..80e242f 100644 --- a/include/hw/xen/xen_pvdev.h +++ b/include/hw/xen/xen_pvdev.h @@ -72,7 +72,7 @@ struct XenDevice *xen_be_del_xendev(int dom, int dev); struct XenDevice *xen_be_find_xendev(const char *type, int dom, int dev); void xen_pv_unbind_evtchn(struct XenDevice *xendev); -int xen_be_send_notify(struct XenDevice *xendev); +int xen_pv_send_notify(struct XenDevice *xendev); void xen_pv_printf(struct XenDevice *xendev, int msg_level, const char *fmt, ...) GCC_FMT_ATTR(3, 4);