Article View: linux.kernel.netdev
Article #25135Re: [PATCH v2] vhost-vdpa: skip unmapped gap in vhost_vdpa_va_map()
From: Fang Xieyan
Date: Tue, 01 Dec 2026 09:41
Date: Tue, 01 Dec 2026 09:41
33 lines
9843 bytes
9843 bytes
Hi Jiaming, > Weimin already sent the rollback fix in July [1]. I've asked him for a > rebased v2, vma_lookup() can go on top of that. Done, in that order: patch 1 is Weimin's July change rebased onto v7.4-rc5 with his authorship and Eugenio's Acked-by kept, patch 2 is your line, with Suggested-by on it. The gap-skipping is gone. > vma_lookup() just makes it easier to hit. Right, and that is what puts patch 1 in front: with patch 2 alone, the request that fails on a gap takes every mapping of the address space with it. The four-state numbers are in the notes of patch 1. > Are you planning a v3? If not I'm happy to pick it up and keep you > credited. Posted just before this reply, as its own thread so that the cover carries the defect: https://lore.kernel.org/all/20261201091722.46805-1-fangxy@xiaopeng.com/ Nothing to pick up, thanks - Weimin has the choice to resend patch 1 himself, which I offered him in the cover. Patch 1 deliberately carries no Cc stable, for the reason in its notes; patch 2 does. Thanks again for the pointer and the repro. Fang Xieyan [1] https://lore.kernel.org/all/20260716030238.124368-1-xiongwm2026@163.com/
Technical Details
Message-ID:
<20261201094114.70256-1-fangxy@xiaopeng.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374907-linux-kernel-netdev=dewy.ruReferences:
<20261126072414.97199-1-fangxy@xiaopeng.com> <OS3PR01MB102513620123817B5CC67D58CE7402@OS3PR01MB10251.jpnprd01.prod.outlook.com> <OS3PR01MB1025190F5285E8D5EC0BCF66CE7402@OS3PR01MB10251.jpnprd01.prod.outlook.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374907-linux-kernel-netdev=dewy.ru
From: fangxy@xiaopeng.com (Fang Xieyan)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH v2] vhost-vdpa: skip unmapped gap in vhost_vdpa_va_map()
Date: Tue, 1 Dec 2026 17:41:14 +0800
Organization: Usenet Network
Message-ID: <20261201094114.70256-1-fangxy@xiaopeng.com>
References: <20261126072414.97199-1-fangxy@xiaopeng.com> <OS3PR01MB102513620123817B5CC67D58CE7402@OS3PR01MB10251.jpnprd01.prod.outlook.com> <OS3PR01MB1025190F5285E8D5EC0BCF66CE7402@OS3PR01MB10251.jpnprd01.prod.outlook.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="1675917"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:eT3E11XPcty6RvAXIk8cdCK8awU= sha256:d44gN4tE0mW3bxrPwxLFHE/BnRb6aZsoeU6XzYNf/VA=
sha1:DZMyXW/TnZk314nXHUl227LtLl0= sha256:L2DvjBfU4fBNRouzmMfBHBvAPRY4HKH94SBM/zkghAo=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 2199811730A; Tue, 1 Dec 2026 12:41:47 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.149
X-Spam-Status: No, score=-3.149 tagged_above=-9999 required=6.31
tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
UNPARSEABLE_RELAY=0.001, URIBL_BLOCKED=0.001]
autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
header.d=xiaopeng.com
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id 90KInndOpyN9;
Tue, 1 Dec 2026 12:41:39 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-374907-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=xiaopeng.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id 63099117301; Tue, 1 Dec 2026 12:41:30 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by tor.lore.kernel.org (Postfix) with ESMTP id D589E25F67; Tue, 1 Dec 2026 09:41:27 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1796118087;
b=yeIfsEGO8NB+SQqyQhknGRycsofokp6Q+PS325MxEpAqC+JNSNcg6hAVqUOC8hXT4ngZ
r8109qUuYXg6TVdZb2kq/7fSUOt2tOXj2QyiAt33zg0VtBf90Tr2eAw8UsOAmQ+4G3qnm
/Lz1PKvmPZIt8UQkD5PqC5+JVa+wInezEwiUISkZvIHIvV+MY/t5a7ZJqKWp2eNmY+uVv
NzEbA6GhtRgaxMtP/tmYb45eKB58YhcyqqB8n69LmGGkh+20WbyVPX54rouaM8E4ShOjr
aocb+tEN8oPSM8UcG7hqXPb4SDAo8miVjgOZtc+1HF2ANI2mgbPgu6yQzAyaBk9ESGQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796118087;
h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:
X-Alimail-AntiSpam:Received:From:To:Cc:Subject:Date:Message-ID:
X-Mailer:In-Reply-To:References:X-Mailing-List:List-Id:List-Post:
List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
MIME-Version:Content-Transfer-Encoding;
bh=DolwJWVI8wlx0Xq+mTE8OVEySguuB5plRVunM6HSgXE=;
b=1yErtR+3hVaEq15/Chsl9+25bGPaIYOZuXZrzgSTCCHoTPc/42Il4QiReR8sIzZRLJht
T9d9VmxZj34ISLABSS9s5RiCR4TG+bp2xxVwxegeNrqD9jl7Ud9cNz/Cywwp4BE2Jw3et
bfGuZc5bsjIuNzxVE0QK834HnAlZ4SMa4ixgJWbR90Wgi7+b1bAONH6Q7Z/m92iA1nPjk
+KFJaJzUPySDveGEl3Elq+lAINcfIuSfuX5e5FETSqx5ZXg6Hh6Rw0mDTxQrMc99OFxqZ
cFXJI/j9Mhuo12+LbZ1cm/36K8BY0xxJFkORVeVj5c1RcsUM9Etpq8qEphstLYmwT2w==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=xiaopeng.com header.i=@xiaopeng.com header.a=rsa-sha256 header.s=default header.b=PG6JiJjy;
dmarc=none header.from=xiaopeng.com;
spf=pass smtp.mailfrom=xiaopeng.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id E906D606A336;
Tue, 1 Dec 2026 09:41:26 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (1024-bit key) header.d=xiaopeng.com header.i=@xiaopeng.com header.a=rsa-sha256 header.s=default header.b=PG6JiJjy
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=115.124.28.145
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1796118086;
b=fHEDm7EGHDj7JkXK2GMDBPq1K9yA8Dxe+HZvS61DMZZcwTKV5H5fWQ7dIi9aNdox8TZE
1Ef7Tw1bgSyyYsMuXyBESJyl9dpEoPDG6q33iPo7kDpZmCXKBDnUOVwydTeMO+LGrIyS+
G8AkNFnvSabFKTCeSyf2u9SSc++7fzjzc3hoZGQS0jF9XAWV05z0mlbpME4nx7ZY6LyH8
3ydxg+clADI6WF/WwMXwpHTaTJPeOvkfU/Hx3UgYuqOjM0f4VrF/PoxTsy69nJm/Zszop
v5YMDdIxKeh15qsJGPOhPqF2+8YZ3mFWcC2FEliPZb1e0sGvYeVdyYnNJniwD2y3XVQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796118086;
h=DMARC-Filter:DKIM-Signature:X-Alimail-AntiSpam:Received:From:To:Cc:
Subject:Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version:
Content-Transfer-Encoding;
bh=DolwJWVI8wlx0Xq+mTE8OVEySguuB5plRVunM6HSgXE=;
b=VeEZt4ORTUKVqkeKLpBqYtv9RXzoPjixLNss5Yj+gvZlC/9VsG0n/M2TaerwrP8ExqNC
xAWrPtF3kd+QFkPCWF2i/YqSrxp77xhHW3YXQ+6IkRh8gPDRvFA+iXOQLf4yT9j+iLDvp
pRLOkRcz/OtST8/63hGu0KeKJqYVkRPDnGpB4hbtbnyd/M4EhBTFcig7Hsband3lRgwGO
6elrctl8nPMbGhntCbfRGAtry8z1DWtHkVCgmpPWy/YRBZ7XMN4I27tFZrskkiGu/6Uzl
/xeIwhCK8P/3/7Xrc/5IJVnrowpNlA/1U6rlfTSWRSXRIJI5OBkqlekDGV0gzIsqw+Q==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=none header.from=xiaopeng.com;
spf=pass smtp.mailfrom=xiaopeng.com;
dkim=pass header.d=xiaopeng.com header.i=@xiaopeng.com header.a=rsa-sha256 header.s=default header.b=PG6JiJjy;
arc=none smtp.remote-ip=115.124.28.145
X-Received: from out28-145.mail.aliyun.com (out28-145.mail.aliyun.com [115.124.28.145])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1FC71606A31A;
Tue, 1 Dec 2026 09:41:23 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1FC71606A31A
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=xiaopeng.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xiaopeng.com
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=xiaopeng.com; s=default;
t=1796118076; h=From:To:Subject:Date:Message-ID:MIME-Version;
bh=DolwJWVI8wlx0Xq+mTE8OVEySguuB5plRVunM6HSgXE=;
b=PG6JiJjyHBwIVUASVTD3daLZsCbNLK9qZiDhP8LO1C5MfuGQJye//bCB6evIjEnN2NnWLxLkkyHjOGQpD2x3KOfQjRxqCa6I4M0rUu4Fpda+QZC90Yoz9cRdefeHBuch+815yCe2kvzEsOkMwp5mYy98/BfhWOf4ejp7yRmEXik=
X-Alimail-AntiSpam: AC=CONTINUE;BC=0.09639896|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_regular_dialog|0.065667-0.00351377-0.930819;FP=7617729374879889147|0|0|0|0|-1|-1|-1;HT=maildocker-contentspam033037034254;MF=fangxy@xiaopeng.com;NM=1;PH=DS;RN=10;RT=10;SR=0;TI=SMTPD_---.kE3YeJS_1796118074;
X-Received: from localhost.localdomain(mailfrom:fangxy@xiaopeng.com fp:SMTPD_---.kE3YeJS_1796118074 cluster:ay29)
by smtp.aliyun-inc.com;
Tue, 01 Dec 2026 17:41:15 +0800
X-Cc: "Michael S. Tsirkin" <mst@redhat.com>,
"Jason Wang" <jasowangio@gmail.com>,
Eugenio PΓ©rez <eperezma@redhat.com>,
"Xie Yongji" <xieyongji@bytedance.com>,
xiongweimin <xiongweimin@kylinos.cn>,
virtualization@lists.linux.dev,
kvm@vger.kernel.org,
netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
X-Mailer: git-send-email 2.50.1
X-In-Reply-To: <OS3PR01MB1025190F5285E8D5EC0BCF66CE7402@OS3PR01MB10251.jpnprd01.prod.outlook.com>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list