From patchwork Sat Sep 19 10:12:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= X-Patchwork-Id: 519669 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 01D2B1401F0 for ; Sat, 19 Sep 2015 20:16:18 +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=ozSP/q7z; dkim-atps=neutral Received: from localhost ([::1]:44838 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdFBn-0006kB-Sp for incoming@patchwork.ozlabs.org; Sat, 19 Sep 2015 06:16:15 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34095) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdF8Y-0001ME-IS for qemu-devel@nongnu.org; Sat, 19 Sep 2015 06:12:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZdF8X-0005Ph-MD for qemu-devel@nongnu.org; Sat, 19 Sep 2015 06:12:54 -0400 Received: from mail-qg0-x230.google.com ([2607:f8b0:400d:c04::230]:33962) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdF8X-0005PO-8R for qemu-devel@nongnu.org; Sat, 19 Sep 2015 06:12:53 -0400 Received: by qgez77 with SMTP id z77so57421315qge.1 for ; Sat, 19 Sep 2015 03:12:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=syP6i18nTqGMWgIUTGGs3NUAoZUZbQNhGIJW+bRyHRA=; b=ozSP/q7z4+axG2JfI0MdseqbH80wU4cuIZc97zpLhMIXu2LmrxXoUrdTIRcw7OIR/v JM9FDPiVaCozp8hH8LP5ylDRj1gm4pz++tRXQxID0tpPaG1F+5Ry5eqlTUViT5U7rvIb o1oSJH3BppKKGthGS/4LBm/2SO9jHjuupJOiTNJGsdt2t0YDKyePGQvFfTo0sHGQESYm uSxlKOR5XUdUypTKLErZ+qc91ruDy5KCY8EHiBJyYC3845d6KSiJbbiNeZ+7oSD4oCRH TT89pH8rGzSlEMvMSZMYSJ3vSVmSlS5JKA6vNk0oPMbgarKR4QIPhrbvei5OJ2vqlcwx dOlA== X-Received: by 10.140.108.202 with SMTP id j68mr11344336qgf.101.1442657572931; Sat, 19 Sep 2015 03:12:52 -0700 (PDT) Received: from localhost (bne75-h02-31-39-163-232.dsl.sta.abo.bbox.fr. [31.39.163.232]) by smtp.gmail.com with ESMTPSA id r5sm5478012qha.48.2015.09.19.03.12.51 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 19 Sep 2015 03:12:52 -0700 (PDT) From: marcandre.lureau@redhat.com To: qemu-devel@nongnu.org Date: Sat, 19 Sep 2015 12:12:01 +0200 Message-Id: <1442657533-13030-11-git-send-email-marcandre.lureau@redhat.com> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1442657533-13030-1-git-send-email-marcandre.lureau@redhat.com> References: <1442657533-13030-1-git-send-email-marcandre.lureau@redhat.com> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c04::230 Cc: haifeng.lin@huawei.com, mst@redhat.com, thibaut.collet@6wind.com, jasowang@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Subject: [Qemu-devel] [PATCH v4 10/22] vhost-user: remove vhost_user_request_translate() 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Marc-André Lureau The translation is no longer needed. Signed-off-by: Marc-André Lureau --- hw/virtio/vhost-user.c | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/hw/virtio/vhost-user.c b/hw/virtio/vhost-user.c index d5b7951..d3334f5 100644 --- a/hw/virtio/vhost-user.c +++ b/hw/virtio/vhost-user.c @@ -94,42 +94,6 @@ static bool ioeventfd_enabled(void) return kvm_enabled() && kvm_eventfds_enabled(); } -static VhostUserRequest vhost_user_request_translate(unsigned long int request) -{ - switch (request) { - case VHOST_GET_FEATURES: - return VHOST_USER_GET_FEATURES; - case VHOST_SET_FEATURES: - return VHOST_USER_SET_FEATURES; - case VHOST_SET_OWNER: - return VHOST_USER_SET_OWNER; - case VHOST_RESET_OWNER: - return VHOST_USER_RESET_OWNER; - case VHOST_SET_MEM_TABLE: - return VHOST_USER_SET_MEM_TABLE; - case VHOST_SET_LOG_BASE: - return VHOST_USER_SET_LOG_BASE; - case VHOST_SET_LOG_FD: - return VHOST_USER_SET_LOG_FD; - case VHOST_SET_VRING_NUM: - return VHOST_USER_SET_VRING_NUM; - case VHOST_SET_VRING_ADDR: - return VHOST_USER_SET_VRING_ADDR; - case VHOST_SET_VRING_BASE: - return VHOST_USER_SET_VRING_BASE; - case VHOST_GET_VRING_BASE: - return VHOST_USER_GET_VRING_BASE; - case VHOST_SET_VRING_KICK: - return VHOST_USER_SET_VRING_KICK; - case VHOST_SET_VRING_CALL: - return VHOST_USER_SET_VRING_CALL; - case VHOST_SET_VRING_ERR: - return VHOST_USER_SET_VRING_ERR; - default: - return VHOST_USER_MAX; - } -} - static int vhost_user_read(struct vhost_dev *dev, VhostUserMsg *msg) { CharDriverState *chr = dev->opaque;