From patchwork Mon Feb 13 17:01:39 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: 653201 Delivered-To: patch@linaro.org Received: by 2002:adf:f90f:0:0:0:0:0 with SMTP id b15csp2526310wrr; Mon, 13 Feb 2023 09:03:28 -0800 (PST) X-Google-Smtp-Source: AK7set8sNe7T90/n85L3eiWmkeV+uUrhe50ajkFky2sjFejk+ZCwErjADDckAgLvZnrAtU1WVipx X-Received: by 2002:a05:6214:c2b:b0:535:1d24:2c5a with SMTP id a11-20020a0562140c2b00b005351d242c5amr45707505qvd.31.1676307808541; Mon, 13 Feb 2023 09:03:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676307808; cv=none; d=google.com; s=arc-20160816; b=JqRGWsaBBGwZiDlmVztmiFwdUovmqua7RRM29lLMY7N/8d17RTzBVm3CmI3b5yuq/Z tdtmK1OSMbqQy9hcpH54vY5fKIg7t5CFFcr6iPbtIZ/vue1eoeqGdAzvy2O8/ftqCVzb 1sqSb2Q4zTXxAMAFi5sE7+JuVEMV2TW7q+GDMqVFVIjMS+56HnmUT+G8DhMk8+wFCXIa 2iiKlw6lmtlpG9W5qd2XBP4KeTNfn0K0c3LDyd3GNDpg37PPJ1gis3z320RFzjXWwGCT egbxzI+iqzReCtWIXPWwHiR+Z1OQYwVLbP82sbbNT3Sdxrt9CWINuf9+DTMBT8nIFS9h YqMA== 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=MtWTM0K5tkV+XNFmYaOZt2Z0nk1lvVSTdkNElUqYwac=; b=Zg25J37H5If2IQhRd8fVJo6XN4yzp6vgvMjgo1BA9/FHrtxO2uogn9BeBek3mEDWzY dF2NI5eD4f1mJAfe5T3Tl7Ji3ftWcvKNXdNFJxJwSKu9ccc1Qu5n7b6Run38XobrOEjb SlHryVR/0lDqcALKERU9cTxVsm0igXQ03bXghuL8mo8+nNWPOjmHtNgIqr5WiStRQuhi fQwpu7BI5Otjbvz4BOzfXHGhxVXDLhPdXRMCI8nlK/gOcIfLhp53XldWs1qa1g0rFSGO 5T8amPZCr9KTPkR63if1ZSLqcQfcleRFl5KZDnGg3d5SchS4t+Lv6sEURmUgtyv75mrO Mczg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ODjl6QyY; 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 r17-20020a37a811000000b007064f949fb6si9520545qke.285.2023.02.13.09.03.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 Feb 2023 09:03:28 -0800 (PST) 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=ODjl6QyY; 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 1pRcE8-0003XE-Ec; Mon, 13 Feb 2023 12:02:52 -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 1pRcDX-0002qp-26 for qemu-devel@nongnu.org; Mon, 13 Feb 2023 12:02:22 -0500 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 1pRcD8-0007Vu-QK for qemu-devel@nongnu.org; Mon, 13 Feb 2023 12:02:01 -0500 Received: by mail-wr1-x42e.google.com with SMTP id k3so5330769wrv.5 for ; Mon, 13 Feb 2023 09:01:50 -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=MtWTM0K5tkV+XNFmYaOZt2Z0nk1lvVSTdkNElUqYwac=; b=ODjl6QyYnPud3MNFuMKMuU6rgE1dn9yJu9M0pkEBcTDcs4PhOR9ktxoGyEP8sfHA8/ xd5EkPoBLyggjkPHoJEM31Ps3ia9P1SeriVDb4mxgDa+o51ZjBjhBHLd2Vo/foVqilkU zNU3SZJ0o5nImBy1Mhc1e5uJhcQmf1NhSmmlZTMwQAtorU2cl1cdmfmBInMNaMKKSvoL B5d0bBQ0qUAAO4VxpDyM1dQ+of5Js5CIKkufzzOz5nJxrTLFUHtjApBWd9gzyCAnJWcW J7YComyyECXX80BVpLGhX1YOEk9zzpowtCpR7e6mcH0eRjoijhjIEWmgIQiVIpcsQvbZ tlfw== 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=MtWTM0K5tkV+XNFmYaOZt2Z0nk1lvVSTdkNElUqYwac=; b=OREz5lTIxlyUJVdfEaTLLsFaoraTV6IuypYAH+0EKIO9risziMmh+J0641ErINQ0Kn yMnTDStCTiEBw4AIoKdac4HB6GBVzU8kdpXtyHN5V27TOZLS7+ZgceFhSQKKcOY9W1nR NmfDPRzS1c8xI0XSXpe29JHgBBIjAjhlWThqmV5NN2BPhP1/9MsiBw7y9L+Xx3wgecQe gjaI3N3Skfqtc8k7WjqRQhTx4W31rXke/Yh2VMmNkxJS5JTnfIxHzWK6hplYIoJOQjWA Xj8Y8qcyvS/hDJDTlz2ZpjO5B9MYenkoqowyWkMkR+xSuVKE9YFTsyhPMDImqbtql6KK 08fg== X-Gm-Message-State: AO0yUKXOS/mhS0xyvxueGx9t32itqzJdenXxjPqoWp+kzB+59ueagaiF PJ9Rj5Vcfzl90NfXPZNVfNdfQA== X-Received: by 2002:adf:f249:0:b0:2c5:4ce5:4cd9 with SMTP id b9-20020adff249000000b002c54ce54cd9mr7752341wrp.34.1676307708944; Mon, 13 Feb 2023 09:01:48 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id h5-20020a5d5045000000b002c54d9fbea5sm6813911wrt.73.2023.02.13.09.01.47 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 13 Feb 2023 09:01:48 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: Eduardo Habkost , Eric Farman , qemu-devel@nongnu.org Cc: Richard Henderson , qemu-s390x@nongnu.org, Alex Williamson , David Hildenbrand , Thomas Huth , Matthew Rosato , Christian Borntraeger , Halil Pasic , Ilya Leoshkevich , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v3 0/6] hw/vfio/ccw: hw: Use QOM macros and remove DO_UPCAST() uses Date: Mon, 13 Feb 2023 18:01:39 +0100 Message-Id: <20230213170145.45666-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 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 QOM housekeeping series which replace the DO_UPCAST() macro uses by equivalent QOM ones (and few more trivial cleanups). Since v2: - Split of bigger series - Split in simpler patches - Added Eric R-b tags v2: https://lore.kernel.org/qemu-devel/20230213070820.76881-17-philmd@linaro.org/ Philippe Mathieu-Daudé (6): hw/s390x/event-facility: Replace DO_UPCAST(SCLPEvent) by SCLP_EVENT() hw/vfio/ccw: Simplify using DEVICE() macro hw/vfio/ccw: Use intermediate S390CCWDevice variable hw/vfio/ccw: Replace DO_UPCAST(S390CCWDevice) by S390_CCW_DEVICE() hw/vfio/ccw: Remove pointless S390CCWDevice variable hw/vfio/ccw: Replace DO_UPCAST(VFIOCCWDevice) by VFIO_CCW() hw/s390x/event-facility.c | 3 +-- hw/vfio/ccw.c | 40 ++++++++++++++++----------------------- 2 files changed, 17 insertions(+), 26 deletions(-)