From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 509292C324C for ; Wed, 1 Oct 2025 11:32:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759318326; cv=none; b=NFyKHIeoeDdEToY5cpP1znYVTHBfLfymEee+E9ICZR4TEDOHKyunrzeUkXnq1LppxPpeMih7jyRLl0tclBSzhLoblpEmaRUjK/WhX2xGS8ZBQFy97Meo/uK271qgKDoIvS1RjRrhxIDBx5Y6gmX6WsCAd8Yw+/I94OBtyj/3HOA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759318326; c=relaxed/simple; bh=E8TP+jTXRnR5ypNl9rTKJR9W/tHyfS8KQ+ykqiS8ARQ=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=B6ooM/CvHTOQlvoIH273Ad2fVLPHLAv5Wh1RxxmXqyXCYJb2BeCXFfWcGJlrSqnbDctjx/Ew8B0B4PzLwJ9oGp9oRZRnnkRv2rMFdJ8dIE6rJKFvaWoirz7pKBDVHbHsoSDxOlo6I5CjuGbetLKXqmVLF/8IgJfA8HKKyNBaaAU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=h2+f/SDI; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="h2+f/SDI" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1759318324; 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; bh=iJSRuteQOX9gctlwdxDghNzdOhBrLQto5XenHeU3Vv8=; b=h2+f/SDI1lFKzHj2ZfTwofW0QajYgPX4oS0J/GF+mmXbdq+mQcy/x8xt4Gqdc3iQchcYgG s3K3t7iiVK/JiU590XAwmaopfOdDG+eXE9wSrcxE0yQtp1FbB1K5ks2qPH7oeQUCb0jHjv ksiHdp5DHH9BQE1G9ew9RZZgQ45xMtQ= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-14-PyH0rxpzPICVGsWYEAHcpA-1; Wed, 01 Oct 2025 07:32:03 -0400 X-MC-Unique: PyH0rxpzPICVGsWYEAHcpA-1 X-Mimecast-MFC-AGG-ID: PyH0rxpzPICVGsWYEAHcpA_1759318322 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-46e36f9c651so55606825e9.3 for ; Wed, 01 Oct 2025 04:32:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759318322; x=1759923122; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=iJSRuteQOX9gctlwdxDghNzdOhBrLQto5XenHeU3Vv8=; b=kbjSwFRrBMlHn7G4GHs2kA2g4VEVQcAA9KYJyQtHocKDDbbVOnE0pVSh1gOp5aziI7 nwtTZjRc+nYuJ+GUTYI0V850krCxtbN4s5qylLIaaGhDi3ZZUDMWK9ZnPkf5pDFp+nMY Ir/bPK+h7368B70isTgiM2Lp3H5NTEIKRKhHRB3K0Ml0sruofHf69hZ1HJnbRdM3FFhw 4ufI5TnXWJ4gOtpheTKBdKpOngaZ4Hzt27iUTnB8f5AD9ScdlqkyuHsZBjojyUABXOga lFEGiH2mA62Tea368PFI/EvY4vlVJ8uPJNZFqUyNpYpmiUKuAlHvWEktAtxqbRx6JEsN 8yQQ== X-Forwarded-Encrypted: i=1; AJvYcCWWT/RUqyhXwbxR8USiDZ7yUW5LAPsVTk8rzM14QIgYCwj/2uShFEXhf7yZe3U2Onn+WR+Q5V+OGBEjK+o=@vger.kernel.org X-Gm-Message-State: AOJu0YxMLKFwTJ56wBbTDr8dswN232qzm9B/i+5F7Txl3Io5CNUHNWYm RVlp25e4Ng6ndjb9nC/GAr1kaX8C2kVjLM/H+9Yhp0fOX2o9sBNLxVH0nedJbCl8jGVXbT2OxHK M8F1M41Rw7zm85iJAK3KsyAmm91hKZrj4jf25lfglO1KUXSZiYMTEGIcFZlmWPITAeg== X-Gm-Gg: ASbGncvKdmgvVjfiuxihfdc3Ztp+fNQhVm+PfiGcdvifzaW+OpAJTnqeZDiY2jjI6m+ 1y6BRkaQ3k5XjKFWs3Ffqhc3NqVwIrK0gNk1gMC5oo1yJPPHsvckxt667isy0czB+OmjNF9GYGI lQx2VgfYMx/FZMabHWamfui4HcnARhQTmU99oD45aw/V1rQp0GicPonIKsq+VR6GYVRpgy5skiB 5KGO/RtbCUOkXeD5l9ql3kT8X9qsUuh9/71Xi1EL1V6aYhgLDWwf60Z6InJnyNRGk2W4Bz3OFwp RALbiDWH1JEiROeWae8AvJSdmuwlwckeOUe2MwI= X-Received: by 2002:a05:600c:45d0:b0:45c:b6fa:352e with SMTP id 5b1f17b1804b1-46e612bc7f7mr25101305e9.18.1759318321586; Wed, 01 Oct 2025 04:32:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGstrQbPl2ux574MZQ5paDC88d3YGXhrfcZSAq6ToKm0J+thPm2S97lL7iQ8LvaDhELHu4bFA== X-Received: by 2002:a05:600c:45d0:b0:45c:b6fa:352e with SMTP id 5b1f17b1804b1-46e612bc7f7mr25100985e9.18.1759318320967; Wed, 01 Oct 2025 04:32:00 -0700 (PDT) Received: from redhat.com ([2a0d:6fc0:1518:6900:b69a:73e1:9698:9cd3]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-46e619c3b75sm34870125e9.7.2025.10.01.04.31.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Oct 2025 04:32:00 -0700 (PDT) Date: Wed, 1 Oct 2025 07:31:58 -0400 From: "Michael S. Tsirkin" To: Linus Torvalds Cc: kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, jasowang@redhat.com, leiyang@redhat.com, mst@redhat.com, rongqianfeng@vivo.com, sgarzare@redhat.com, sheng.zhao@bytedance.com, zhangjiao2@cmss.chinamobile.com, zhao.xichao@vivo.com Subject: [GIT PULL] virtio,vhost: fixes, cleanups Message-ID: <20251001073158-mutt-send-email-mst@kernel.org> 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=us-ascii Content-Disposition: inline X-Mutt-Fcc: =sent The following changes since commit e5f0a698b34ed76002dc5cff3804a61c80233a7a: Linux 6.17 (2025-09-28 14:39:22 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git tags/for_linus for you to fetch changes up to ed9f3ab9f3d3655e7447239cac80e4e0388faea8: virtio-vdpa: Drop redundant conversion to bool (2025-10-01 07:24:55 -0400) ---------------------------------------------------------------- virtio,vhost: fixes, cleanups Just fixes and cleanups this time around. The mapping cleanups are preparing the ground for new features, though. In order patches were almost there but I feel they didn't spend enough time in next yet. Signed-off-by: Michael S. Tsirkin ---------------------------------------------------------------- Jason Wang (9): virtio_ring: constify virtqueue pointer for DMA helpers virtio_ring: switch to use dma_{map|unmap}_page() virtio: rename dma helpers virtio: introduce virtio_map container union virtio_ring: rename dma_handle to map_handle virtio: introduce map ops in virtio core vdpa: support virtio_map vdpa: introduce map ops vduse: switch to use virtio map API instead of DMA API Michael S. Tsirkin (1): vhost: vringh: Fix copy_to_iter return value check Qianfeng Rong (1): virtio_balloon: Remove redundant __GFP_NOWARN Sheng Zhao (1): vduse: Use fixed 4KB bounce pages for non-4KB page size Xichao Zhao (1): virtio-vdpa: Drop redundant conversion to bool zhang jiao (1): vhost: vringh: Modify the return value check drivers/net/virtio_net.c | 28 +- drivers/vdpa/Kconfig | 8 +- drivers/vdpa/alibaba/eni_vdpa.c | 5 +- drivers/vdpa/ifcvf/ifcvf_main.c | 5 +- drivers/vdpa/mlx5/core/mr.c | 4 +- drivers/vdpa/mlx5/net/mlx5_vnet.c | 15 +- drivers/vdpa/octeon_ep/octep_vdpa_main.c | 6 +- drivers/vdpa/pds/vdpa_dev.c | 5 +- drivers/vdpa/solidrun/snet_main.c | 8 +- drivers/vdpa/vdpa.c | 5 +- drivers/vdpa/vdpa_sim/vdpa_sim.c | 4 +- drivers/vdpa/vdpa_user/iova_domain.c | 132 ++++++--- drivers/vdpa/vdpa_user/iova_domain.h | 7 +- drivers/vdpa/vdpa_user/vduse_dev.c | 79 +++--- drivers/vdpa/virtio_pci/vp_vdpa.c | 5 +- drivers/vhost/vdpa.c | 6 +- drivers/vhost/vringh.c | 14 +- drivers/virtio/virtio_balloon.c | 2 +- drivers/virtio/virtio_ring.c | 459 +++++++++++++++++++------------ drivers/virtio/virtio_vdpa.c | 22 +- include/linux/vdpa.h | 25 +- include/linux/virtio.h | 46 +++- include/linux/virtio_config.h | 72 +++++ include/linux/virtio_ring.h | 7 +- 24 files changed, 635 insertions(+), 334 deletions(-)