Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp612283lqb; Fri, 15 Mar 2024 00:54:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW7JseLyob2km50pzmnkb9w6/TkEpkCX5WDiO5A48znZqEzo2EXd9hODHJuUYwpHGcrvJZ2VHps8OKpQUM3KXcS5nLeXei0gYc8R0Qk1A== X-Google-Smtp-Source: AGHT+IEDxSxYezadUGY2avh/WrGFybr7vI+FLtA+oZnuC5fRiph3BNMcPQioIb2cCGQZlZipzBl4 X-Received: by 2002:a05:6a21:6da5:b0:1a3:4fcd:7a18 with SMTP id wl37-20020a056a216da500b001a34fcd7a18mr1109427pzb.10.1710489247912; Fri, 15 Mar 2024 00:54:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710489247; cv=pass; d=google.com; s=arc-20160816; b=U5/CIm7luhF9L1JP6imXDPAnFzOcGfg1PZJlNTqkYXUqMLnGBNGKVvCOQgV3jT6MeX pT2gY9SatsEN80Kx5y+u6JdBP4EY+hTzvzS1Emf+JDtCTGhtLJkN4NRMYbnObK3INrc7 kBTI7w8/FzM7r4519Soa7P2AWFOcxlwJzT9GBhXONIDmqXsQaDfIXv6bwm4wwZ27NA+4 /SHU5tatsCb9VLOs7NOXs2Bd046nIMahVmWdeRhBVzLDX8YjSjSXQX28Nx7g4Hd0gd+M vhKx6yCG/K6xP+0gxk+LYnftbF1xMpPR5wfFnG7+0FJMU/oDxL513Qx2cxiTWgIRbSpu iJEQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id:dkim-signature; bh=taaP0Q9u2K5DH9xLuWgNdAcyQdJAZ4Px6dOvD4Tr4Bc=; fh=f+8c0kj1vSOCVmmKf9+/TBCpJ4XHDzX/E8sQ9YBE2BE=; b=bb7VnAriPPZF7yH8jaqk1kO35u9eS7gEro3c2FsI9BwCUuXM+hD7Hk6pXrwJ/zdJNz Arr5ehgQMJI3VQoMEJPAEMWuiWgr5Bi7IQJjwDpqGSe1JgqxEjZ88oJLTUHsqHce4Wj8 htz5yKtqFKbpAFAJkr6dxjr4SdZ0WDac+TuXIAfBxXSmOn1nDmRgBPBVUis8UTzydOGT sUi9qCIe/VxUb2KkA6gTUn8n3lEds5O1nuk53EnIFYIHQnVzI6Fpb8gL/4FNPG+/flI1 +a5Ql91KC9cuaC9sP2TWjw4hXcyiZ3ziXErOj9FPU+8frKq2QUb+zkN3tp/sStDV9cj8 a/ug==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=VzOAQfG4; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-104129-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104129-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id w1-20020a63f501000000b005dc9564a0afsi2163468pgh.317.2024.03.15.00.54.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 00:54:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-104129-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=VzOAQfG4; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-104129-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104129-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 958172835E2 for ; Fri, 15 Mar 2024 07:54:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C4F8414AB8; Fri, 15 Mar 2024 07:53:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="VzOAQfG4" Received: from out30-111.freemail.mail.aliyun.com (out30-111.freemail.mail.aliyun.com [115.124.30.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F3971168B1; Fri, 15 Mar 2024 07:53:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.111 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710489235; cv=none; b=Coxyq5aTXf2DCdRbJgtGXQvmeP0X316eOu3WwsyxbcPw0Y36O+Ba9mtpkaTLhBxwPZlcTRt4A7uzbg1CMDM6qaU0U2g8MevYBV2KThhfEuD/TydRetdGaj4aNzKNl01BCn9UuJmiY8Mtxcwp2YA72mGtSeM0xM6Jmgm65KaON8Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710489235; c=relaxed/simple; bh=6FMRl6m8tBGLZaaAzsLem205PhnR/hBTd36NLkHi/Cw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=YfRap1HphXMzhw1wadsALLNYDdUyWTILr15+rGf9cclpyRg9SjU0j0Ux4ajwjhsGjqf2uCgJMxVnhpeDNFzq9yHUk2JJM8eRYE/v7R7ohDD1/Kv0SaNS3kBf+DVWIhAlT1Z6JWtIWuRaCG/SGsx10ulMUFLQtp3GMBV4lpVUH0g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=VzOAQfG4; arc=none smtp.client-ip=115.124.30.111 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1710489229; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=taaP0Q9u2K5DH9xLuWgNdAcyQdJAZ4Px6dOvD4Tr4Bc=; b=VzOAQfG4t0ynN0mr9D+RsuQLbRV1YKnO7NNvycyCEWHUN0x51I6QP6xNBf2W2znTe8TZ3tOGYV0hVvuwWmrrPNhCL+oog1dgrhUBgRPg10L01uj13W3ySlhgqDLwMHFEw+gq2pkYs0Tz3R6Le8jldCAYf+6uZNwwuOfrYP6NUTA= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045170;MF=xianting.tian@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0W2VZ4oX_1710489199; Received: from 30.221.98.145(mailfrom:xianting.tian@linux.alibaba.com fp:SMTPD_---0W2VZ4oX_1710489199) by smtp.aliyun-inc.com; Fri, 15 Mar 2024 15:53:48 +0800 Message-ID: Date: Fri, 15 Mar 2024 15:53:18 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] vhost: correct misleading printing information To: mst@redhat.com, jasowang@redhat.com Cc: kvm@vger.kernel.org, virtualization@lists.linux.dev, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240311082109.46773-1-xianting.tian@linux.alibaba.com> From: Xianting Tian In-Reply-To: <20240311082109.46773-1-xianting.tian@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit it is a very minor fix, I think it can be applied 在 2024/3/11 下午4:21, Xianting Tian 写道: > Guest moved avail idx not used idx when we need to print log if > '(vq->avail_idx - last_avail_idx) > vq->num', so fix it. > > Signed-off-by: Xianting Tian > --- > drivers/vhost/vhost.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c > index 045f666b4f12..1f3604c79394 100644 > --- a/drivers/vhost/vhost.c > +++ b/drivers/vhost/vhost.c > @@ -2515,7 +2515,7 @@ int vhost_get_vq_desc(struct vhost_virtqueue *vq, > vq->avail_idx = vhost16_to_cpu(vq, avail_idx); > > if (unlikely((u16)(vq->avail_idx - last_avail_idx) > vq->num)) { > - vq_err(vq, "Guest moved used index from %u to %u", > + vq_err(vq, "Guest moved avail index from %u to %u", > last_avail_idx, vq->avail_idx); > return -EFAULT; > }