From patchwork Fri May 22 17:24:57 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: 1296405 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=iWyPuSa2; 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 49TD0k4M1Hz9sPK for ; Sat, 23 May 2020 03:25:58 +1000 (AEST) Received: from localhost ([::1]:59888 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcBQh-0003lN-VV for incoming@patchwork.ozlabs.org; Fri, 22 May 2020 13:25:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47508) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcBQ7-0003kO-TE for qemu-devel@nongnu.org; Fri, 22 May 2020 13:25:19 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:25680 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jcBQ6-0001oJ-Ka for qemu-devel@nongnu.org; Fri, 22 May 2020 13:25:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590168317; 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=ce7vwIQ/1ZeC11tqPgLtvrw+eu2OuNpc1sn0JnggcMk=; b=iWyPuSa2Oypk+xULKxM3mDUWVNXaMsM7vxJ2GppjEUe3iOL/MUyab6eipeCjmeOT0/KhkD bm1p1tpvS07L5XL+JbewzvtFz8/HhSZuWsmukBn8hHkrOjDR33ecz3UbpyzWB+VXaigawu iBfLy29kAHLeeXA1UlB3BeAripVexsw= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-410-E1GzkY-cPreADKqSxlnFpQ-1; Fri, 22 May 2020 13:25:15 -0400 X-MC-Unique: E1GzkY-cPreADKqSxlnFpQ-1 Received: by mail-wm1-f70.google.com with SMTP id t23so2914325wmi.2 for ; Fri, 22 May 2020 10:25:15 -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=ce7vwIQ/1ZeC11tqPgLtvrw+eu2OuNpc1sn0JnggcMk=; b=VvT5MOOnqfIyo+fwOiZtvKp3rHAwSwkwWOOeIq6AnFUKAbwVg+kvYyspMlD4AjjCvn L23c9BlXpZ0RDA7HyGNhEE9U0mHt7vYmF6NTEVcX+IyMNd5XV1w7dSCi1mVQPaRyCi1R CcMQBK7uzwuXBe7BXOE/u5ObYVk5gfPRBoXvk7FIkIKz8+8q0XLrfbdLF/mrHzpSHncq 2J9TrR66rig5OkwiRKsn8pPzN3fclT4/79csmM83739mmUF7+5qUR6qxVHQrPDpLSBf5 t2irvgKav+nVJUQ0g8gGtELM3YyNgX5SOB0e1PUDApJdfpyRw7sBmN7L5FrJbYOXz++c i7oA== X-Gm-Message-State: AOAM532c/+JiXAv7jAi3IsITCIJFicPYdToEj37SZ34XyF+3R6XM2ETe xy6HLL5vcxzkMBN0qmcdttNWNk6HXQ9/JA9gJymx/N86Vo40qSTYImzq9mgoSNeUTrRlwMncGrj cVYyspbs+SyrxUpI= X-Received: by 2002:adf:8b47:: with SMTP id v7mr4023288wra.238.1590168313262; Fri, 22 May 2020 10:25:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5AaGrh13hJG8N4Mlym85bdOO8V3LNiw21Bv2sTklQf051BbLKGaJpXa+FDGTS1ecnxj0l4w== X-Received: by 2002:adf:8b47:: with SMTP id v7mr4023266wra.238.1590168313010; Fri, 22 May 2020 10:25:13 -0700 (PDT) Received: from localhost.localdomain (17.red-88-21-202.staticip.rima-tde.net. [88.21.202.17]) by smtp.gmail.com with ESMTPSA id x10sm10422397wrn.54.2020.05.22.10.25.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 May 2020 10:25:12 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v4 00/13] user-mode: Prune build dependencies (part 1) Date: Fri, 22 May 2020 19:24:57 +0200 Message-Id: <20200522172510.25784-1-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Received-SPF: pass client-ip=205.139.110.120; envelope-from=philmd@redhat.com; helo=us-smtp-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/22 10:36:44 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] 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, DKIMWL_WL_HIGH=0.001, 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_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN 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: qemu-riscv@nongnu.org, Eduardo Habkost , Sagar Karandikar , David Hildenbrand , Bastian Koppelmann , Cornelia Huck , qemu-s390x@nongnu.org, Alistair Francis , Paolo Bonzini , Palmer Dabbelt , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Richard Henderson Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.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 (generic): - reduce user-mode object list - remove some migration code from user-mode - remove cpu_get_crash_info() Patches 1-12 are fully reviewed. Since v3: - Rebased due to (trivial) conflicts after: . commit 2df9f5718df7722924699a3754f99165e2f4ae35 ui/win32-kbd-hook: handle AltGr in a hook procedure . commit b69c3c21a5d11075d42100d5cfe0a736593fae6b qdev: Unrealize must not fail . commit d2623129a7dec1d3041ad1221dda1ca49c667532 qom: Drop parameter @errp of object_property_add() & friends - Added patch #13 'Restrict ui/win32-kbd-hook to system-mode' Since v2: - Rebased due to conflict when applying patch: "util/Makefile: Reduce the user-mode object list" because commit 01ef6b9e4e modified util/Makefile.objs: "linux-user: factor out reading of /proc/self/maps" Since v1: - Addressed Laurent/Richard review comments - Removed 'exec: Drop redundant #ifdeffery' - Removed 'target: Restrict write_elfXX_note() handlers to system-mode' $ git backport-diff -u v2 -r v3 Key: [----] : patches are identical [####] : number of functional differences between upstream/downstream patch [down] : patch is downstream-only The flags [FC] indicate (F)unctional and (C)ontextual differences, respectively 001/13:[----] [--] 'Makefile: Only build virtiofsd if system-mode is enabled' 002/13:[----] [--] 'configure: Avoid building TCG when not needed' 003/13:[----] [--] 'tests/Makefile: Only display TCG-related tests when TCG is available' 004/13:[----] [--] 'tests/Makefile: Restrict some softmmu-only tests' 005/13:[----] [--] 'util/Makefile: Reduce the user-mode object list' 006/13:[----] [-C] 'stubs/Makefile: Reduce the user-mode object list' 007/13:[----] [--] 'target/riscv/cpu: Restrict CPU migration to system-mode' 008/13:[----] [--] 'exec: Assert CPU migration is not used on user-only build' 009/13:[----] [--] 'arch_init: Remove unused 'qapi-commands-misc.h' include' 010/13:[----] [-C] 'target/i386: Restrict CpuClass::get_crash_info() to system-mode' 011/13:[----] [-C] 'target/s390x: Restrict CpuClass::get_crash_info() to system-mode' 012/13:[----] [--] 'hw/core: Restrict CpuClass::get_crash_info() to system-mode' 013/13:[down] 'stubs: Restrict ui/win32-kbd-hook to system-mode' Philippe Mathieu-Daudé (13): 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 util/Makefile: Reduce the user-mode object list stubs/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 arch_init: Remove unused 'qapi-commands-misc.h' include 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 stubs: Restrict ui/win32-kbd-hook to system-mode configure | 4 +++ Makefile | 2 +- include/hw/core/cpu.h | 7 ++++- arch_init.c | 1 - exec.c | 4 ++- hw/core/cpu.c | 2 ++ target/i386/cpu.c | 6 ++++- target/riscv/cpu.c | 6 +++-- target/s390x/cpu.c | 12 ++++----- stubs/Makefile.objs | 54 ++++++++++++++++++++++---------------- tests/Makefile.include | 18 +++++++------ util/Makefile.objs | 59 +++++++++++++++++++++++++++--------------- 12 files changed, 109 insertions(+), 66 deletions(-)