From nobody Sun Dec 29 00:44:55 2024 Delivered-To: importer2@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1720597302; cv=none; d=zohomail.com; s=zohoarc; b=QdikjqOqIlf4DQyQBHbpXGXr16CQRzDmkfwl8oR7MsZDdcaPOCNd04o/jslo4rbxJQHnryNV07U9fhSSAWnXe+GzDriX3m42JfYU/9QPRaBGqOA8BjiAXCUrsHp0c2D5gFJM9X6m3wr6MYnrsRJPiaPidiNlmUX8jWV8QPpeJrs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720597302; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=gGM++8hg5AQEDA3Q0TpWg63YW7XObKV9eaj3BOdRmRQ=; b=ipjEKOliB5Rh6T51HphFFbYKlUoCgxtzWcgrFnNmj4jy7nS0tzE1kmzp7rTqclEM0fcmbojmPcAwZfgkJ74WDENwwpMmLQiBcxkKvzm/Z5Ex+bLLsPR0EDwdsUMXnSzKKkzQ+xcW6PzXHMsdLyUlAZgujCut4JRq7yMjG3bCks0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1720597302045220.9236076333765; Wed, 10 Jul 2024 00:41:42 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRRwt-0006Xp-7F; Wed, 10 Jul 2024 03:41:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sRRwn-0006X3-Et for qemu-devel@nongnu.org; Wed, 10 Jul 2024 03:41:06 -0400 Received: from va-2-34.ptr.blmpb.com ([209.127.231.34]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sRRwi-0005Um-E6 for qemu-devel@nongnu.org; Wed, 10 Jul 2024 03:41:05 -0400 Received: from localhost.localdomain ([124.64.23.34]) by smtp.feishu.cn with ESMTPS; Wed, 10 Jul 2024 15:40:46 +0800 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=s1; d=dayudpu-com.20200927.dkim.feishu.cn; t=1720597247; h=from:subject:mime-version:from:date:message-id:subject:to:cc: reply-to:content-type:mime-version:in-reply-to:message-id; bh=gGM++8hg5AQEDA3Q0TpWg63YW7XObKV9eaj3BOdRmRQ=; b=a+DMSB0iGIj5pTrtsb8TSPcaYxryhBTzYWWWSr452aXl0Awxfrp8ZbIi2BxZCVINZI4rhq zFglTQsHXP3c43V02Ui0L1nl/TgSyhA50AJsJx7TW+0v4/8zHgC1FkNlTojXP9lUOz2RaF duoU5eUHLISkxaCb39QbprAp+hUlVGe3ScTfgRhaUOX2rWd20cCqzJWYljLFn8Hu8+/mk+ f6jXNgObhAKqNEjbEhg2x4zIuzL63Y8fkGrPOS+z8PXhRYMJEaNE8/Jj79VXRCzBb5NanL DEezIyHntSaoHbcdTyVxyOSJGLR4uN/4p8dIBelXWbP4VtuLo0eIBVMBDmVUlA== X-Original-From: xiangwencheng@dayudpu.com To: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mailer: git-send-email 2.30.0 X-Lms-Return-Path: Cc: , , "BillXiang" From: "BillXiang" Subject: [PATCH] vhsot-user: Remove redundant judgment Date: Wed, 10 Jul 2024 15:40:41 +0800 Message-Id: <20240710074041.85984-1-xiangwencheng@dayudpu.com> Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=209.127.231.34; envelope-from=xiangwencheng@dayudpu.com; helo=va-2-34.ptr.blmpb.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer2=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @dayudpu-com.20200927.dkim.feishu.cn) X-ZM-MESSAGEID: 1720597303940116300 Content-Type: text/plain; charset="utf-8" From: BillXiang Send only once has been supported in vhost_user_write by vhost_user_per_dev= ice_request Signed-off-by: BillXiang --- hw/virtio/vhost-user.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/hw/virtio/vhost-user.c b/hw/virtio/vhost-user.c index 00561daa06..04e3568b7e 100644 --- a/hw/virtio/vhost-user.c +++ b/hw/virtio/vhost-user.c @@ -446,11 +446,6 @@ static int vhost_user_set_log_base(struct vhost_dev *d= ev, uint64_t base, .hdr.size =3D sizeof(msg.payload.log), }; =20 - /* Send only once with first queue pair */ - if (dev->vq_index !=3D 0) { - return 0; - } - if (shmfd && log->fd !=3D -1) { fds[fd_num++] =3D log->fd; } --=20 2.30.0