From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E0EDC433E0 for ; Fri, 22 May 2020 17:26:40 +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 F1AC1206C3 for ; Fri, 22 May 2020 17:26:39 +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="iWyPuSa2" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F1AC1206C3 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+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:35506 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcBRP-0006Mp-3l for qemu-devel@archiver.kernel.org; Fri, 22 May 2020 13:26:39 -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=20Mathieu-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 Content-Type: text/plain; charset=UTF-8; text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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=20Mathieu-Daud=C3=A9?= , Richard Henderson Errors-To: qemu-devel-bounces+qemu-devel=archiver.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 (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(-) -- 2.21.3 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jcBQD-0003rR-Id for mharc-qemu-riscv@gnu.org; Fri, 22 May 2020 13:25:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47522) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcBQB-0003nq-CQ for qemu-riscv@nongnu.org; Fri, 22 May 2020 13:25:23 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:41060 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 1jcBQA-0001ql-Bz for qemu-riscv@nongnu.org; Fri, 22 May 2020 13:25:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590168320; 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=f5Oukqh9/kzUCKUfEGvFiaaEawPwybGTwjpClMjhCcaDrYx+euBOk2yhVqg431J1qLVSY/ WdMt068OyEemj2YU4XiCHudHJhD6aPe+Nt1QScwH9DuRmrIxhmANOBPFOyTM/vd0IPWE5h V2IyGbPtA6oQFSiuPS2dKTWfgcH8D90= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-484-H5EwZ0ycNf6MV5B1GGZbsw-1; Fri, 22 May 2020 13:25:16 -0400 X-MC-Unique: H5EwZ0ycNf6MV5B1GGZbsw-1 Received: by mail-wm1-f71.google.com with SMTP id t82so2914432wmf.4 for ; Fri, 22 May 2020 10:25:16 -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=C5T7eAZOLjOwGgUhZkQ678P+EpEyc8X2f5NK5o8YeAeuVidIpfRDfaF7PPKKwV8tF1 SpJDBllkbQ5+iSqVY8+aWsp+mIXHx5mDQ9XM9XUNVRXMa8ONfXQqJlLBgBRNzD/2096B mHwTfTCdK0Jmu13ff/pg1YaiwKxEp15k+emEY1HyoAKCU12U2McTKXVA0en972OWKS0C PLrEeZicN2v+DxkUEjrLeSG9c3yAMNgjGumUkVOCvtGiEMGjAjt1/HE6us3sQSYMSFqi MAaqzVhL5KMEAKYTx2QKG5xUUvCpubckY3v8Er+HTichu3qX6qac6MS5tnvdqsWtq04C NC1g== X-Gm-Message-State: AOAM5320g7EyW6xDRUBWGg4ArpTN8U5K2RaJKLHGaGYZehXpWLp4JsIj PmZJFT8pyOJWlhVNhWHoBveeIZKeeqvsk4kOAksLAjsVMM3L6pvJJc6ZRFSqBaRHrd11w3wpCg4 FpRalm6l3NJh2ZO0= X-Received: by 2002:adf:8b47:: with SMTP id v7mr4023293wra.238.1590168313371; 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=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Cornelia Huck , Marcel Apfelbaum , Palmer Dabbelt , David Hildenbrand , Alistair Francis , Paolo Bonzini , Richard Henderson , Eduardo Habkost , Bastian Koppelmann , Sagar Karandikar , qemu-s390x@nongnu.org, qemu-riscv@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= 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 Content-Type: text/plain; charset=UTF-8; text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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-riscv@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 May 2020 17:25:23 -0000 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(-) -- 2.21.3