From patchwork Fri Mar 13 18:45:58 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: 1254614 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=GiDNwJBr; 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 48fFLB3MCJz9sPF for ; Sat, 14 Mar 2020 05:57:06 +1100 (AEDT) Received: from localhost ([::1]:35642 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCpUW-0000Mn-D6 for incoming@patchwork.ozlabs.org; Fri, 13 Mar 2020 14:57:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35046) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCpK2-0000Dk-L7 for qemu-devel@nongnu.org; Fri, 13 Mar 2020 14:46:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jCpK1-0005rR-Go for qemu-devel@nongnu.org; Fri, 13 Mar 2020 14:46:14 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:54566 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jCpK1-0005rA-Ct for qemu-devel@nongnu.org; Fri, 13 Mar 2020 14:46:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1584125173; 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=b/bZXqUSTVYLQExxJKFDId7JNaoZ8/c1zpMS0JObmi4=; b=GiDNwJBrYkP0xlYI/zPMrWnJYYQ1aYBXdTern7m/0TKzG9Ui2L4/p36ayXYVcz0vKNjDO0 7iyKwgi6bmpEzuEQSSzKNIB78QFsW5KcBDdL1CdZeN9ijjjj0i73drQnhHLXHguLpjKDIE QNaB2lTeSBFfAem5A/84XTHlpb+SY80= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-24-c2vZPNddNAersb04xTGHoQ-1; Fri, 13 Mar 2020 14:46:11 -0400 X-MC-Unique: c2vZPNddNAersb04xTGHoQ-1 Received: by mail-wr1-f70.google.com with SMTP id q18so4716266wrw.5 for ; Fri, 13 Mar 2020 11:46:10 -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=oMNFQeNumH/3LQXuQx2Xr87E8EKP5lYopTvY6ST+mqg=; b=XubfAgYTyLNtC2s7NKLvgG6XRp+dUM5vU8yhIz2AjJNa54Ywu+Qs9Jj23/LbKo9Lqt nVyxsjjUUkmiUUfNbVPBT8Ba/kDX4psoEc2Zd84/f6nl6iW536rBsRydycKRgmUBKRZk wA00HBUT92QLD4KY3k2XRcY/ABgCX4eF39vGFOzc0vCZ9usfdXP+YulPClBgnKACSL08 zh3KWoQsmLFpSbkTFYLRRChipaeqFaePGv03GlXeTR4D/v/VNrijMyneatkco8teAi/Y K5l3aJk25VE1RD1AZDWocYZa+dTsa6cXO42s9BgqCkwgepcaL2UhMe86O5qxzwPZP/09 hOXg== X-Gm-Message-State: ANhLgQ2r47uBiXg++Qbzh4PogjwrvjOy08o52zjwVqcSA2Wy/UoMQyFR awj41nptM7QVcDPqxQnZA9G5Z7znyrKBvVTCFHizERVfzhbdQxffdf8rn7kQzTClnQOrOCRBiZQ +dlDhGzoQ6za7KqQ= X-Received: by 2002:a1c:1b0e:: with SMTP id b14mr12065518wmb.8.1584125169589; Fri, 13 Mar 2020 11:46:09 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvYZlGh/CPYA64HNoPlEsirsLUvo1Ts4p61sc7fV/iPYctgQUdUfe9j5X8Aww3JfimljcUXWg== X-Received: by 2002:a1c:1b0e:: with SMTP id b14mr12065501wmb.8.1584125169412; Fri, 13 Mar 2020 11:46:09 -0700 (PDT) Received: from x1w.redhat.com (47.red-88-21-205.staticip.rima-tde.net. [88.21.205.47]) by smtp.gmail.com with ESMTPSA id x5sm19380305wrv.67.2020.03.13.11.46.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Mar 2020 11:46:08 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 0/9] user-mode: Prune build dependencies (part 3) Date: Fri, 13 Mar 2020 19:45:58 +0100 Message-Id: <20200313184607.11792-1-philmd@redhat.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 205.139.110.120 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: =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Eduardo Habkost , Markus Armbruster , Laurent Vivier , Michael Roth , Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?b?w6k=?= Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" This is the second 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 Based-on: <20200313184153.11275-1-philmd@redhat.com> Philippe Mathieu-Daudé (9): 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 qapi: Restrict code generated for user-mode hw/core/qdev-prop-internal.h | 28 ++ include/hw/qdev-properties.h | 1 + hw/core/qdev-properties-system.c | 602 ++++++++++++++++++++++++++++- hw/core/qdev-properties.c | 643 ++----------------------------- hw/core/qdev-stubs.c | 20 + hw/core/Makefile.objs | 1 + qapi/Makefile.objs | 37 +- 7 files changed, 712 insertions(+), 620 deletions(-) create mode 100644 hw/core/qdev-prop-internal.h create mode 100644 hw/core/qdev-stubs.c