Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp64761pxb; Tue, 12 Jan 2021 20:15:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJzllhNAbHgMNimeqnm6MyEiszs1w6ZUqIUe+hfE3A+J5B2hzaQ4k8lLliCtQwSuoZT4RBOZ X-Received: by 2002:a05:6402:1646:: with SMTP id s6mr228673edx.319.1610511339378; Tue, 12 Jan 2021 20:15:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610511339; cv=none; d=google.com; s=arc-20160816; b=f88LfkLWUtC+2u2u/2Wm3NGjxYoMEm2WMFyB7YhGqhoVVecaqnbIaH1hN2CARUYabS W0dis3+pXAXBs1yAZQRPzlfbxeqxc6CsBszcQWvLYnGMlp+M3/MwwHsk5ASxLIhn1149 kveVWKyX73lFV54sy3E9Zmgz4P6/QJYd6pgUQvU6ypupdyU3Dk/YF1WCxA/dnBv7Fs+U qFxTYfTlt4XK8yqihUHHIaF3Nj2XPREO2JvEo8slcettJQrhlRLu78fDc8nhM3rsDSP2 7Cx5zWhkxLFslOhqjElX+SI10XcvRM9xU4S5tuU4i5D5flS75cyj/aAa3jnUoWIVkcx7 Hw+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=2uX+184DuL6+IbX64Mwow/W3eFyTHIEtajxhKilUb2U=; b=VE5mPE09vRMdAaAmbwO4xpdrWi7IGHQ88WvrDHHHAq2lIkpvMHHwv90pCHd+Hr74da sCm7nH/axCYNM8LxetmeMXmwQHuSkhTSrj/9PUDKx7cntWEoJK7Z8jFle2peh/hzwsIm H/XxXrkFvJgka3i2FKCRSlb6pnazAgSAYIbustjwV0An7Ss3uRISDsMdr2fRSEQLJANt zQBAIX20fNdAoY6lTUnJni6Cguo6dL7yTFv/ev6L0ZOHRuBXL14MqYFis3YUF7TZlgQb QBz5uFby4zZeHBnS0EbAwgQbYnT+vSRqBnAwVFveMROi87ChZswhN/f8uUhhDt05c9+K U0vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AiQf1f7q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h4si402691edv.124.2021.01.12.20.15.15; Tue, 12 Jan 2021 20:15:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AiQf1f7q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726289AbhAMEOc (ORCPT + 99 others); Tue, 12 Jan 2021 23:14:32 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:33047 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726251AbhAMEOc (ORCPT ); Tue, 12 Jan 2021 23:14:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1610511185; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2uX+184DuL6+IbX64Mwow/W3eFyTHIEtajxhKilUb2U=; b=AiQf1f7qat+UbF8brPZtKCBX4w2TvhvrLjSUm+pZwlW+5oLQ9CUMQ1aLcUdQNMk2peoWo6 LT+Vbq/fSrCBoD0moGy0ON+AqfClSZWm82tG6453pnYNbufYsciwXrB6KQVfaqesIL4QJG scysweHTdlmjd/h4FZ0tC1u0SjrLJQQ= Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-531-8Ub_RLYmMNGJQhdDX5Pn5g-1; Tue, 12 Jan 2021 23:13:03 -0500 X-MC-Unique: 8Ub_RLYmMNGJQhdDX5Pn5g-1 Received: by mail-pl1-f200.google.com with SMTP id ba10so433700plb.11 for ; Tue, 12 Jan 2021 20:13:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=2uX+184DuL6+IbX64Mwow/W3eFyTHIEtajxhKilUb2U=; b=fJGVcauE6mrLEKC0fXyt1ddXOSINMs0GPNelS/FI1HIi5+z3gTopgrO/69unduBmPy 2XMfYZkSuiQCuaUuC2Hm+A2IRmlIb03igvv1/nA6VJYxZXr2nljlRik91ph0rRMjvAS/ jmlMh3SWjp0qvrsBfl459WvsRqr0WZSXxmyVjSAfyJrWLfr9tiaYmSU0Kwzzu73T8g1/ vTHCd0sW6NIiesqAdP0+tCz5ypjtEaGgGZv8f8Ci8oKLj1ViNPMxM2tcduQCfrz/mEPC m+ahq7SG028zkEITQJeobxwZaTCmHlSbB4uCTMn1RNUn1sp7Atnf+fW/YPLCih4fJVvX z3FA== X-Gm-Message-State: AOAM532e2OIZEOupL2aCOcuPqGgbaWNKc96MmLgtH3Okuk+7QY9O1V4q W0vjj5z6Z6CdSTqa/pGOJuHkuM75EhGad5uiyMGfLp4dScqppc46JJ/FDTNBqTvePvSZuDemAye eXHZ3xRLZd8ddSCg+f4oDjo/aXN10mXy0zHX27web X-Received: by 2002:a17:902:8a8a:b029:db:e003:4044 with SMTP id p10-20020a1709028a8ab02900dbe0034044mr366026plo.19.1610511182729; Tue, 12 Jan 2021 20:13:02 -0800 (PST) X-Received: by 2002:a17:902:8a8a:b029:db:e003:4044 with SMTP id p10-20020a1709028a8ab02900dbe0034044mr366015plo.19.1610511182494; Tue, 12 Jan 2021 20:13:02 -0800 (PST) MIME-Version: 1.0 References: <20210112053629.9853-1-lulu@redhat.com> <1403c336-4493-255f-54e3-c55dd2015c40@redhat.com> In-Reply-To: <1403c336-4493-255f-54e3-c55dd2015c40@redhat.com> From: Cindy Lu Date: Wed, 13 Jan 2021 12:12:25 +0800 Message-ID: Subject: Re: [PATCH v3] vhost_vdpa: fix the problem in vhost_vdpa_set_config_call To: Jason Wang Cc: Michael Tsirkin , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, "Zhu, Lingshan" , stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 13, 2021 at 11:38 AM Jason Wang wrote: > > > On 2021/1/12 =E4=B8=8B=E5=8D=881:36, Cindy Lu wrote: > > In vhost_vdpa_set_config_call, the cb.private should be vhost_vdpa. > > this cb.private will finally use in vhost_vdpa_config_cb as > > vhost_vdpa. Fix this issue. > > > > Fixes: 776f395004d82 ("vhost_vdpa: Support config interrupt in vdpa") > > Acked-by: Jason Wang > > Signed-off-by: Cindy Lu > > --- > > > Hi Cindy: > > I think at least you forget to cc stable. > > Thanks > Sure Thanks Jason I will post a new version > > > drivers/vhost/vdpa.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/vhost/vdpa.c b/drivers/vhost/vdpa.c > > index ef688c8c0e0e..3fbb9c1f49da 100644 > > --- a/drivers/vhost/vdpa.c > > +++ b/drivers/vhost/vdpa.c > > @@ -319,7 +319,7 @@ static long vhost_vdpa_set_config_call(struct vhost= _vdpa *v, u32 __user *argp) > > struct eventfd_ctx *ctx; > > > > cb.callback =3D vhost_vdpa_config_cb; > > - cb.private =3D v->vdpa; > > + cb.private =3D v; > > if (copy_from_user(&fd, argp, sizeof(fd))) > > return -EFAULT; > > >