From nobody Sun May 19 03:28:30 2024 Delivered-To: importer2@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1622625600; cv=none; d=zohomail.com; s=zohoarc; b=MpJAJQ1Z8KMikb9+Fse109MrRHCtKD5xucreviTHlFR3zGUS2Tt7hSrlqRdUGaCD8jUVexZTL7YzGY3FjzDG4YTVitqkVpv0qOS8V9Ikt2MNbfJ2R4lTkndMHOQg8/PXDvnRDEaRPlX28Ehlk7L5whQ1oVlVlBuT5I1IPDTskRs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1622625600; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=adTVVJEPZdSvV0XUZRnaYT48XleLc7OPqo1SzNBkzbY=; b=SEF0J3C7XWvLZODSVGXxG5CPRpMkM7BnuFL1imCyO+DLx9u7nBIFcFAi4AWgEr/74ByxjIAYO5j49fJg+p61DUDuONsZ9yO9RvcLpUL1wVPyu6K71ORi41t1J0djQtis8Prge87Q2EzJF0j7aLXjYk+I2PX22yPTJ5/Nc3cGsVY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1622625600342163.13901065302048; Wed, 2 Jun 2021 02:20:00 -0700 (PDT) Received: from localhost ([::1]:39386 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loN2d-0004gj-8K for importer2@patchew.org; Wed, 02 Jun 2021 05:19:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55754) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loN0W-0001wJ-FX for qemu-devel@nongnu.org; Wed, 02 Jun 2021 05:17:48 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:29983) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loN0T-0002DT-IK for qemu-devel@nongnu.org; Wed, 02 Jun 2021 05:17:48 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-395-bIO2USUYOkK5VCRydZ9PnA-1; Wed, 02 Jun 2021 05:17:43 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 536CC107ACE6; Wed, 2 Jun 2021 09:17:42 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-112-84.ams2.redhat.com [10.36.112.84]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0356B1002EF0; Wed, 2 Jun 2021 09:17:29 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 8401C180087D; Wed, 2 Jun 2021 11:17:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1622625464; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=adTVVJEPZdSvV0XUZRnaYT48XleLc7OPqo1SzNBkzbY=; b=Gi3JCz+yhftXAbhn2fB+gWE5z7cFHlTSeonHDKgsgACIk/q60F6IqVnPKTadbVqK6Vk0hw I9xAQok5URrd5nnMF36KIasffBG3tqWz7/I/Bpv8pON61R3pjDE/LM4My8GXAqA9pCHQPY Z+5HUs+p9dyvGunFKIZQ/psc82Wtubk= X-MC-Unique: bIO2USUYOkK5VCRydZ9PnA-1 From: Gerd Hoffmann To: qemu-devel@nongnu.org Subject: [PATCH 1/9] Add module metadata macros, add qxl module annotations Date: Wed, 2 Jun 2021 11:17:19 +0200 Message-Id: <20210602091727.1023563-2-kraxel@redhat.com> In-Reply-To: <20210602091727.1023563-1-kraxel@redhat.com> References: <20210602091727.1023563-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=216.205.24.124; envelope-from=kraxel@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -31 X-Spam_score: -3.2 X-Spam_bar: --- X-Spam_report: (-3.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.371, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , berrange@redhat.com, David Hildenbrand , Cornelia Huck , Richard Henderson , armbru@redhat.com, Halil Pasic , Christian Borntraeger , qemu-s390x@nongnu.org, Paolo Bonzini , "Michael S. Tsirkin" , Gerd Hoffmann , Samuel Thibault , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Stealing an idea from the linux kernel: Place module metadata in an .modinfo elf section. This patch adds macros and qxl module annotations as example. Signed-off-by: Gerd Hoffmann --- include/qemu/module.h | 18 ++++++++++++++++++ hw/display/qxl.c | 4 ++++ 2 files changed, 22 insertions(+) diff --git a/include/qemu/module.h b/include/qemu/module.h index 944d403cbd15..afb9656ba4e7 100644 --- a/include/qemu/module.h +++ b/include/qemu/module.h @@ -73,4 +73,22 @@ bool module_load_one(const char *prefix, const char *lib= _name, bool mayfail); void module_load_qom_one(const char *type); void module_load_qom_all(void); =20 +/* + * objdump -t -s -j .modinfo ${module}.so + */ + +#define ___PASTE(a, b) a##b +#define __PASTE(a, b) ___PASTE(a, b) + +#define modinfo(kind, value) \ + static const char __PASTE(kind, __LINE__)[] \ + __attribute__((__used__)) \ + __attribute__((section(".modinfo"))) \ + __attribute__((aligned(1))) \ + =3D stringify(kind) "=3D" value + +#define module_obj(name) modinfo(obj, name) +#define module_dep(name) modinfo(dep, name) +#define module_arch(name) modinfo(arch, name) + #endif diff --git a/hw/display/qxl.c b/hw/display/qxl.c index 6e1f8ff1b2a7..84f99088e0a0 100644 --- a/hw/display/qxl.c +++ b/hw/display/qxl.c @@ -2522,6 +2522,7 @@ static const TypeInfo qxl_primary_info =3D { .parent =3D TYPE_PCI_QXL, .class_init =3D qxl_primary_class_init, }; +module_obj("qxl-vga"); =20 static void qxl_secondary_class_init(ObjectClass *klass, void *data) { @@ -2538,6 +2539,7 @@ static const TypeInfo qxl_secondary_info =3D { .parent =3D TYPE_PCI_QXL, .class_init =3D qxl_secondary_class_init, }; +module_obj("qxl"); =20 static void qxl_register_types(void) { @@ -2547,3 +2549,5 @@ static void qxl_register_types(void) } =20 type_init(qxl_register_types) + +module_dep("ui-spice-core"); --=20 2.31.1 From nobody Sun May 19 03:28:30 2024 Delivered-To: importer2@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1622625621; cv=none; d=zohomail.com; s=zohoarc; b=PHYtMN/ebz3jApY3eW1y9KUFftbp4SRspeO7VCeCeonn9/6KBrJuXH0w33ktWIEzW0FjJFKG7/YRwWC5ilVyqg8cpAxcYf85MNreuI5PW7c8ekXqXtXmFSY/taclxH/MAFeV+MaBYS7GX7IVpK9w/Y+uak7lm5e7nldHs821ue0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1622625621; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=RM5MHuSldTCJkVJYzW/tgcOS3v6/2/Fa9OcJ8hyKu9s=; b=Yd3JDQNywxefubwbw7C/bRBfsAeV+LDZTe5idFTfqGohRGL/MsJnla04j3e2f2lilC7KwW2FOtOHW7oiZlwG7TzoEdrViBVZmzyTL5PFJDAzWK/HUzTVDVbc/wbPg4ms0yuRayNV3B1eGPKdKW8xIOrJJ/Ddya0Uml6/iak9QFc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1622625621139561.0438193609044; Wed, 2 Jun 2021 02:20:21 -0700 (PDT) Received: from localhost ([::1]:41362 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loN2y-00060s-1t for importer2@patchew.org; Wed, 02 Jun 2021 05:20:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55722) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loN0U-0001rs-Tu for qemu-devel@nongnu.org; Wed, 02 Jun 2021 05:17:46 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:38320) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loN0M-000297-Nt for qemu-devel@nongnu.org; Wed, 02 Jun 2021 05:17:46 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-403-DPpB68pnNBW4EBRy3ipq3w-1; Wed, 02 Jun 2021 05:17:33 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 40207107ACE3; Wed, 2 Jun 2021 09:17:31 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-112-84.ams2.redhat.com [10.36.112.84]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C47345D9D0; Wed, 2 Jun 2021 09:17:30 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 91EC1180087E; Wed, 2 Jun 2021 11:17:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1622625456; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RM5MHuSldTCJkVJYzW/tgcOS3v6/2/Fa9OcJ8hyKu9s=; b=Pp9kCo/bAy8zSnC8uZSZxFqlcPYv+HNM47yLvniCcrd8N5JZKN3ofJUprB/QwHcboAx/BR E8SSz7hCJ2C1ohXxjAfdzYKuve3Fm6AE1zIl5WJHKxdOQ/edHZgRBS7jzCsB0IFTtgLTGq kfgG9PdNvxXPImsVwBIjnU2ai5I/wJo= X-MC-Unique: DPpB68pnNBW4EBRy3ipq3w-1 From: Gerd Hoffmann To: qemu-devel@nongnu.org Subject: [PATCH 2/9] add qemu-modinfo utility Date: Wed, 2 Jun 2021 11:17:20 +0200 Message-Id: <20210602091727.1023563-3-kraxel@redhat.com> In-Reply-To: <20210602091727.1023563-1-kraxel@redhat.com> References: <20210602091727.1023563-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=216.205.24.124; envelope-from=kraxel@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -31 X-Spam_score: -3.2 X-Spam_bar: --- X-Spam_report: (-3.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.371, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , berrange@redhat.com, David Hildenbrand , Cornelia Huck , Richard Henderson , armbru@redhat.com, Halil Pasic , Christian Borntraeger , qemu-s390x@nongnu.org, Paolo Bonzini , "Michael S. Tsirkin" , Gerd Hoffmann , Samuel Thibault , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" For now only dump metadata. TODO: * store in some file format (json?). * make qemu parse it, replace hard-coded lists in util/module.c * fix windows (seems to not have glob). * do we need non-elf support? Signed-off-by: Gerd Hoffmann --- qemu-modinfo.c | 182 +++++++++++++++++++++++++++++++++++++++++++++++++ meson.build | 3 + 2 files changed, 185 insertions(+) create mode 100644 qemu-modinfo.c diff --git a/qemu-modinfo.c b/qemu-modinfo.c new file mode 100644 index 000000000000..ecd5f6c3adf2 --- /dev/null +++ b/qemu-modinfo.c @@ -0,0 +1,182 @@ +/* + * QEMU module parser + * + * read modules, find modinfo section, parse & store metadata. + * + * Copyright Red Hat, Inc. 2021 + * + * Authors: + * Gerd Hoffmann + * + * This work is licensed under the terms of the GNU GPL, version 2 or late= r. + * See the COPYING file in the top-level directory. + */ +#include "qemu/osdep.h" +#include "elf.h" +#include + +#define Elf_Ehdr Elf64_Ehdr +#define Elf_Shdr Elf64_Shdr +#define ELFCLASS ELFCLASS64 + +static const char *moddir =3D CONFIG_QEMU_MODDIR; +static const char *dsosuf =3D CONFIG_HOST_DSOSUF; + +static void modinfo(const char *module, char *info, size_t size) +{ + size_t pos =3D 0, len; + + fprintf(stderr, "%s\n", module); + do { + fprintf(stderr, " -> %s\n", info + pos); + len =3D strlen(info + pos) + 1; + pos +=3D len; + } while (pos < size); +} + +static void elf_read_section_hdr(FILE *fp, Elf_Ehdr *ehdr, + int section, Elf_Shdr *shdr) +{ + size_t pos, len; + int ret; + + pos =3D ehdr->e_shoff + section * ehdr->e_shentsize; + len =3D MIN(ehdr->e_shentsize, sizeof(*shdr)); + + ret =3D fseek(fp, pos, SEEK_SET); + if (ret !=3D 0) { + fprintf(stderr, "seek error\n"); + exit(1); + } + + memset(shdr, 0, sizeof(*shdr)); + ret =3D fread(shdr, len, 1, fp); + if (ret !=3D 1) { + fprintf(stderr, "read error\n"); + exit(1); + } +} + +static void *elf_read_section(FILE *fp, Elf_Ehdr *ehdr, + int section, size_t *size) +{ + Elf_Shdr shdr; + void *data; + int ret; + + elf_read_section_hdr(fp, ehdr, section, &shdr); + if (shdr.sh_offset && shdr.sh_size) { + ret =3D fseek(fp, shdr.sh_offset, SEEK_SET); + if (ret !=3D 0) { + fprintf(stderr, "seek error\n"); + exit(1); + } + + data =3D g_malloc(shdr.sh_size); + ret =3D fread(data, shdr.sh_size, 1, fp); + if (ret !=3D 1) { + fprintf(stderr, "read error\n"); + exit(1); + } + *size =3D shdr.sh_size; + } else { + data =3D NULL; + *size =3D 0; + } + return data; +} + +static void elf_parse_module(const char *module) +{ + Elf_Ehdr ehdr; + Elf_Shdr shdr; + FILE *fp; + int ret, i; + char *str; + size_t str_size; + char *info; + size_t info_size; + + fp =3D fopen(module, "r"); + if (NULL =3D=3D fp) { + fprintf(stderr, "open %s: %s\n", module, strerror(errno)); + exit(1); + } + + ret =3D fread(&ehdr, sizeof(ehdr), 1, fp); + if (ret !=3D 1) { + fprintf(stderr, "read error (%s)\n", module); + exit(1); + } + + if (ehdr.e_ident[EI_MAG0] !=3D ELFMAG0 || + ehdr.e_ident[EI_MAG1] !=3D ELFMAG1 || + ehdr.e_ident[EI_MAG2] !=3D ELFMAG2 || + ehdr.e_ident[EI_MAG3] !=3D ELFMAG3) { + fprintf(stderr, "not an elf file (%s)\n", module); + exit(1); + } + if (ehdr.e_ident[EI_CLASS] !=3D ELFCLASS64) { + fprintf(stderr, "elf class mismatch (%s)\n", module); + exit(1); + } + if (ehdr.e_shoff =3D=3D 0) { + fprintf(stderr, "no section header (%s)\n", module); + exit(1); + } + + /* read string table */ + if (ehdr.e_shstrndx =3D=3D 0) { + fprintf(stderr, "no section strings (%s)\n", module); + exit(1); + } + str =3D elf_read_section(fp, &ehdr, ehdr.e_shstrndx, &str_size); + if (NULL =3D=3D str) { + fprintf(stderr, "no section strings (%s)\n", module); + exit(1); + } + + /* find and read modinfo section */ + info =3D NULL; + for (i =3D 0; i < ehdr.e_shnum; i++) { + elf_read_section_hdr(fp, &ehdr, i, &shdr); + if (!shdr.sh_name) { + continue; + } + if (strcmp(str + shdr.sh_name, ".modinfo") =3D=3D 0) { + info =3D elf_read_section(fp, &ehdr, i, &info_size); + } + } + + if (info) { + modinfo(module, info, info_size); + } + + fclose(fp); +} + +int main(int argc, char **argv) +{ + char *pattern; + glob_t files; + int ret, i; + + if (argc > 1) { + moddir =3D argv[1]; + } + + pattern =3D g_strdup_printf("%s/*%s", moddir, dsosuf); + ret =3D glob(pattern, 0, NULL, &files); + if (ret !=3D 0) { + fprintf(stderr, "glob(%s) failed: %d\n", pattern, ret); + exit(1); + } + + for (i =3D 0; i < files.gl_pathc; i++) { + elf_parse_module(files.gl_pathv[i]); + } + + globfree(&files); + g_free(pattern); + return 0; +} diff --git a/meson.build b/meson.build index a45f1a844f13..179e92aa7ae1 100644 --- a/meson.build +++ b/meson.build @@ -2358,6 +2358,9 @@ if xkbcommon.found() dependencies: [qemuutil, xkbcommon], install: h= ave_tools) endif =20 +qemu_modinfo =3D executable('qemu-modinfo', files('qemu-modinfo.c') + genh, + dependencies: [glib], install: have_tools) + if have_tools qemu_img =3D executable('qemu-img', [files('qemu-img.c'), hxdep], dependencies: [authz, block, crypto, io, qom, qemuutil], inst= all: true) --=20 2.31.1 From nobody Sun May 19 03:28:30 2024 Delivered-To: importer2@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1622625599; cv=none; d=zohomail.com; s=zohoarc; b=n/vdfxLpvHs73VXA+XVbe3Y3+r37e/vdmlA1LikPk6eQe6HsA0dhSlPZgRvK6AENTvJGSYX0FneOwPxdh2q7cVqTznvJKOJDljMZW1DOFQ3Dr3g49PyStpcuNiF/E50YGyzFlUXz7T3tswdx/wJu2oaGalxD9kE6k587rnRkybg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1622625599; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=2N0mgQnSR8oAerjxg2YBYHZ3p88z8Ru0HgqydZqU+xg=; b=e+IIugFqVkQeA1KMit6Cw3TdCJCNrTdj5MWH9zK3iuENoe5/1LufNvq904wNTe+c8r81RRtKFAu+/F+atwoWUplEPNfNrYCvbOxbogLWiF1N1J8du/gG99GIG//8Q8U+05NOVLjYtftncn0vRk9ZlKhg9+27ckNPotXZNQfYKo4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1622625599152628.6151816344095; Wed, 2 Jun 2021 02:19:59 -0700 (PDT) Received: from localhost ([::1]:39292 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loN2b-0004cr-UA for importer2@patchew.org; Wed, 02 Jun 2021 05:19:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55710) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loN0U-0001qG-AA for qemu-devel@nongnu.org; Wed, 02 Jun 2021 05:17:46 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:50298) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loN0P-0002BL-9j for qemu-devel@nongnu.org; Wed, 02 Jun 2021 05:17:46 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-228-xjVjw3aROU-Tj_FTv4n_TA-1; Wed, 02 Jun 2021 05:17:34 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 35EE1107ACFE; Wed, 2 Jun 2021 09:17:33 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-112-84.ams2.redhat.com [10.36.112.84]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BAAFF5D9D0; Wed, 2 Jun 2021 09:17:32 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id ADCF8180087F; Wed, 2 Jun 2021 11:17:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1622625460; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2N0mgQnSR8oAerjxg2YBYHZ3p88z8Ru0HgqydZqU+xg=; b=FIpLVnkzco84a4xLoOaL95M8smGOnrb1nqEqouxxpsngdiwHlPuZzuY4loLvMTIUlyWhVh SY5/C+tXmuPCqsDY0S0AZUE1OaNNax0XJO3Dy6G0fW1lEoxoGH63aFD9U2A+Qolfr4kRbC 2yqnDf48oFMChZgq7MfrQcN8Vf9FzZ8= X-MC-Unique: xjVjw3aROU-Tj_FTv4n_TA-1 From: Gerd Hoffmann To: qemu-devel@nongnu.org Subject: [PATCH 3/9] virtio-gpu module annotations Date: Wed, 2 Jun 2021 11:17:21 +0200 Message-Id: <20210602091727.1023563-4-kraxel@redhat.com> In-Reply-To: <20210602091727.1023563-1-kraxel@redhat.com> References: <20210602091727.1023563-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=kraxel@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -31 X-Spam_score: -3.2 X-Spam_bar: --- X-Spam_report: (-3.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.371, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , berrange@redhat.com, David Hildenbrand , Cornelia Huck , Richard Henderson , armbru@redhat.com, Halil Pasic , Christian Borntraeger , qemu-s390x@nongnu.org, Paolo Bonzini , "Michael S. Tsirkin" , Gerd Hoffmann , Samuel Thibault , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Signed-off-by: Gerd Hoffmann --- hw/display/vhost-user-gpu-pci.c | 1 + hw/display/vhost-user-gpu.c | 1 + hw/display/vhost-user-vga.c | 1 + hw/display/virtio-gpu-base.c | 1 + hw/display/virtio-gpu-gl.c | 3 +++ hw/display/virtio-gpu-pci-gl.c | 3 +++ hw/display/virtio-gpu-pci.c | 2 ++ hw/display/virtio-gpu.c | 1 + hw/display/virtio-vga-gl.c | 3 +++ hw/display/virtio-vga.c | 2 ++ 10 files changed, 18 insertions(+) diff --git a/hw/display/vhost-user-gpu-pci.c b/hw/display/vhost-user-gpu-pc= i.c index a02b23ecaf11..daefcf710159 100644 --- a/hw/display/vhost-user-gpu-pci.c +++ b/hw/display/vhost-user-gpu-pci.c @@ -43,6 +43,7 @@ static const VirtioPCIDeviceTypeInfo vhost_user_gpu_pci_i= nfo =3D { .instance_size =3D sizeof(VhostUserGPUPCI), .instance_init =3D vhost_user_gpu_pci_initfn, }; +module_obj(TYPE_VHOST_USER_GPU_PCI); =20 static void vhost_user_gpu_pci_register_types(void) { diff --git a/hw/display/vhost-user-gpu.c b/hw/display/vhost-user-gpu.c index 6cdaa1c73b9b..32ef0061f924 100644 --- a/hw/display/vhost-user-gpu.c +++ b/hw/display/vhost-user-gpu.c @@ -596,6 +596,7 @@ static const TypeInfo vhost_user_gpu_info =3D { .instance_finalize =3D vhost_user_gpu_instance_finalize, .class_init =3D vhost_user_gpu_class_init, }; +module_obj(TYPE_VHOST_USER_GPU); =20 static void vhost_user_gpu_register_types(void) { diff --git a/hw/display/vhost-user-vga.c b/hw/display/vhost-user-vga.c index a34a99856d73..072c9c65bc75 100644 --- a/hw/display/vhost-user-vga.c +++ b/hw/display/vhost-user-vga.c @@ -44,6 +44,7 @@ static const VirtioPCIDeviceTypeInfo vhost_user_vga_info = =3D { .instance_size =3D sizeof(VhostUserVGA), .instance_init =3D vhost_user_vga_inst_initfn, }; +module_obj(TYPE_VHOST_USER_VGA); =20 static void vhost_user_vga_register_types(void) { diff --git a/hw/display/virtio-gpu-base.c b/hw/display/virtio-gpu-base.c index dd294276cb38..c8da4806e0bb 100644 --- a/hw/display/virtio-gpu-base.c +++ b/hw/display/virtio-gpu-base.c @@ -256,6 +256,7 @@ static const TypeInfo virtio_gpu_base_info =3D { .class_init =3D virtio_gpu_base_class_init, .abstract =3D true }; +module_obj(TYPE_VIRTIO_GPU_BASE); =20 static void virtio_register_types(void) diff --git a/hw/display/virtio-gpu-gl.c b/hw/display/virtio-gpu-gl.c index d971b480806a..7ab93bf8c829 100644 --- a/hw/display/virtio-gpu-gl.c +++ b/hw/display/virtio-gpu-gl.c @@ -154,6 +154,7 @@ static const TypeInfo virtio_gpu_gl_info =3D { .instance_size =3D sizeof(VirtIOGPUGL), .class_init =3D virtio_gpu_gl_class_init, }; +module_obj(TYPE_VIRTIO_GPU_GL); =20 static void virtio_register_types(void) { @@ -161,3 +162,5 @@ static void virtio_register_types(void) } =20 type_init(virtio_register_types) + +module_dep("hw-display-virtio-gpu"); diff --git a/hw/display/virtio-gpu-pci-gl.c b/hw/display/virtio-gpu-pci-gl.c index 902dda345275..99b14a07185e 100644 --- a/hw/display/virtio-gpu-pci-gl.c +++ b/hw/display/virtio-gpu-pci-gl.c @@ -46,6 +46,7 @@ static const VirtioPCIDeviceTypeInfo virtio_gpu_gl_pci_in= fo =3D { .instance_size =3D sizeof(VirtIOGPUGLPCI), .instance_init =3D virtio_gpu_gl_initfn, }; +module_obj(TYPE_VIRTIO_GPU_GL_PCI); =20 static void virtio_gpu_gl_pci_register_types(void) { @@ -53,3 +54,5 @@ static void virtio_gpu_gl_pci_register_types(void) } =20 type_init(virtio_gpu_gl_pci_register_types) + +module_dep("hw-display-virtio-gpu-pci"); diff --git a/hw/display/virtio-gpu-pci.c b/hw/display/virtio-gpu-pci.c index d742a30aecf7..e36eee0c409b 100644 --- a/hw/display/virtio-gpu-pci.c +++ b/hw/display/virtio-gpu-pci.c @@ -64,6 +64,7 @@ static const TypeInfo virtio_gpu_pci_base_info =3D { .class_init =3D virtio_gpu_pci_base_class_init, .abstract =3D true }; +module_obj(TYPE_VIRTIO_GPU_PCI_BASE); =20 #define TYPE_VIRTIO_GPU_PCI "virtio-gpu-pci" typedef struct VirtIOGPUPCI VirtIOGPUPCI; @@ -90,6 +91,7 @@ static const VirtioPCIDeviceTypeInfo virtio_gpu_pci_info = =3D { .instance_size =3D sizeof(VirtIOGPUPCI), .instance_init =3D virtio_gpu_initfn, }; +module_obj(TYPE_VIRTIO_GPU_PCI); =20 static void virtio_gpu_pci_register_types(void) { diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c index 4d549377cbc1..68fd607c2711 100644 --- a/hw/display/virtio-gpu.c +++ b/hw/display/virtio-gpu.c @@ -1419,6 +1419,7 @@ static const TypeInfo virtio_gpu_info =3D { .class_size =3D sizeof(VirtIOGPUClass), .class_init =3D virtio_gpu_class_init, }; +module_obj(TYPE_VIRTIO_GPU); =20 static void virtio_register_types(void) { diff --git a/hw/display/virtio-vga-gl.c b/hw/display/virtio-vga-gl.c index c971340ebb1a..f22549097c5e 100644 --- a/hw/display/virtio-vga-gl.c +++ b/hw/display/virtio-vga-gl.c @@ -36,6 +36,7 @@ static VirtioPCIDeviceTypeInfo virtio_vga_gl_info =3D { .instance_size =3D sizeof(VirtIOVGAGL), .instance_init =3D virtio_vga_gl_inst_initfn, }; +module_obj(TYPE_VIRTIO_VGA_GL); =20 static void virtio_vga_register_types(void) { @@ -45,3 +46,5 @@ static void virtio_vga_register_types(void) } =20 type_init(virtio_vga_register_types) + +module_dep("hw-display-virtio-vga"); diff --git a/hw/display/virtio-vga.c b/hw/display/virtio-vga.c index d3c640406152..9e57f61e9edb 100644 --- a/hw/display/virtio-vga.c +++ b/hw/display/virtio-vga.c @@ -239,6 +239,7 @@ static TypeInfo virtio_vga_base_info =3D { .class_init =3D virtio_vga_base_class_init, .abstract =3D true, }; +module_obj(TYPE_VIRTIO_VGA_BASE); =20 #define TYPE_VIRTIO_VGA "virtio-vga" =20 @@ -268,6 +269,7 @@ static VirtioPCIDeviceTypeInfo virtio_vga_info =3D { .instance_size =3D sizeof(VirtIOVGA), .instance_init =3D virtio_vga_inst_initfn, }; +module_obj(TYPE_VIRTIO_VGA); =20 static void virtio_vga_register_types(void) { --=20 2.31.1 From nobody Sun May 19 03:28:30 2024 Delivered-To: importer2@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1622625730; cv=none; d=zohomail.com; s=zohoarc; b=Fiuxt59K9b8NVsxvCOVLE/gR4HaThsb6PXNkmoU9gw1Tvy5bzxdhIc3NUA8ySvP2VGZ1iWFcFM+ZD0AKHWLXgmEUGet+GpfHJQxn1jyLdx7iWMfnHGdjkBK5Y0J5Gj9aaiJ1lT8RMbiGPFAaTHaNBzc//Uz+NrzkuOR0pTaA1R0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1622625730; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=8HVkjQbly3dsiItgADM//9yMkxJsBU/36GStGQA/SeE=; b=givNOXEqcP3gtnJvY30MCZW1vBIj39hO0ZTLpPZ1sUYp/qxAiOnGrXTRvF8JKpH15cjpUukE0HqhwhTKz8fnHSaaxDBFJdkWZi6rKnLy6oC5usd9GYuAEk4oFiv1yOXpqXjkhYAU3PkwL9Bxfzq3uUrn4vXLPmq+rdGdReYh5YM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1622625730630475.680755757316; Wed, 2 Jun 2021 02:22:10 -0700 (PDT) Received: from localhost ([::1]:48022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loN4j-00026P-L8 for importer2@patchew.org; Wed, 02 Jun 2021 05:22:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55768) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loN0X-00020R-RR for qemu-devel@nongnu.org; Wed, 02 Jun 2021 05:17:49 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:53258) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loN0V-0002Ec-AB for qemu-devel@nongnu.org; Wed, 02 Jun 2021 05:17:49 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-395-l0GHYeiHPvuZX4hz2Y3Y4g-1; Wed, 02 Jun 2021 05:17:43 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4CDA9BBEE7; Wed, 2 Jun 2021 09:17:42 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-112-84.ams2.redhat.com [10.36.112.84]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E24AC1037EA5; Wed, 2 Jun 2021 09:17:34 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id BA78E1800900; Wed, 2 Jun 2021 11:17:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1622625466; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8HVkjQbly3dsiItgADM//9yMkxJsBU/36GStGQA/SeE=; b=cJPNNnEqJtbDf6R/cWILwPzR6ntq5ZlQXs37ysEf2zQl4pRRdL3v9lr0AoQpqSsy8R08JM W6BxQukFivfPcoc165kooNNcOT9Fwmm6SSaK6JPQm+qDMYX68RaAYaxx9ev7yaTWZznH90 d1+4YK3Aq0Xl2Ngi0y1Ma+UojVng8oM= X-MC-Unique: l0GHYeiHPvuZX4hz2Y3Y4g-1 From: Gerd Hoffmann To: qemu-devel@nongnu.org Subject: [PATCH 4/9] chardev module annotations Date: Wed, 2 Jun 2021 11:17:22 +0200 Message-Id: <20210602091727.1023563-5-kraxel@redhat.com> In-Reply-To: <20210602091727.1023563-1-kraxel@redhat.com> References: <20210602091727.1023563-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=216.205.24.124; envelope-from=kraxel@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -31 X-Spam_score: -3.2 X-Spam_bar: --- X-Spam_report: (-3.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.371, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , berrange@redhat.com, David Hildenbrand , Cornelia Huck , Richard Henderson , armbru@redhat.com, Halil Pasic , Christian Borntraeger , qemu-s390x@nongnu.org, Paolo Bonzini , "Michael S. Tsirkin" , Gerd Hoffmann , Samuel Thibault , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Signed-off-by: Gerd Hoffmann --- chardev/baum.c | 1 + chardev/spice.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/chardev/baum.c b/chardev/baum.c index 5deca778bc44..79d618e35045 100644 --- a/chardev/baum.c +++ b/chardev/baum.c @@ -680,6 +680,7 @@ static const TypeInfo char_braille_type_info =3D { .instance_finalize =3D char_braille_finalize, .class_init =3D char_braille_class_init, }; +module_obj(TYPE_CHARDEV_BRAILLE); =20 static void register_types(void) { diff --git a/chardev/spice.c b/chardev/spice.c index 1104426e3a11..3ffb3fdc0dac 100644 --- a/chardev/spice.c +++ b/chardev/spice.c @@ -366,6 +366,7 @@ static const TypeInfo char_spice_type_info =3D { .class_init =3D char_spice_class_init, .abstract =3D true, }; +module_obj(TYPE_CHARDEV_SPICE); =20 static void char_spicevmc_class_init(ObjectClass *oc, void *data) { @@ -396,6 +397,7 @@ static const TypeInfo char_spiceport_type_info =3D { .parent =3D TYPE_CHARDEV_SPICE, .class_init =3D char_spiceport_class_init, }; +module_obj(TYPE_CHARDEV_SPICEPORT); =20 static void register_types(void) { @@ -405,3 +407,5 @@ static void register_types(void) } =20 type_init(register_types); + +module_dep("ui-spice-core"); --=20 2.31.1 From nobody Sun May 19 03:28:30 2024 Delivered-To: importer2@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1622625743; cv=none; d=zohomail.com; s=zohoarc; b=HZ7/PMeF55TEjsioCCIf9V7uBkZIL2yF8DxLWiEYEPLI5ivANM3DuDI8R+DwUinPwMUQVzagilaiCmhPznw4/0kMMrzPRb3axO4VfjwjUyB5hDtkE6GSzOdRWU40vG8NVgWvRDchRf/IyE1gYTx1YdtuY/cQ0Olrt1VVPbFnOl4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1622625743; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=rQZiTj29EkUI3JcZ8Wr4DuhMvRhsE3YMv7zgpWxKx8Q=; b=Q9qBv4b+oC2hT4NwRsAXp/LJJyG5k9ZMuALwHqg68hECUL/TwXpC5lTga/XtHPid6cuUjelmxhSAmUJ/boiWKiFylFCTsCcUY8yML2SDBGDGJmWowtSFoy/9RY/+QOsaNL1oU9xSNHhnoZy00JRAuqt6R1kh+szW+C7fC5LiqiE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1622625743709596.5586049851858; Wed, 2 Jun 2021 02:22:23 -0700 (PDT) Received: from localhost ([::1]:48936 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loN4w-0002gO-Jl for importer2@patchew.org; Wed, 02 Jun 2021 05:22:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55872) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loN0w-0002OR-It for qemu-devel@nongnu.org; Wed, 02 Jun 2021 05:18:14 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:34213) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loN0t-0002PD-2j for qemu-devel@nongnu.org; Wed, 02 Jun 2021 05:18:13 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-557-6URUVil8Ohm66DnZJADnRg-1; Wed, 02 Jun 2021 05:18:07 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5E79B8042A3; Wed, 2 Jun 2021 09:18:06 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-112-84.ams2.redhat.com [10.36.112.84]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BC6586A045; Wed, 2 Jun 2021 09:17:43 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id C56591800901; Wed, 2 Jun 2021 11:17:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1622625489; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rQZiTj29EkUI3JcZ8Wr4DuhMvRhsE3YMv7zgpWxKx8Q=; b=e+xG639KcxjgrrOibuJBjjbIw9/7XrLDS+s6i4AtfOnHEMLDsgYTevQLC6qbALaWNLR90O vcTvXspXu8Q+vnRAwqPncfgJ2cplNm3ry+WzrhnQ6jEDgFY17KngcvEkOG6DS5P4xV++FX scab6JJy21rjc6aF/wd7mWGGFmkdmG8= X-MC-Unique: 6URUVil8Ohm66DnZJADnRg-1 From: Gerd Hoffmann To: qemu-devel@nongnu.org Subject: [PATCH 5/9] audio module annotations Date: Wed, 2 Jun 2021 11:17:23 +0200 Message-Id: <20210602091727.1023563-6-kraxel@redhat.com> In-Reply-To: <20210602091727.1023563-1-kraxel@redhat.com> References: <20210602091727.1023563-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=216.205.24.124; envelope-from=kraxel@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -31 X-Spam_score: -3.2 X-Spam_bar: --- X-Spam_report: (-3.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.371, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , berrange@redhat.com, David Hildenbrand , Cornelia Huck , Richard Henderson , armbru@redhat.com, Halil Pasic , Christian Borntraeger , qemu-s390x@nongnu.org, Paolo Bonzini , "Michael S. Tsirkin" , Gerd Hoffmann , Samuel Thibault , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Signed-off-by: Gerd Hoffmann --- audio/spiceaudio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/audio/spiceaudio.c b/audio/spiceaudio.c index 999bfbde47c5..a8d370fe6f31 100644 --- a/audio/spiceaudio.c +++ b/audio/spiceaudio.c @@ -317,3 +317,5 @@ static void register_audio_spice(void) audio_driver_register(&spice_audio_driver); } type_init(register_audio_spice); + +module_dep("ui-spice-core"); --=20 2.31.1 From nobody Sun May 19 03:28:30 2024 Delivered-To: importer2@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1622625607; cv=none; d=zohomail.com; s=zohoarc; b=Ss5HEJucLW8cul8EShLFuJIWYRq6EY6NfXMA+p38CIjozG4ZxL6yvBN/8KdsepsClv8TqTY7DZ7HMQoKwMrgAMQIlyEnSz13HAgK+JJBuX+fkm7V+xYk6OhhxMZRSmuK7YxHe8yoAHJCrkvi8pEJ9RqjU/7a7Y+TJ5fzRVuAZfo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1622625607; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=47S+hKkrRx4hDRMeJz2IyNQwdb7IvNGZaEvXYRCjttw=; b=GIDpu7QbQnuzavhDBXkzJab16UMVcbWNP8ijMvfZ/iKzHONoyJtHXAZx//ASgj7NEAKQflh+Mud2wnyNRxib9PpcCh1tINrmAylSWAnezxIVa62z2yN8hf6YXP3ARvQDPiNoTCI0dI03Z5VGxKwTbFJH7SGjtlm7kbo5h1s8QkE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1622625607275709.6845176652512; Wed, 2 Jun 2021 02:20:07 -0700 (PDT) Received: from localhost ([::1]:40112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loN2k-0005Al-6O for importer2@patchew.org; Wed, 02 Jun 2021 05:20:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55840) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loN0t-0002NN-Ap for qemu-devel@nongnu.org; Wed, 02 Jun 2021 05:18:12 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:49144) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loN0j-0002LB-Cn for qemu-devel@nongnu.org; Wed, 02 Jun 2021 05:18:06 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-249-eAY0Y5mjMxiaJwZeLpOQuw-1; Wed, 02 Jun 2021 05:17:58 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 07F84801817; Wed, 2 Jun 2021 09:17:57 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-112-84.ams2.redhat.com [10.36.112.84]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BB4A75D764; Wed, 2 Jun 2021 09:17:43 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id D02BA1800902; Wed, 2 Jun 2021 11:17:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1622625479; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=47S+hKkrRx4hDRMeJz2IyNQwdb7IvNGZaEvXYRCjttw=; b=dv+/N5RPgupazt/J5HF5d34t8i+aeB6/QA3OkkLQlFMCH89FrW6y8d2x2oKFFIKWQwxl8B Yc11Ue0HMy+yoqTjXkUuxdEsMDTwljfkJGyLFXZxEXMrS7Y2YtLr7TZhBiQHQMREb2hAaD mk/t2U8LKR1j8vaLB1HlMrwR4pABjkw= X-MC-Unique: eAY0Y5mjMxiaJwZeLpOQuw-1 From: Gerd Hoffmann To: qemu-devel@nongnu.org Subject: [PATCH 6/9] usb-redir module annotations Date: Wed, 2 Jun 2021 11:17:24 +0200 Message-Id: <20210602091727.1023563-7-kraxel@redhat.com> In-Reply-To: <20210602091727.1023563-1-kraxel@redhat.com> References: <20210602091727.1023563-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=216.205.24.124; envelope-from=kraxel@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -31 X-Spam_score: -3.2 X-Spam_bar: --- X-Spam_report: (-3.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.371, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , berrange@redhat.com, David Hildenbrand , Cornelia Huck , Richard Henderson , armbru@redhat.com, Halil Pasic , Christian Borntraeger , qemu-s390x@nongnu.org, Paolo Bonzini , "Michael S. Tsirkin" , Gerd Hoffmann , Samuel Thibault , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Signed-off-by: Gerd Hoffmann --- hw/usb/redirect.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/usb/redirect.c b/hw/usb/redirect.c index 6a75b0dc4ab2..4ec9326e0582 100644 --- a/hw/usb/redirect.c +++ b/hw/usb/redirect.c @@ -2608,6 +2608,7 @@ static const TypeInfo usbredir_dev_info =3D { .class_init =3D usbredir_class_initfn, .instance_init =3D usbredir_instance_init, }; +module_obj(TYPE_USB_REDIR); =20 static void usbredir_register_types(void) { --=20 2.31.1 From nobody Sun May 19 03:28:30 2024 Delivered-To: importer2@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1622625831; cv=none; d=zohomail.com; s=zohoarc; b=RDepMw/DDmekvthHx7DbyzP/HlNOyKvFVwsnpPAKbeVFkCWKGxqO+Tm1xyOHqw1pAn45yAJ9xO/2h1ZA4iIDec1Ml9HSg0LozUUGj2f24IoeDIDprKy/DhVuUGp27LEXMFidnxXsbdJrt4A06YmKUVgk27Lo2zZLuqcKWN5FWeI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1622625831; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=ynhXTHj1vgTX7K0qlPMPEtoJitMeHYDFd80j2X87xgo=; b=A/qF3KhTjzW8Lza2Y1fpT6RoiXqvifgczXKkVHsjQ7+kTJhfpLkuB0PEkxNpNhmqS9LaEGy8Vx7Cwd/YzajpdI+SYWVP9p6ddPMmULuVsF3Lx7ISIL9TQzGdxbwZaAedhyDhYqPzu0f9XGcV87p3/XN871ob9PGm/oTTznzkxKQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 16226258311871021.9862178385765; Wed, 2 Jun 2021 02:23:51 -0700 (PDT) Received: from localhost ([::1]:56192 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loN6M-0007jS-7i for importer2@patchew.org; Wed, 02 Jun 2021 05:23:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56134) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loN1n-00044s-9Q for qemu-devel@nongnu.org; Wed, 02 Jun 2021 05:19:07 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:30676) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loN1k-00034N-FR for qemu-devel@nongnu.org; Wed, 02 Jun 2021 05:19:07 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-399-ZCv36bf1OWu9FulrqpBE_g-1; Wed, 02 Jun 2021 05:19:00 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 895C418765A8; Wed, 2 Jun 2021 09:18:42 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-112-84.ams2.redhat.com [10.36.112.84]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 94D9B1043272; Wed, 2 Jun 2021 09:17:58 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id DCBAB1800903; Wed, 2 Jun 2021 11:17:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1622625543; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ynhXTHj1vgTX7K0qlPMPEtoJitMeHYDFd80j2X87xgo=; b=HBZ2bI3SJCBiP1zMi6CoCyRetbkuHWO0aEPre4Ze/04yV85U1PaMKA/Af5QEOSAz0r4ktA UxMUGl+Di4YlvCb3jqIPdzrxspW+NuYnpVt0dd9gKhyvEO27aEd+6sius2FbB+I/OSwKXM EetdvTaO8QPUGtQ6ptir6KD9hgolr7E= X-MC-Unique: ZCv36bf1OWu9FulrqpBE_g-1 From: Gerd Hoffmann To: qemu-devel@nongnu.org Subject: [PATCH 7/9] ccid module annotations Date: Wed, 2 Jun 2021 11:17:25 +0200 Message-Id: <20210602091727.1023563-8-kraxel@redhat.com> In-Reply-To: <20210602091727.1023563-1-kraxel@redhat.com> References: <20210602091727.1023563-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=216.205.24.124; envelope-from=kraxel@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -31 X-Spam_score: -3.2 X-Spam_bar: --- X-Spam_report: (-3.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.371, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , berrange@redhat.com, David Hildenbrand , Cornelia Huck , Richard Henderson , armbru@redhat.com, Halil Pasic , Christian Borntraeger , qemu-s390x@nongnu.org, Paolo Bonzini , "Michael S. Tsirkin" , Gerd Hoffmann , Samuel Thibault , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Signed-off-by: Gerd Hoffmann --- hw/usb/ccid-card-emulated.c | 1 + hw/usb/ccid-card-passthru.c | 1 + 2 files changed, 2 insertions(+) diff --git a/hw/usb/ccid-card-emulated.c b/hw/usb/ccid-card-emulated.c index 5c76bed77aa0..6c8c0355e099 100644 --- a/hw/usb/ccid-card-emulated.c +++ b/hw/usb/ccid-card-emulated.c @@ -612,6 +612,7 @@ static const TypeInfo emulated_card_info =3D { .instance_size =3D sizeof(EmulatedState), .class_init =3D emulated_class_initfn, }; +module_obj(TYPE_EMULATED_CCID); =20 static void ccid_card_emulated_register_types(void) { diff --git a/hw/usb/ccid-card-passthru.c b/hw/usb/ccid-card-passthru.c index 7212d0d7fb5e..fa3040fb7154 100644 --- a/hw/usb/ccid-card-passthru.c +++ b/hw/usb/ccid-card-passthru.c @@ -414,6 +414,7 @@ static const TypeInfo passthru_card_info =3D { .instance_size =3D sizeof(PassthruState), .class_init =3D passthru_class_initfn, }; +module_obj(TYPE_CCID_PASSTHRU); =20 static void ccid_card_passthru_register_types(void) { --=20 2.31.1 From nobody Sun May 19 03:28:30 2024 Delivered-To: importer2@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1622625761; cv=none; d=zohomail.com; s=zohoarc; b=eKm6Ux2eFtAnYSWXov9h5GLLxhALIkopnPRrKxiiwBtB03FlmukFDj6WBNcBNYGxXK8YIiHmSFfrYOukGXnpdINxUPSPBygUWM+BIOngCpJT96MqQlEN5vHCGwCZSIhPBI2627WEklxVcY7F1GPVh0vFlCJjiwx+tMvssvu+kfc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1622625761; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=rpEJLj/FQD2T6fQ8VnxUoL3Kc5fq+2dnTrS/WXmuuUo=; b=c94CVowmazX5xFBE/NyhWTHmj88RfCm08E+D7PGCPAEnrUMDNJP2c0+IYU8KNdg31jxrAOf277Dvc794xF+pqx98RZcoZ8JCBsBTBowzq1QGbakW0D8VjmCh/f45jSMvtkEFEQDr103QfHHvw3mxK/45tdNeNXtsS5VS+ILQimA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1622625761059602.8333628838687; Wed, 2 Jun 2021 02:22:41 -0700 (PDT) Received: from localhost ([::1]:50612 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loN5E-0003oR-3g for importer2@patchew.org; Wed, 02 Jun 2021 05:22:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56046) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loN1M-0003V3-2R for qemu-devel@nongnu.org; Wed, 02 Jun 2021 05:18:40 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:29390) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loN1I-0002lM-Vv for qemu-devel@nongnu.org; Wed, 02 Jun 2021 05:18:39 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-510-9STh9OVZM8WXH2BYe9d0qA-1; Wed, 02 Jun 2021 05:18:32 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id BD2FBC7443; Wed, 2 Jun 2021 09:18:31 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-112-84.ams2.redhat.com [10.36.112.84]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EA5235E7C5; Wed, 2 Jun 2021 09:18:07 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id EEF431800904; Wed, 2 Jun 2021 11:17:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1622625516; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rpEJLj/FQD2T6fQ8VnxUoL3Kc5fq+2dnTrS/WXmuuUo=; b=VMLzbRauWvv1K9BnyF1AezrvSuE95Ed38/0IE4DrFHUZqV01WBXeKTDpnSksZ/Ep0rxbLM 1lr1AJ0Jo1Y4hh7/Ci4NFv40kof0M8T0aZQsPclrK0luS1V8qQiPRXASq//hiAMEzwT1cg bDfUDLEybSLpqnY2K5XjMIszzStv0kM= X-MC-Unique: 9STh9OVZM8WXH2BYe9d0qA-1 From: Gerd Hoffmann To: qemu-devel@nongnu.org Subject: [PATCH 8/9] ui module annotations Date: Wed, 2 Jun 2021 11:17:26 +0200 Message-Id: <20210602091727.1023563-9-kraxel@redhat.com> In-Reply-To: <20210602091727.1023563-1-kraxel@redhat.com> References: <20210602091727.1023563-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=kraxel@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -31 X-Spam_score: -3.2 X-Spam_bar: --- X-Spam_report: (-3.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.371, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , berrange@redhat.com, David Hildenbrand , Cornelia Huck , Richard Henderson , armbru@redhat.com, Halil Pasic , Christian Borntraeger , qemu-s390x@nongnu.org, Paolo Bonzini , "Michael S. Tsirkin" , Gerd Hoffmann , Samuel Thibault , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Signed-off-by: Gerd Hoffmann --- ui/egl-headless.c | 4 ++++ ui/gtk.c | 4 ++++ ui/sdl2.c | 4 ++++ ui/spice-app.c | 3 +++ ui/spice-core.c | 4 ++++ 5 files changed, 19 insertions(+) diff --git a/ui/egl-headless.c b/ui/egl-headless.c index da377a74af69..bb94deb568c0 100644 --- a/ui/egl-headless.c +++ b/ui/egl-headless.c @@ -213,3 +213,7 @@ static void register_egl(void) } =20 type_init(register_egl); + +#ifdef CONFIG_OPENGL +module_dep("chardev-spice"); +#endif diff --git a/ui/gtk.c b/ui/gtk.c index 98046f577b9d..0444b3e17171 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -2333,3 +2333,7 @@ static void register_gtk(void) } =20 type_init(register_gtk); + +#ifdef CONFIG_OPENGL +module_dep("chardev-spice"); +#endif diff --git a/ui/sdl2.c b/ui/sdl2.c index a203cb0239e1..24483e6611fd 100644 --- a/ui/sdl2.c +++ b/ui/sdl2.c @@ -918,3 +918,7 @@ static void register_sdl1(void) } =20 type_init(register_sdl1); + +#ifdef CONFIG_OPENGL +module_dep("chardev-spice"); +#endif diff --git a/ui/spice-app.c b/ui/spice-app.c index 4325ac2d9c54..641f4a9d53e3 100644 --- a/ui/spice-app.c +++ b/ui/spice-app.c @@ -221,3 +221,6 @@ static void register_spice_app(void) } =20 type_init(register_spice_app); + +module_dep("ui-spice-core"); +module_dep("chardev-spice"); diff --git a/ui/spice-core.c b/ui/spice-core.c index 272d19b0c152..a78188042578 100644 --- a/ui/spice-core.c +++ b/ui/spice-core.c @@ -1037,3 +1037,7 @@ static void spice_register_config(void) qemu_add_opts(&qemu_spice_opts); } opts_init(spice_register_config); + +#ifdef CONFIG_OPENGL +module_dep("chardev-spice"); +#endif --=20 2.31.1 From nobody Sun May 19 03:28:30 2024 Delivered-To: importer2@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1622625822; cv=none; d=zohomail.com; s=zohoarc; b=mIEN2mHEPFwCpl9L2Q/FHu8mPk9VzxckPWCKtfNgD7e8wpPFR9SIWHuxF7x2p00ofAbVhYNkWS5nI1AQvtcnjWnyOf4e+wFl05X4m36nIDIIsMI1LPNPAHsjOK980od16T+8b06qmwsPOgZEesEIu1aZulyQLP0bo2hEWyVU4Ek= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1622625822; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Sj1Po7tVmKlopcgqBw4EOoHUga5mbhDkJwIGENn43Lo=; b=a6ZlQgeQsRa49SqGYa9FPYE4llAomrLk8DR6dAZdgf0ory+3VpsNEZqkxOfrT9LnNp758ZuGeLx29m+wHeKH1SHCXAOBGykPiQKKa3n5jXYtRRpR+7+Py4m0MdYfKR7YRXvFNnUH65H55HE8SEDbr12VH6WLDCKvXE7rpkWg/xs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1622625822569661.9510354033088; Wed, 2 Jun 2021 02:23:42 -0700 (PDT) Received: from localhost ([::1]:55538 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loN6D-0007HY-HI for importer2@patchew.org; Wed, 02 Jun 2021 05:23:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56074) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loN1Q-0003aK-Mx for qemu-devel@nongnu.org; Wed, 02 Jun 2021 05:18:45 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:35839) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loN1O-0002oG-De for qemu-devel@nongnu.org; Wed, 02 Jun 2021 05:18:44 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-374-2tKLDNNJOXWGHjjLuwtT8A-1; Wed, 02 Jun 2021 05:18:38 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 84F63108BC19; Wed, 2 Jun 2021 09:18:34 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-112-84.ams2.redhat.com [10.36.112.84]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1370968379; Wed, 2 Jun 2021 09:18:33 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 06A7F1800905; Wed, 2 Jun 2021 11:17:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1622625520; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Sj1Po7tVmKlopcgqBw4EOoHUga5mbhDkJwIGENn43Lo=; b=cVlbiHhXjeCQqjb/egoJvHADmV5tv70DmN9HLNG2Lr7NnqMuBWMbHPCi3v/uhqFCF0XHM0 b9+wA6yqlP6R0GrhZABPkCzN98s0iQ138aKw7DnbJiGH4NUgvYC19B6tJKIEyD6lEzOo+d YzTjgZUSWP2soIzRXQD/wdy7bYNzIeg= X-MC-Unique: 2tKLDNNJOXWGHjjLuwtT8A-1 From: Gerd Hoffmann To: qemu-devel@nongnu.org Subject: [PATCH 9/9] s390x module annotations Date: Wed, 2 Jun 2021 11:17:27 +0200 Message-Id: <20210602091727.1023563-10-kraxel@redhat.com> In-Reply-To: <20210602091727.1023563-1-kraxel@redhat.com> References: <20210602091727.1023563-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=kraxel@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -31 X-Spam_score: -3.2 X-Spam_bar: --- X-Spam_report: (-3.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.371, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , berrange@redhat.com, David Hildenbrand , Cornelia Huck , Richard Henderson , armbru@redhat.com, Halil Pasic , Christian Borntraeger , qemu-s390x@nongnu.org, Paolo Bonzini , "Michael S. Tsirkin" , Gerd Hoffmann , Samuel Thibault , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Signed-off-by: Gerd Hoffmann --- hw/s390x/virtio-ccw-gpu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/s390x/virtio-ccw-gpu.c b/hw/s390x/virtio-ccw-gpu.c index 75a9e4bb3908..5868a2a07093 100644 --- a/hw/s390x/virtio-ccw-gpu.c +++ b/hw/s390x/virtio-ccw-gpu.c @@ -59,6 +59,7 @@ static const TypeInfo virtio_ccw_gpu =3D { .instance_init =3D virtio_ccw_gpu_instance_init, .class_init =3D virtio_ccw_gpu_class_init, }; +module_obj(TYPE_VIRTIO_GPU_CCW); =20 static void virtio_ccw_gpu_register(void) { @@ -68,3 +69,5 @@ static void virtio_ccw_gpu_register(void) } =20 type_init(virtio_ccw_gpu_register) + +module_arch("s390x"); --=20 2.31.1