From patchwork Wed May 24 09:37:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 685311 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp149757wrt; Wed, 24 May 2023 02:38:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6qm26JEVAt5+ZVc0Dcu4t1PdTQ/BfLGplsczJwCgLUMrIq42QD3e9es5ekH8JdDA34akBQ X-Received: by 2002:a05:620a:22e1:b0:75b:23a0:de8a with SMTP id p1-20020a05620a22e100b0075b23a0de8amr6484854qki.8.1684921101259; Wed, 24 May 2023 02:38:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684921101; cv=none; d=google.com; s=arc-20160816; b=KqcP2Hr70cE7HBe+M/9TlKiLPpH1mw0lrM6fUO/C8HMDv3HJTvIX9EbPH3Ipdo5q12 88dM5nxCZ6IUeZuKswaTamOh6YYlnt42NBhW88K7+VDfMhaqcQWRNXZnD4vYJOhl432B DxbQNCUO54uTMRVqjQOEQabW1PGoE9tkkTYSqjdZpz9yPvboqSeRbT395Ylh0G0aw4qu vqWSVSX+fxzR34yyXviBgSPsaQQFyynss7dN5YEFwizqOGsqIdojkAmRhZBqbMh1gsro IsVkGOPDOQHH67NRC+Lp7LmNDSVhMkuB7IbJ4gUdVq/t77icLRMBgKPuVvp7Egw6j9G4 PUGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=nXhkK4lgfSGJkas3VAy9ID2rrn3QU3K1htRoh5aSHvA=; b=yXuumJijU/fFMCC8vD2OqLXUD6jz11DSs9zHCIXlTMUA0OlCQs1NAw3xtBJCs13P3o VsPDnjVvMqQxeSHW0lY8UIl49jTPRGLDVGJgFA6ShzMekvyW1R1LEuxhTxxV5ctS44yB EE+X/K6s1fLj+PkIg+GzDNZuWHiCo/MxVu10MfCtrJe4NR51vzpO/yPNzQwvlIUtr8Mn p97vLoIomSLdwemU1zW2If/hax7rtHdEqPaD/g3goKPpdUkIqfCVnsKcqpIdpL/nf8V1 4bFum11GsV0fj0hfPdrrRftuZCjtML0aW5JoYZ2FFr6XoMQ2HuWKahfOiEMRxcEpbYFk XNLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zau8ZF+U; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id o19-20020a05620a131300b0075b374b50bbsi1162890qkj.735.2023.05.24.02.38.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 May 2023 02:38:21 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zau8ZF+U; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q1kwN-0004MK-OY; Wed, 24 May 2023 05:37:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q1kwM-0004LX-7u for qemu-devel@nongnu.org; Wed, 24 May 2023 05:37:54 -0400 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q1kwJ-0006lG-2q for qemu-devel@nongnu.org; Wed, 24 May 2023 05:37:53 -0400 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-30a4ebbda56so550423f8f.1 for ; Wed, 24 May 2023 02:37:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684921069; x=1687513069; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=nXhkK4lgfSGJkas3VAy9ID2rrn3QU3K1htRoh5aSHvA=; b=zau8ZF+U6KcTAfb7SzJ+6Vq6UF4Xpp1UC2UP3uOgcJmHkMHQta4HKlNK4Pw5ovWnY5 nQcEZukPQ8bzGoyTcSv6KcHTLHmhBpmHR6LU5i28tTKiScXO+wFFQ+uwyCkNGtVhc5SY vR4aKKG86IK9AzX6GLOYgwkVutCcRHvK1XIrBxO0fdepDTMdl4ZJgu0zGF9B01OjVYJP wJBp1afj2adWd/Yn4TCUavwywBMqm+8HkVHLzWUsUrTG47ePblyn5h9qZgqKYKwYvkss IqMjrQFiuBaVPqSfzvm09esWDtiLUPvo21R0Lsc+FZlSL6I/r7fgD9DBYqGP3UTCXlkV Vemw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684921069; x=1687513069; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nXhkK4lgfSGJkas3VAy9ID2rrn3QU3K1htRoh5aSHvA=; b=bsmrEBzW/YecG7F+fA8H6HEdH0gYJhAtDwJREXcYAtmiGRELF/O5kL/iUKFGA020i/ x90FF1+rgyeu8hdxxRLrc8NRSCurRKEpqGHXKEfnMx8C957uAthLEOoZ+6OBdgFSTkSp k0cLyl46eVT+EJBRXQ3DJkeRDybPjKBnWOyJJof3uSFu4FXdofsOr0xp4nX1dCF2z6MO p7WEtWof8BSmUX+up2ngKxEv8o+nisER+0QRHfsJUrF3i31DgFXi4wyjLaiNhvLZnJyl TlKbe4vqSNLwRMwojbBL6zZhLWp2lsnb+GtbgJDCor8r6SLVRzAevT8pgwG7Oc/FiPos 6JpQ== X-Gm-Message-State: AC+VfDzt54mulOuXtbi00EsjnkzqoRYX4Sz6wA1DMVbtvkDstgnZ2b/s 8k5yMUQMH03sncTPZqczFmz0udz1KFUmegkEhD1OXg== X-Received: by 2002:adf:fa42:0:b0:30a:a9ca:31d5 with SMTP id y2-20020adffa42000000b0030aa9ca31d5mr1613247wrr.2.1684921069271; Wed, 24 May 2023 02:37:49 -0700 (PDT) Received: from localhost.localdomain (fac34-h02-176-184-31-246.dsl.sta.abo.bbox.fr. [176.184.31.246]) by smtp.gmail.com with ESMTPSA id e16-20020a5d5950000000b003077a19cf75sm13849100wri.60.2023.05.24.02.37.46 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 24 May 2023 02:37:48 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Fam Zheng , Thomas Huth , Paolo Bonzini , Eric Farman , Peter Xu , Hanna Reitz , Christian Borntraeger , "Michael S. Tsirkin" , Raphael Norwitz , Ilya Leoshkevich , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Eric Auger , "Gonglei (Arei)" , David Hildenbrand , Stefan Hajnoczi , qemu-s390x@nongnu.org, Cornelia Huck , Halil Pasic , qemu-block@nongnu.org, Kevin Wolf Subject: [PATCH v2 00/10] hw/virtio: Build various target-agnostic objects just once Date: Wed, 24 May 2023 11:37:34 +0200 Message-Id: <20230524093744.88442-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=philmd@linaro.org; helo=mail-wr1-x42e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org All patches reviewed. Since v1: - Addressed Richard & Thomas review comments . qemu_target_page_align() dropped . qemu_target_page_mask() returns signed . meson shuffle - Collected R-b/T-b/A-b tags - Dropped vhost-vdpa patch (to be posted as another series) Less controvertial than my first approach [*] which caches the access_is_big_endian value in VirtIODevice state, this series just remove a unnecessary / pointless dependency on "virtio-access.h", allowing to build various virtio objects once for all targets. [*] https://lore.kernel.org/qemu-devel/20221212230517.28872-11-philmd@linaro.org/ Philippe Mathieu-Daudé (10): softmmu: Introduce qemu_target_page_mask() helper hw/scsi: Introduce VHOST_SCSI_COMMON symbol in Kconfig hw/scsi: Rearrange meson.build hw/scsi: Rename target-specific source set as 'specific_virtio_scsi_ss' hw/virtio: Introduce VHOST_VSOCK_COMMON symbol in Kconfig hw/virtio/virtio-mem: Use qemu_ram_get_fd() helper hw/virtio/vhost-vsock: Include missing 'virtio/virtio-bus.h' header hw/virtio/virtio-iommu: Use target-agnostic qemu_target_page_mask() hw/virtio: Remove unnecessary 'virtio-access.h' header hw/virtio: Build various target-agnostic objects just once include/exec/target_page.h | 1 + hw/block/dataplane/virtio-blk.c | 1 - hw/s390x/virtio-ccw.c | 1 - hw/scsi/vhost-scsi.c | 1 - hw/scsi/vhost-user-scsi.c | 1 - hw/scsi/virtio-scsi-dataplane.c | 1 - hw/virtio/vdpa-dev.c | 1 - hw/virtio/vhost-vdpa.c | 1 - hw/virtio/vhost-vsock-common.c | 2 +- hw/virtio/vhost.c | 1 - hw/virtio/virtio-crypto.c | 1 - hw/virtio/virtio-iommu.c | 4 ++-- hw/virtio/virtio-mem.c | 3 +-- softmmu/physmem.c | 5 +++++ hw/block/dataplane/meson.build | 2 +- hw/scsi/Kconfig | 6 ++++++ hw/scsi/meson.build | 20 +++++++++++++------- hw/virtio/Kconfig | 6 ++++++ hw/virtio/meson.build | 14 ++++++++------ 19 files changed, 44 insertions(+), 28 deletions(-)