From patchwork Tue Oct 17 14:01:46 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: 734403 Delivered-To: patch@linaro.org Received: by 2002:adf:f0cd:0:b0:32d:baff:b0ca with SMTP id x13csp497686wro; Tue, 17 Oct 2023 07:02:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGqxpksVMN6xvUzeNgnV51TsRbw3OrdSSDU8cAga5ywkY+b1fP0ORTFx7ZpVk+dC2Siw93U X-Received: by 2002:a05:690c:d84:b0:5a8:5ce9:d740 with SMTP id da4-20020a05690c0d8400b005a85ce9d740mr2938541ywb.33.1697551374487; Tue, 17 Oct 2023 07:02:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697551374; cv=none; d=google.com; s=arc-20160816; b=UIzYRN1rTVLs7qYGZ2csGI9jCswVMbnV+noFmxACLCSAL7u3FqzwAHvqWOGmDrZkXi XkqpcAPjqUKSICiKUUhQd5nXA+J3el+LHRPg9NACBLYlQeKZIb1W1e2QZemFECP/EmYO FT2bHgAugV8BgNKt6p3nop5+ovRPjKal51mNCHxf3Xvn7/lsZGvh8sqq4PiBpf5H2A7Y bZ4Myv3n/MKS/SVdxe2qp4cgAVUm68/1tjOqaI3zrS8iu1/oJS4uzWaDxcbeuvMfyk4s Uqhkoy2KmOJye/jf9wDXlkq+R6AdFGxbcFTk8ebTa5pv4Ngjs/2IcKcnKexPOODwNpbs Q5hQ== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=eu+I0Mxgw0c1e0TXhFwzYxAgC+Cbp6NkKlE9STdvd/w=; fh=PkQUf9c5shm23GEgSgwIjaGjrTFXVTBGToef+bFaIfM=; b=0fcJYgyMSpvGZG0zCNhcu9hOllchoX/gkfoHz4ZXwVxN0ZJz2u4NNke4QjwrwElz31 pnmugds74eZRXJX+UHgRd8Q3RG3ncNAc2NrsGhTIIIEJ64MKdbiR0v3r07c7HZbil4Ce 2NpHpAOYvN5s5QJLvj3iLwVUbijn45+KWBmthrQvgCh4D+Yl4guagQ3etvHALDG0hjQ4 jVuMxB1Aqk6LibpDYzlXRcSG8VhE8NnQNVhNslpFpBuH7R4JXO9fGzd+Fx5SuAFJIqoZ kwl2vq6tf+J5IL6PL64f75Qd7hucJyvw0it2FSSPXYRjUCqTYYvmKon1UdfGjL5HKkdB R1Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lCj+YU0e; 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 n3-20020a67e443000000b00457c0970b72si122039vsm.773.2023.10.17.07.02.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 Oct 2023 07:02:54 -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=lCj+YU0e; 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 1qskef-00049V-Rv; Tue, 17 Oct 2023 10:02:42 -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 1qskeL-00046a-Cy for qemu-devel@nongnu.org; Tue, 17 Oct 2023 10:02:21 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qskeI-0008Nv-89 for qemu-devel@nongnu.org; Tue, 17 Oct 2023 10:02:21 -0400 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-40572aeb673so54835305e9.0 for ; Tue, 17 Oct 2023 07:02:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697551336; x=1698156136; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eu+I0Mxgw0c1e0TXhFwzYxAgC+Cbp6NkKlE9STdvd/w=; b=lCj+YU0egaVlMJub5HB/y8z5CY5Tg2MEJNXVW+M7z2G1uH5XKkEInvV7u1iQrcjd92 ydVktC3o3FoACsTBxYMy9cxx/LOCVALGBeyTKFF4vSE4MIGP0QD/bxxpiQGlRv4ow1As 3Jp3gebZP3tb9rWr9NQnR689ufh6Fc4LdqON1nswhPcJNAMG61liN3+XNvSbHEJiUjnH Z8pr7Ch+PISFDCmzpKnh6F+Q9KBM0ZRWbteymLafcFrCUoGV9mTyAYo94QgSVXVz6/Cd E4FGfznYXtyPQacjHcI4jA8YKTXV7GApxDGfc7ZfAEEGzCDCo09Dmuq4p6Cakwr3TTkB hT5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697551336; x=1698156136; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eu+I0Mxgw0c1e0TXhFwzYxAgC+Cbp6NkKlE9STdvd/w=; b=AVVM/OfwvRwQx3ZcMTWA3sZCUNDByl/1mQ7YDN9ewndq2Sj12Tr/u0VCmhNGomEC4H +kUl8k4hVAcZZhZDz1QQwYd0KvkMYUP8RHtYB2gFQggl0sr4SJaBCqPU3ZtucsMaCyee +rJ/D1zB2PkT7P6S0XRiSJg6xxQs7rxoI/G+/9IvzVcuQ/pVvKx5eLG+nje7XCLhYnfx jqv255JL7Xw1IRO3N9AHY++uKIDtphGZUH08CrMXpAxEDsD23Fo0/q2nnIPDyZjW7GtB EfBC2/pYKnvaCwunqAJ9x4pgoGakUyI0DnT23bgt9NVD1LnDFd7PQZ9XY0hG/tfECpsl vP8g== X-Gm-Message-State: AOJu0YzPtvpOiC9Xxc0F0eGLRF553uApk3xy7yHj0NBARFBjzOxrOv6N J8Dz8Qxm0pHuCx3DZ9SO66ynooydB/eNb/ZPXH7Sjw== X-Received: by 2002:a05:600c:4708:b0:406:3fda:962c with SMTP id v8-20020a05600c470800b004063fda962cmr1977009wmo.31.1697551336464; Tue, 17 Oct 2023 07:02:16 -0700 (PDT) Received: from m1x-phil.lan ([176.172.118.33]) by smtp.gmail.com with ESMTPSA id n35-20020a05600c502300b004064ac107cfsm2006747wmr.39.2023.10.17.07.02.14 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 17 Oct 2023 07:02:15 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Hanna Reitz , Fam Zheng , qemu-arm@nongnu.org, "Michael S. Tsirkin" , qemu-block@nongnu.org, Kevin Wolf , Jason Wang , Peter Maydell , Raphael Norwitz , "Edgar E. Iglesias" , Alistair Francis , Gerd Hoffmann , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 3/7] hw/display/virtio-gpu: Use VIRTIO_DEVICE() macro Date: Tue, 17 Oct 2023 16:01:46 +0200 Message-ID: <20231017140150.44995-4-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231017140150.44995-1-philmd@linaro.org> References: <20231017140150.44995-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=philmd@linaro.org; helo=mail-wm1-x32a.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 Access QOM parent with the proper QOM VIRTIO_DEVICE() macro. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Manos Pitsidianakis Reviewed-by: Mark Cave-Ayland --- hw/display/virtio-gpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c index 93857ad523..51cb517999 100644 --- a/hw/display/virtio-gpu.c +++ b/hw/display/virtio-gpu.c @@ -1132,7 +1132,7 @@ static void virtio_gpu_ctrl_bh(void *opaque) VirtIOGPU *g = opaque; VirtIOGPUClass *vgc = VIRTIO_GPU_GET_CLASS(g); - vgc->handle_ctrl(&g->parent_obj.parent_obj, g->ctrl_vq); + vgc->handle_ctrl(VIRTIO_DEVICE(g), g->ctrl_vq); } static void virtio_gpu_handle_cursor(VirtIODevice *vdev, VirtQueue *vq)