From patchwork Fri Mar 13 18:36: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: 11437579 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D3F3E913 for ; Fri, 13 Mar 2020 18:37:57 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id ABDBC20749 for ; Fri, 13 Mar 2020 18:37:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="UUbhixuf" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ABDBC20749 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:35098 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCpC0-00018d-Qr for patchwork-qemu-devel@patchwork.kernel.org; Fri, 13 Mar 2020 14:37:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53070) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCpB8-0007dd-0A for qemu-devel@nongnu.org; Fri, 13 Mar 2020 14:37:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jCpB6-0002FU-UB for qemu-devel@nongnu.org; Fri, 13 Mar 2020 14:37:01 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:46089 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jCpB6-0002E0-Qc for qemu-devel@nongnu.org; Fri, 13 Mar 2020 14:37:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1584124620; 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=LlpMWUrtmzUqdAEMSyBsmvOkuEwO+0Reg5YUJ16z+Cc=; b=UUbhixufxUESgXn2O7fHUgevqCdovQrqFU9pooIXot6NXYHesJxgpBZ6goLQkNMFDeo+BS fnjr9SgFk3P0Hf5vOkppyyyls/18OxAFWoNMd+fjmeqtMz9+EImHKRJtWC6gIoNA825MQE sZzXKEzYphMafzzGM1/YkpaHArj/ejQ= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-483-6WYAFVE_N42RpWLN0TQthw-1; Fri, 13 Mar 2020 14:36:57 -0400 X-MC-Unique: 6WYAFVE_N42RpWLN0TQthw-1 Received: by mail-wm1-f69.google.com with SMTP id i16so3776061wmd.9 for ; Fri, 13 Mar 2020 11:36:56 -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=tT9l7cduJOEnaW27bPqDaHoIXT0dr05sJq/BTyFEpNQ=; b=d9WKA7dovIMgwxmpkDY47BThO/7roysKxHOl1JASg0FNk7RXJ4s7ZBPAVjVJDuXelJ CiWrNVavrdSU8LnN4jBF8ytjMG6jblbthmxPdLKhw6vA58+3d5POFhXy9smFBtFIGUUL 1CnZpIT1fJ7PPJViH/St2OGM6uyTf8jNNwFQmAlk93+kk86+s5ydT7CaM5W/gXEV0AuY O351vg94OJwt1suW6h1a3UwnkkLll/0Nag2uMbvK5UlQ81mRoW9XSTYvrm2VjZs3KyuQ 6PQ0SfQIen6NRDcWNWzZMJr1YETnrR4zKrBc6szulV81/b0C97UsXCaO53udiaybtqMy NEyw== X-Gm-Message-State: ANhLgQ0GRot/rf92XMJHhl5y00NNXuvwY1ML6OpUs1iiWWaGZgGlyiqC rxDtqcJNWon3v9RZveHmhS2IRUpzR1R4ivsB1prHSXxzgjgrndUY8h0095So5QAVkxDmKnbn5YU zXpOyDAqEXd6CjDk= X-Received: by 2002:adf:e883:: with SMTP id d3mr18744594wrm.75.1584124615568; Fri, 13 Mar 2020 11:36:55 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt9mytHYo/pSWgoSKjkVW0PoSDhZoUUt6iMQk5TCvXjj6f09M3be890BT+eyPIlV2DYV8WIKA== X-Received: by 2002:adf:e883:: with SMTP id d3mr18744553wrm.75.1584124615257; Fri, 13 Mar 2020 11:36:55 -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 l7sm9367538wrw.33.2020.03.13.11.36.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Mar 2020 11:36:54 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 00/14] user-mode: Prune build dependencies (part 1) Date: Fri, 13 Mar 2020 19:36:38 +0100 Message-Id: <20200313183652.10258-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] [fuzzy] X-Received-From: 207.211.31.81 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: Peter Maydell , qemu-riscv@nongnu.org, Eduardo Habkost , Sagar Karandikar , David Hildenbrand , Bastian Koppelmann , Cornelia Huck , Laurent Vivier , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , qemu-s390x@nongnu.org, qemu-arm@nongnu.org, qemu-ppc@nongnu.org, Paolo Bonzini , Alistair Francis , David Gibson , =?utf-8?q?Alex_Benn=C3=A9e?= , Palmer Dabbelt , Richard Henderson Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" This is the first 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 1: - reduce user-mode object list - remove some migration code from user-mode - remove cpu_get_crash_info() Philippe Mathieu-Daudé (14): Makefile: Only build virtiofsd if system-mode is enabled configure: Avoid building TCG when not needed tests/Makefile: Only display TCG-related tests when TCG is available tests/Makefile: Restrict some softmmu-only tests stubs/Makefile: Reduce the user-mode object list util/Makefile: Reduce the user-mode object list target/riscv/cpu: Restrict CPU migration to system-mode exec: Assert CPU migration is not used on user-only build exec: Drop redundant #ifdeffery arch_init: Remove unused 'qapi-commands-misc.h' include target: Restrict write_elfXX_note() handlers to system-mode target/i386: Restrict CpuClass::get_crash_info() to system-mode target/s390x: Restrict CpuClass::get_crash_info() to system-mode hw/core: Restrict CpuClass::get_crash_info() to system-mode configure | 4 +++ Makefile | 4 +-- include/hw/core/cpu.h | 7 +++- target/arm/cpu.h | 10 +++--- target/i386/cpu.h | 18 +++++----- target/ppc/cpu.h | 2 -- target/s390x/internal.h | 3 +- arch_init.c | 1 - exec.c | 8 ++--- hw/core/cpu.c | 2 ++ target/i386/cpu.c | 6 +++- target/ppc/translate_init.inc.c | 2 -- target/riscv/cpu.c | 6 ++-- target/s390x/cpu.c | 12 +++---- stubs/Makefile.objs | 52 +++++++++++++++++------------ tests/Makefile.include | 18 +++++----- util/Makefile.objs | 59 +++++++++++++++++++++------------ 17 files changed, 125 insertions(+), 89 deletions(-)