From patchwork Tue Feb 7 23:46:13 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: 1739226 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=PFskuUpx; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PBKYc0Yxmz23y9 for ; Wed, 8 Feb 2023 10:47:32 +1100 (AEDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pPXfL-0006kZ-T9; Tue, 07 Feb 2023 18:46:23 -0500 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 1pPXfJ-0006jV-Vz for qemu-devel@nongnu.org; Tue, 07 Feb 2023 18:46:22 -0500 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pPXfI-0004Ek-7p for qemu-devel@nongnu.org; Tue, 07 Feb 2023 18:46:21 -0500 Received: by mail-wm1-x32c.google.com with SMTP id u10so9120668wmj.3 for ; Tue, 07 Feb 2023 15:46:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=q0jotaNaSpC+AlYtASAodH+ntcY27MDH6+WcRABNJuo=; b=PFskuUpxxLRPlffaPLnXZVpe9wa+yZ6bDtXn/6E8WQQtSuewd1wL2HsZszzqHIx7Np OfQpEI9MvuUUFmuDMWzSYX3MYlH8qMyiR4p4OCDDLkACiRERV7j8+CgYCQ6pzWkKTOV0 tXk+My9ZbJempj+XTqBMN3io1GtZHGynykbJyy/83Q4JTbp0VmGG9hZJJ4ercnK/g9Oy YDE7b/BAedPDvbMNUYOjXMzD3efoMtupmX+rtS8c5dz3nofb8AqMvE77gN9mlw1fLPe/ gpvi07amLCi8FkcFSyhCNOrFCHb/EmYY69otFYWYw7ACv0MwY3V0d7mAq46zndpjrQii 9iww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=q0jotaNaSpC+AlYtASAodH+ntcY27MDH6+WcRABNJuo=; b=wsUjSyC/thGBApPU9Q9m7R1JPHecfLHlydudR1LWKQi3JjZX0oTPKywSyNHYWiMj00 +NsT95N0yPw6K1EtgGH+/m20zVAhpDKkDfWmDdcodSFh8m7rezX7kgzWK3P3a31cCGP1 XOBkMU5PZdmWuep2/V6F+ka3EAdOcYEVKdLl+uEr0bmfXxkWhzg5yzsp/IHFrGSywxz5 NnjQFCsNjx0wAnFiZlfAScesbXZj2lNqX5N3uFyvPdlcsqtIj38qWgGGjZQP9DriSYeC unQX4qDq0n1ZIrjlWmwa+cTokXYypqRb9LVXK8/h6GlW46pmE5tL6aNIPCdffRse+4U6 EUFQ== X-Gm-Message-State: AO0yUKVCjFKC1zVY3WPUaff67Sak9NxvmYwq1eU4XjRjTKmYTefiKiPA LzfU5S4+ZZWj6129Zxc3L8fS+3FIR40uCvRV X-Google-Smtp-Source: AK7set8vkzdIrzWSyh1TefDqsrw/wEbLoyPmSbBjiW4ab3pPRWZNRTDZFOIcFXWu2O+jyNZ3muBQng== X-Received: by 2002:a05:600c:a287:b0:3dc:4316:52be with SMTP id hu7-20020a05600ca28700b003dc431652bemr433313wmb.10.1675813578132; Tue, 07 Feb 2023 15:46:18 -0800 (PST) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id x2-20020a1c7c02000000b003df30c94850sm221125wmc.25.2023.02.07.15.46.16 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 07 Feb 2023 15:46:17 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Peter Xu , =?utf-8?q?Herv=C3=A9_Poussineau?= , Bernhard Beschow , David Hildenbrand , "Michael S. Tsirkin" , Mark Cave-Ayland , qemu-ppc@nongnu.org, Gerd Hoffmann , Paolo Bonzini Subject: [PATCH 0/2] exec/ioport: Factor portio_list_register[flush_coalesced]() out Date: Wed, 8 Feb 2023 00:46:13 +0100 Message-Id: <20230207234615.77300-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::32c; envelope-from=philmd@linaro.org; helo=mail-wm1-x32c.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 autolearn=ham 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Preliminary to further ISA API cleanups... Convert this sequence: - portio_list_init() - portio_list_set_flush_coalesced() - portio_list_add() to portio_list_register_flush_coalesced(), and the non-coalescing equivalent: - portio_list_init() - portio_list_add() to portio_list_register(). Philippe Mathieu-Daudé (2): exec/ioport: Factor portio_list_register_flush_coalesced() out exec/ioport: Factor portio_list_register() out hw/audio/adlib.c | 4 ++-- hw/display/qxl.c | 7 +++--- hw/display/vga.c | 9 ++++---- hw/dma/i82374.c | 7 +++--- hw/isa/isa-bus.c | 6 ++---- hw/watchdog/wdt_ib700.c | 4 ++-- include/exec/ioport.h | 15 +++++++------ softmmu/ioport.c | 48 ++++++++++++++++++++++++++++++----------- 8 files changed, 60 insertions(+), 40 deletions(-)