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 03CB5222565 for ; Thu, 4 Dec 2025 18:46:06 +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=1764873969; cv=none; b=It4No1nO4jfNz0pQfbix6MTTh3+/Md1tZTRZZ78l5gZy82a/CWR9K+pdKMNUaziwmMD8XPkA9+DnUXM5Qu/3VdpVeKZHohnaeNtCNp5q3CMk1ahnw2rjKZrNUcTDcXNMWkpZLAphYzxfX4edEETCU5UR8g6Mw3MNRCtIH7BsGWs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764873969; c=relaxed/simple; bh=Kf0LhQkD51XEHoagd1o1fB60c2jSgwiICxQbCinZ30Q=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=jGLG4Gx62O3LKXR2OJr82xuEJ7h27C5lPxBxT/gWWzOrGMT8w3yrTEmtaA0BXDLxnONz5bJtCJMxoSfby0GLHPd4n5ZLiTC75cBDTkvZ2O0ZEXhDGU1xJSVLO+yFHcYC66qxhBHM4h5Apv8/+IvhSMuO53f0M44J1w5oKI3mW+M= 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=i9pLMQTy; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=hFv1ochX; 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="i9pLMQTy"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="hFv1ochX" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1764873965; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=tTCbzRdtorTHQGof/HTRxHHc0FzM4AS035Dl/sBOxfU=; b=i9pLMQTyuzZq4Wf1M6jgwQ06fwNn588Uu6pEz4V34xtIlOHU+HQgBBxEm5APQP7WfzVTL+ h5aXEzdya486KdzWmEhy2sfxJIMhum00BpAaMhjKGbPy1WDz18m7QpSq+EVdr/bL8tj5vn A57BzJPAPCCCoT2a2Aychl1Sxd7xLUM= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-206-DfPn1kSsN0WGwQ3RegzWxQ-1; Thu, 04 Dec 2025 13:46:04 -0500 X-MC-Unique: DfPn1kSsN0WGwQ3RegzWxQ-1 X-Mimecast-MFC-AGG-ID: DfPn1kSsN0WGwQ3RegzWxQ_1764873963 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-4779da35d27so18606585e9.3 for ; Thu, 04 Dec 2025 10:46:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1764873962; x=1765478762; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=tTCbzRdtorTHQGof/HTRxHHc0FzM4AS035Dl/sBOxfU=; b=hFv1ochXZyMmr0kCHqbf+ja1uNOZslbH38HpRhrF4R3wh5rifX4U4gEgjj6KncItn0 lAFLAaBEZXWh7L+AQJPd4rz6DMY0mB+sSerAT6xwb272hBqscf0rfuhLCtNAMlYTXvc+ 8CHalj4V/2q79+mvEVsdPGz/DmZrYKnRMb1LRe1Ym/hwzXUNBOtAoEA+AviSKZkVeXzs 8I/ZivtZHBmvbSqPDh3uvgO4jrQrXEn+uFgDV0EztMuucHBNH2/wZd29J3DPX9AzGqLX EIZdW2IZnfjzRBkQg608m3EH4TpNvxtNNxMtjiKKj/nefG5WNkmXyB8BhhZY2YzPLI1p 3+Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764873962; x=1765478762; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tTCbzRdtorTHQGof/HTRxHHc0FzM4AS035Dl/sBOxfU=; b=c+toSW0sF2OPdwQHdX7HCaSq5vVbvU0u7GHZAu+Rn3Hd9/9hV4R8qS0a3xZaTTp5B4 pyYgTAD7U+KUalGyK3o6y+QaeC5jodEB3yxsWOeRwDfQRBgGq8wJIKPXmSHKPG/ViE/2 ZPuj+u+zzRRfu1AnbDIgfySOXiHnuAk5KA/yA2GNpW/gIZY7CIz8j8Mo8HIKENQCytyA FakSCXg0RwcSxPOSzlVOsZyxMRBw065UIWQwGxbtMOVKRp0SXiFISDK5ZhgH4IknuJDD 8ZcIzqdXOAGUY3uIeE/0q1JHlwEegme8okcrye99NLFWummjpGc8qFne8SHfE6+n30cu +3hQ== X-Gm-Message-State: AOJu0Ywu9Gn91Wnx75awiWACZQYMw/DcN9yXaWuk5b0gTBPC7GZD5GP5 gHoYlquPZ3KVUZYtqNBSv4AaAUWWtg/7OVoi9prZae55iRV2Sf+r0IkQQqNV46C4WOnFzSdQ4qL 5zCmoqOcNk/hGH+ve33WyifibLK9mcuPW5Sek4GoRQIpCHvI0V9y5glsmD5K6Nh538ulkEtKRCC 78q+5nRs6pBplNumTCiLiKiAP2fvRmYxhMyHlkmx+vzII= X-Gm-Gg: ASbGnctWqL0/LIFfB4ktTR90bJ8af0TM5c5UoomYxv3JkBM7H8qJDKS93KgCajwyiJj sUmIGfHVcl9Ox875BVmHMyY8rexH2i23kI7U6LYNkQthE5GMKQDKjVcEcfWbITzRYf9z9j3DPCp +8U5I3TKkn60i8OcaWdnzOXoUF1B47oUNokzoatPkHqjOFHgohPbqqADaCPcEM0enrMnUJOm7Qm y2wJahu1GkbsU+UdarN5vhRx242fUBqDzUjfd1ziz9LF+BvdcQJ9nJPAbYVuU6s6uPH1BLIDtpl VFbfrhhGU3DWQ+z8MvrhZADwHe7hHaEqonQgGP4ZJ4zmSeqLC0Yewh9D0AhsprBB2iXKnqE/6jA = X-Received: by 2002:a05:600c:1f8e:b0:477:8985:4036 with SMTP id 5b1f17b1804b1-4792f23c727mr38878195e9.1.1764873962177; Thu, 04 Dec 2025 10:46:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IGg5sj19OcnjXNR+DxqurojmedxIpsxsjnDFEVU8zQX3T1rq6VTHSss0x2Npx31cSPsU6zO4g== X-Received: by 2002:a05:600c:1f8e:b0:477:8985:4036 with SMTP id 5b1f17b1804b1-4792f23c727mr38877895e9.1.1764873961497; Thu, 04 Dec 2025 10:46:01 -0800 (PST) Received: from redhat.com ([31.187.78.57]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-479310a6d9dsm43833065e9.2.2025.12.04.10.46.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Dec 2025 10:46:00 -0800 (PST) Date: Thu, 4 Dec 2025 13:45:59 -0500 From: "Michael S. Tsirkin" To: linux-kernel@vger.kernel.org Subject: [PATCH 00/14] tools/virtio: cleanups, fixes Message-ID: 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-Mailer: git-send-email 2.27.0.106.g8ac3dc51b1 X-Mutt-Fcc: =sent Recent virtio changes brought about build errors for tools/virtio, as usual. I did some refactoring to hopefully reduce maintainance load going forward. Adding stubs is tedious and seemed a perfect fit for cursor - so I used it for that, then rewrote some commits and accepted others. commit logs I've rewritten. Found and fixed a couple of minor bugs while doing this - that part's all mine. Michael S. Tsirkin (14): tools/virtio: fix up compiler.h stub virtio: make it self-contained tools/virtio: use kernel's virtio.h tools/virtio: add struct module forward declaration tools/virtio: stub DMA mapping functions tools/virtio: add dev_WARN_ONCE and is_vmalloc_addr stubs tools/virtio: add ucopysize.h stub tools/virtio: pass KCFLAGS to module build tools/virtio: add struct cpumask to cpumask.h tools/virtio: stub might_sleep and synchronize_rcu tools/virtio: switch to kernel's virtio_config.h virtio_features: make it self-contained tools/virtio: fix up oot build tools/virtio: add device, device_driver stubs include/linux/virtio.h | 2 + include/linux/virtio_features.h | 2 + tools/virtio/Makefile | 8 ++- tools/virtio/linux/compiler.h | 6 ++ tools/virtio/linux/cpumask.h | 4 ++ tools/virtio/linux/device.h | 8 +++ tools/virtio/linux/dma-mapping.h | 4 ++ tools/virtio/linux/kernel.h | 16 +++++ tools/virtio/linux/module.h | 2 + tools/virtio/linux/ucopysize.h | 21 ++++++ tools/virtio/linux/virtio.h | 73 +-------------------- tools/virtio/linux/virtio_config.h | 102 +---------------------------- tools/virtio/oot-stubs.h | 10 +++ 13 files changed, 82 insertions(+), 176 deletions(-) create mode 100644 tools/virtio/linux/ucopysize.h create mode 100644 tools/virtio/oot-stubs.h -- MST