From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5B50846AA81 for ; Fri, 14 Aug 2026 11:56:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786708601; cv=none; b=pryEIfepcey7OH+wMNElO41NV3Q+rnN5kKXSauLsL1WPnTSYoRphWn3axL7ij1MnBlH//aAwNf9OeiS2x1UVRoRlztp3HmyyrZDZ3m7hrMrI1v9JjMwAsynwE0O+tH6FvYM4gcemE3n/KUi+Gxfpqvc5NvGuwmbzpzsI1dXpiFs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786708601; c=relaxed/simple; bh=75WIdoyehgQt4Cvq9Rasz+hBaYGFXii+O4btnkeMIkc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=YNW4zFKgUgV1B/IZgCMR+SfPBAGxRdPNwP3xKKvor5TXLHYaZ0q3XfXHssHJ50mochH/4fzdi7kSi0YCXe7QWWss5NqUkdV28dzhaw0jct8yYysboVbtiu4FPKMA9+bFjLVqsEO4svDRmz407ldZ+v5V1SH4iPZnnA+II+k0xyI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=nbhDcVGb; arc=none smtp.client-ip=209.85.210.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nbhDcVGb" Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-84830c774a0so749157b3a.1 for ; Fri, 14 Aug 2026 04:56:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786708600; x=1787313400; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=75WIdoyehgQt4Cvq9Rasz+hBaYGFXii+O4btnkeMIkc=; b=nbhDcVGbRY6mEqtji4ay7q2+IgyyPEQWwJJNfssRWJArWGGxQ5FF/BGPblC4PAHeRx 1qM/1oTnuvSc3id8cFxNLvRpz934XWJEmdJ8AdLD0maQIPPm1WCac5WX1PH7FTkS1iso dEoWDn8Kf1vOK2m+jBdoHDuzBWWjUxvqvgM+B6VQSSwM9/PbpIlQUYdTavzVbOHCBqXq EMZ/HMeGrIVrdW5MxpL23QAMaMGKNydw9hRxXSm/PusMv1L9jmTlHrpgLXTXFE18kYyZ 1tEiZX18Sn7Ze3xc0twCmfLDyFNCzpmcFDHZfp+TkCuRvo+Og98Qz4qHBr9XIeMF65VU //Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786708600; x=1787313400; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=75WIdoyehgQt4Cvq9Rasz+hBaYGFXii+O4btnkeMIkc=; b=PZ6dp7K2LRZFE7DQdrh1FqN/nagB0Yc+qmvotSICjc4w80Cawx4qtHQmGuFBVLp/r4 Fosu++tROMOZQgukbvD5itU9nXj4394iyem+rVxXiHoKsi5LCh3JAI/VboH3uAI9UxAz gSQKkUleKhvZiKNd2SMaP3QM62CMF8DgFk1lyaWGttkX4b6tlJLzG66JEXd/MTDu6H1q sUtGasruoVgnhc6eu45WG8ClrTCU3NiPQB5nWCG6RKIW7MUh38J+MSDvFk10U8jnZXQq P/sD+JY/Qzy1CCKc6CT1mn2H+iopzxZ6IQjuGTSuD6pDRU9A3WojyR76lwOtETMODZ93 kWyA== X-Forwarded-Encrypted: i=1; AHgh+Rr79pkNufCUKu8dAdedXmxEWsq93j/HPlHL1ZWTvSCTHUHgHBwZDVij8bh4x0W3FIdID3yQjJTdiuGEWss=@vger.kernel.org X-Gm-Message-State: AOJu0YwhrF9yVnuSndbz2I2H/b0cCxvhUA1WYvnFIMwUD0m+nIctxZwN U+s/RdUgzivIuNFt+HbJyzCvySNqw9DUb/5zsP7Wi4tZsyvhdZasvczT X-Gm-Gg: AR+sD13f+ToFygrF8klTIsK++2d/+OMIZLngkOU1d810Qge4IHbTrSwuSYQ5fVfVYIA PNdOihHa6YRWZ5TQyauYp1a7VMikJLhEC2D1iFQ4C7fH8Uj/ftQo43jcJXRm6avIBJMO/Y8ViBT CNhKqr5XgBiFrfw6yUSoGtSarcpwo3XazLqrXBNXIBWzPRiQ4IJcqm9EwwmOp446mkPjRrhi+2A c1+kWipz9edeKbtpoOplq91RqzaS3V0Nd7XahaeI89GXcdH7ZLXm/Hyexhi2xJiZYXmGmfs391B 6ZeqppwQ7GDTm2NtbtSKzOK691Xgut69U9WVlFZ2rywCPTpgcVdJt4rFNPpnstMqUCrWII9X5bh haCVGxqO2JWYg/OLcKKitw90HjNNoSRHfeU6WPH9svL7IpdAdwvmk5VzVK9BVVjaaNmBzmhz4YN PDOqD31meRIf03xTK/YEDWH05ykkNsI+qGqUotLT2xuOD3p/j5Bictpo7wiNgL X-Received: by 2002:a05:6a00:b48:b0:845:a435:a2eb with SMTP id d2e1a72fcca58-84fde41c7a4mr5213758b3a.31.1786708599236; Fri, 14 Aug 2026 04:56:39 -0700 (PDT) Received: from gmail.com ([188.253.12.32]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8517cfeb3d9sm366669b3a.11.2026.08.14.04.56.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Aug 2026 04:56:38 -0700 (PDT) From: Jia Jia To: sgarzare@redhat.com Cc: Jia Jia , Stefan Hajnoczi , "Michael S . Tsirkin" , Jason Wang , =?UTF-8?q?Eugenio=20P=C3=A9rez?= , kvm@vger.kernel.org, virtualization@lists.linux.dev, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 3/3] vhost/vsock: keep IOTLB across feature updates Date: Fri, 14 Aug 2026 19:56:12 +0800 Message-Id: <20260814115612.127842-2-physicalmtea@gmail.com> In-Reply-To: References: <20260814072903.124991-1-physicalmtea@gmail.com> <20260814072903.124991-4-physicalmtea@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > Will we do the same in vhost-net? If yes, all the callers will call > vhost_init_device_iotlb() with dev.iotlb NULL, so should we remove > that behaviour and add the check we are adding here inside the > vhost_init_device_iotlb()? > > Or there is an use case where vhost_init_device_iotlb() is called with > an already initialized dev.iotlb ? I will check whether there is any valid use case for calling vhost_init_device_iotlb() with an already initialized dev->iotlb. If there is no such use case, I will move the check into vhost_init_device_iotlb() and apply the same change to vhost-net as well. Thanks, Jia