From patchwork Wed Sep 30 16:49:38 2020 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: 1374554 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: 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: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=fZyp4tmZ; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4C1j2g2hvBz9sSf for ; Thu, 1 Oct 2020 02:51:39 +1000 (AEST) Received: from localhost ([::1]:32898 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNfKL-0006Q5-C5 for incoming@patchwork.ozlabs.org; Wed, 30 Sep 2020 12:51:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNfIn-0006Ay-IN for qemu-devel@nongnu.org; Wed, 30 Sep 2020 12:50:01 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:32285) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1kNfIk-00071c-Kc for qemu-devel@nongnu.org; Wed, 30 Sep 2020 12:50:01 -0400 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1601484597; 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; bh=b1HyB2KK3+Hgk5NDh7O4u9fRV2lqO+HMfFVi9/M3yBY=; b=fZyp4tmZmna/NzsKUT/o1ZvV/P903Q3vCJFfD+7zbMSTXP9/lDE0BhKWd0aAkoxwGrUo70 T1g82z1b8CHXZ8H3FDtUFl03eJ72YMae+NpzlfzsHiIRSJK4952zpYSKJhW8GX5IKSCjG+ so55snygVt58i4sU7YgUiyQ+9lPdqnE= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-391-Pj7kFtaUPlygClNRYd-Leg-1; Wed, 30 Sep 2020 12:49:53 -0400 X-MC-Unique: Pj7kFtaUPlygClNRYd-Leg-1 Received: by mail-wr1-f72.google.com with SMTP id l17so818448wrw.11 for ; Wed, 30 Sep 2020 09:49:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=b1HyB2KK3+Hgk5NDh7O4u9fRV2lqO+HMfFVi9/M3yBY=; b=p+e5uGJUHfFwZfKUx6oPunD1jBOno+RnEfoeVnCj/kgQJGQF+C4B0kdYMA45wzSali OwngFRbQkwF4/a2d7/frIW3jy8ooyGpoplMWDHGms7k/CdLug/J/8kQBhXov25OnkDgr G4ugPapvCuWSfyDIcwzcoYX28WiIiOCcsjRGBijl49iE4M0EEqgRX5gPNtRuHevAhhZ7 6HKHndFR5OjQbrCgAFwfwLyFf4s5Y8QmXgJy8d90VVoQ9VJ21th05nfSYqi7BS/zIZTo 0wLqIUCNXcIoJTrg/xjCzpHqn2avKDOL6fA6VBtRqUWKdX+wk3wipnGk4AdgT3DIIgvm 8ztg== X-Gm-Message-State: AOAM533sgj7g2WvYEdk/jD1Purk0qA+5ZQ1uB8qVG9ILoHGEpwHCu1Fi wQI12WYSHrgfuHaKhOvB9vhtyBkisXlcTE5s6PsAMqcXN6tAD0x5pxl+MURqJgy3Z9AIAH4liS6 /EEYxejXt+igxvtI= X-Received: by 2002:a1c:9ec1:: with SMTP id h184mr4077157wme.180.1601484591678; Wed, 30 Sep 2020 09:49:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJws4yXiBftNY1MotbrdEqlY4y1OKFoU70TCqYv7Mh9NBUhzDqqTfTT4xW/l57v6ogm2AjWMFg== X-Received: by 2002:a1c:9ec1:: with SMTP id h184mr4077125wme.180.1601484591473; Wed, 30 Sep 2020 09:49:51 -0700 (PDT) Received: from x1w.redhat.com (74.red-83-53-161.dynamicip.rima-tde.net. [83.53.161.74]) by smtp.gmail.com with ESMTPSA id g8sm3650302wmd.12.2020.09.30.09.49.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Sep 2020 09:49:50 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org, Laurent Vivier Subject: [PATCH v3 00/11] user-mode: Prune build dependencies (part 3) Date: Wed, 30 Sep 2020 18:49:38 +0200 Message-Id: <20200930164949.1425294-1-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Received-SPF: pass client-ip=216.205.24.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/30 00:26:33 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.469, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=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: Kevin Wolf , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Ronnie Sahlberg , qemu-block@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Peter Lieven , Michael Roth , Eduardo Habkost , Markus Armbruster , Paolo Bonzini , Max Reitz , Richard Henderson Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" This is the third part of a series reducing user-mode dependencies. By stripping out unused code, the build and testing time is reduced (as is space used by objects). Part 3: - Extract code not related to user-mode from hw/core/qdev-properties.c - Reduce user-mode QAPI generated files Since v2: - Fixed UuidInfo placed in incorrect json - Rebased on Meson - Include X86CPUFeatureWord unmerged from part 2 Since v1: - Addressed Richard and Paolo review comments Patches missing review: QAPI ones :) - #1 'qapi: Restrict query-uuid command to block code' - #11 'qapi: Restrict code generated for user-mode' Green CI: https://gitlab.com/philmd/qemu/-/pipelines/196505787 v2: https://www.mail-archive.com/qemu-devel@nongnu.org/msg688879.html v1: https://www.mail-archive.com/qemu-devel@nongnu.org/msg688486.html Philippe Mathieu-Daudé (11): qapi: Restrict query-uuid command to block code hw/core/qdev-properties: Use qemu_strtol() in set_mac() handler hw/core/qdev-properties: Use qemu_strtoul() in set_pci_host_devaddr() hw/core/qdev-properties: Fix code style hw/core/qdev-properties: Export enum-related functions hw/core/qdev-properties: Export qdev_prop_enum hw/core/qdev-properties: Export some integer-related functions hw/core/qdev-properties: Extract system-mode specific properties hw/core: Add qdev stub for user-mode target/i386: Restrict X86CPUFeatureWord to X86 targets qapi: Restrict code generated for user-mode qapi/block.json | 30 ++ qapi/machine-target.json | 45 ++ qapi/machine.json | 72 --- hw/core/qdev-prop-internal.h | 30 ++ include/hw/qdev-properties.h | 1 + block/iscsi.c | 2 +- hw/core/qdev-properties-system.c | 687 ++++++++++++++++++++++++++++- hw/core/qdev-properties.c | 735 ++----------------------------- stubs/qdev-system.c | 24 + stubs/uuid.c | 2 +- target/i386/cpu.c | 2 +- target/i386/feature-stub.c | 23 + qapi/meson.build | 51 ++- stubs/meson.build | 5 +- target/i386/meson.build | 1 + 15 files changed, 915 insertions(+), 795 deletions(-) create mode 100644 hw/core/qdev-prop-internal.h create mode 100644 stubs/qdev-system.c create mode 100644 target/i386/feature-stub.c