From nobody Fri Apr 26 01:07:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1590168406; cv=none; d=zohomail.com; s=zohoarc; b=B2hdYUF4P+qS8MpZAm5HuDg1iVSytXFnGNclMYgaDKJ2cxTVSAeQnPMokDgcAmkhfJFVm1gahavLeAn0lFujVO7NNZidLyc9ByCewvq0k9u5nzEInPAzEOmj7vvo6++Ci0Y3EIHwIm9KuhxEZh5wZzjTVpSQqcrDS0sDYxRADNM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1590168406; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=CL2hEmRqA1LEXMFCszT8EAy5Qc2losjLa/A+thU98aw=; b=WDWj9kAf37MV5o641x8ZgV7zxCdWeYoH4oeWeVkdVF7GBYa2C55BVuAB+vf/1Clj+JXPl6ScWm/i1kBR9+j1qqG3lB3L5Ef7HL9fjQQFkviDPaQTsZPHN+RyasMKkgB6ARpQhVjArutnVYziBrWvoe2L8l1U7W3MiY1XtS8o6GQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1590168406874576.3940489736622; Fri, 22 May 2020 10:26:46 -0700 (PDT) Received: from localhost ([::1]:35868 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcBRV-0006WL-Cg for importer@patchew.org; Fri, 22 May 2020 13:26:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47518) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcBQA-0003mT-9i for qemu-devel@nongnu.org; Fri, 22 May 2020 13:25:22 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:38665 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 1jcBQ9-0001qj-FP for qemu-devel@nongnu.org; Fri, 22 May 2020 13:25:21 -0400 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-306-pm1b4tmQNrqwJlqucESnbw-1; Fri, 22 May 2020 13:25:19 -0400 Received: by mail-wr1-f70.google.com with SMTP id p8so4654447wrj.5 for ; Fri, 22 May 2020 10:25:19 -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 r14sm15207666wmb.2.2020.05.22.10.25.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 May 2020 10:25:17 -0700 (PDT) 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: in-reply-to:in-reply-to:references:references; bh=CL2hEmRqA1LEXMFCszT8EAy5Qc2losjLa/A+thU98aw=; b=cdZi+SW7Q0HtRqXAu/rOYRAIqG7yBuubRuXuajj0maXpsNrmPg1UuY+whfg+awTJcAwyUs QNRPjY0Oi2/BQReRNXSK7ZWrO2xwW1odQp+DGxgGVtE3BsHbWtEo1wL/egqjZ5CuutYxS5 gOv0F/x3aFd1kg1/rfKI10mEQPAVolQ= X-MC-Unique: pm1b4tmQNrqwJlqucESnbw-1 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=CL2hEmRqA1LEXMFCszT8EAy5Qc2losjLa/A+thU98aw=; b=LlqyWcvp5AuQ0x3xKmsWRmXg31DLGP1EPth5Yo3fP8437DqDw+B0qSKkw0Frm6tHxs gJwaahVc9+AYWEYGhqHqMiFQknB6xxGbyy+i96z0K1AsjET49adCHY1u0H0JQuniFGxb +fSnuFATjLH5fbFPtGEtwmgDN0kiVvHeeUWI6v0zT46k25OOAwfs06azBKTXpI+fK7EZ 0AZnX9euuhW7ERqi5tYFKnLFyHe06c5TNYQPA8g85QYZvXuJxs2HXhqw98etdwluwDj6 AT6pg2EmEi2MXJlebW5hf55ZJjfsrfvfexlrCQGmURjsFVL4pIslXNWdusm+PZpsUtt2 Ls9w== X-Gm-Message-State: AOAM531MdLdhyrMN+4PdzWOtSM68qZrs5p+GneiGn532yyCJ2ha5IwMp Wu6UQd3h/H6ddj1JbVEQL0tViXsXOKxsjKb7209ozrQWWjxUtafPkHiFC1Ss60SJGmS7jDe1jMj Lq+Y7lybtepQNQhk= X-Received: by 2002:a7b:c76e:: with SMTP id x14mr14836578wmk.66.1590168317947; Fri, 22 May 2020 10:25:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/BUFYlRbNPUDqgC+Yy5PUJkeU3Fa9faWNYMcRwVTmifznNcN7+AUHGEY657btc7LHWYPvdg== X-Received: by 2002:a7b:c76e:: with SMTP id x14mr14836558wmk.66.1590168317806; Fri, 22 May 2020 10:25:17 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v4 01/13] Makefile: Only build virtiofsd if system-mode is enabled Date: Fri, 22 May 2020 19:24:58 +0200 Message-Id: <20200522172510.25784-2-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200522172510.25784-1-philmd@redhat.com> References: <20200522172510.25784-1-philmd@redhat.com> 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: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; 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, URIBL_BLOCKED=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 , Richard Henderson , "Dr . David Alan Gilbert" , Laurent Vivier , 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Do not build the virtiofsd helper when configured with --disable-system. Reviewed-by: Richard Henderson Acked-by: Dr. David Alan Gilbert Reviewed-by: Laurent Vivier Tested-by: Laurent Vivier Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 40e4f7677b..d1af126ea1 100644 --- a/Makefile +++ b/Makefile @@ -345,7 +345,7 @@ HELPERS-y +=3D vhost-user-gpu$(EXESUF) vhost-user-json-y +=3D contrib/vhost-user-gpu/50-qemu-gpu.json endif =20 -ifeq ($(CONFIG_LINUX)$(CONFIG_SECCOMP)$(CONFIG_LIBCAP_NG),yyy) +ifeq ($(CONFIG_SOFTMMU)$(CONFIG_LINUX)$(CONFIG_SECCOMP)$(CONFIG_LIBCAP_NG)= ,yyyy) HELPERS-y +=3D virtiofsd$(EXESUF) vhost-user-json-y +=3D tools/virtiofsd/50-qemu-virtiofsd.json endif --=20 2.21.3 From nobody Fri Apr 26 01:07:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1590168509; cv=none; d=zohomail.com; s=zohoarc; b=FzuoL3oaKVWm9e47PQbEbjensPpTf/RTmeZ9erHTB1ZUMW7ecrUdpfhrwtbgTve3unvQxvzRHAQYR6e6AnaS++CRFp7FrbtilqBgARhjCwqkDdCeHQob9YFVE9hy0Kx7qhswBZnPNIxiyP4+5SsJwyxRbWeIvb7xxqutf+H1Yc8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1590168509; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=jgZlGUY22rV8RWoGEVzXdsh/Q/2FAX4GHFlUmso+7+4=; b=TJfX2oSeW90+oKdPa4990antdMcBy0EEOEQ2hipiSZgyFkBlrEM3TsLg9A8Zj5AWwwe9fthFIAxZr5OinYFJwC5pITHBrxrbf4//Xp3/tIsOIqvojRyzklU/gq/I7PbbMrs/Zuzz/m3xQWp8ExcQ0ePaXS5No8McA3GmkJjGGxM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1590168509426227.41264522861002; Fri, 22 May 2020 10:28:29 -0700 (PDT) Received: from localhost ([::1]:44432 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcBTA-0001WR-8a for importer@patchew.org; Fri, 22 May 2020 13:28:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47538) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcBQF-0003xU-PB for qemu-devel@nongnu.org; Fri, 22 May 2020 13:25:27 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:60659 helo=us-smtp-delivery-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 1jcBQE-0001rV-JZ for qemu-devel@nongnu.org; Fri, 22 May 2020 13:25:27 -0400 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-230-hK6HwuHFNlOshJNvHT0yYA-1; Fri, 22 May 2020 13:25:24 -0400 Received: by mail-wr1-f72.google.com with SMTP id e1so2165856wrm.3 for ; Fri, 22 May 2020 10:25:24 -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 b12sm10559661wmj.0.2020.05.22.10.25.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 May 2020 10:25:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590168325; 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: in-reply-to:in-reply-to:references:references; bh=jgZlGUY22rV8RWoGEVzXdsh/Q/2FAX4GHFlUmso+7+4=; b=DZLnaO/TZwJ4A7LvYWgkEANXUTysU8yZmgtlZv8wRLlEhU6egs0q/aJ0uKBR4u9ll4U7Xb WhTmD3QNwHffLKT5/OfOmMyGnDbk5dFKCvk7Us5aY/+172PKWaKHTFvp3AUW/tD2j8g7/g JS03ETLcExk1DRHCyN1UZcEut42cGqg= X-MC-Unique: hK6HwuHFNlOshJNvHT0yYA-1 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=jgZlGUY22rV8RWoGEVzXdsh/Q/2FAX4GHFlUmso+7+4=; b=l7ZTyEfYtEU4vRz/N9WMRgdVJNwJtlN7W618rm5rczsP3S7xmLDzuryX+bD0ly1Uo3 P5eM73EDTSjUp55VnTt+64ZyzQKPSmWSZZk+WwijQ6gCq7kIJ+ZGpXECHzW2TzpHDuyW HcPazuCO2szzEUxVAkJkQS5vDUkDD+Mja1qvAIWNj8xnhreugXrIO3xhgCvbKW9N7LHg qqdkNu2naQZ2w40InxY/99C5MsIL7UPQi8eDTCS4j51UO/xGduvtwYxAMOL7PK2ajU6B /3EkSTno/A5h7mg32O5iGr7m9MU5Opt1mrcDZOWpBCBsNx36FDW3EzaX6/u54td9Kl9y Au/w== X-Gm-Message-State: AOAM531Ic3eiYcZPjmhWZrXGQ3BUoke0UsrnzM1Z/T3+4Oj50LQoH0gi sWeGjlNw25tHSfsrzmGRq43Gm7e5jioW1u1XZe1nkSID2/PYgh+FioBrv5o5ec3wlwy9BqiHBlZ tJ4+eOz0dg8D3las= X-Received: by 2002:adf:f6c4:: with SMTP id y4mr4563979wrp.81.1590168322922; Fri, 22 May 2020 10:25:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+6a07xH61ez0EqUOI1p9j5aofX1C1m/qY1s4oS5CeugnNzbl2ty/XQ88gT5/sRF2lb+/2Zg== X-Received: by 2002:adf:f6c4:: with SMTP id y4mr4563964wrp.81.1590168322779; Fri, 22 May 2020 10:25:22 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v4 02/13] configure: Avoid building TCG when not needed Date: Fri, 22 May 2020 19:24:59 +0200 Message-Id: <20200522172510.25784-3-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200522172510.25784-1-philmd@redhat.com> References: <20200522172510.25784-1-philmd@redhat.com> 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: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=205.139.110.61; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/22 11:11:51 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_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 , Richard Henderson , Laurent Vivier , 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Avoid building TCG when building only tools: ./configure --enable-tools --disable-system --disable-user This saves us from running the soft-float tests enabled since commit 76170102508. Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis Reviewed-by: Laurent Vivier Tested-by: Laurent Vivier Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- configure | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure b/configure index 2fc05c4465..35e7951b95 100755 --- a/configure +++ b/configure @@ -1663,6 +1663,10 @@ if [ "$ARCH" =3D "unknown" ]; then linux_user=3D"no" fi =20 +if [ "$bsd_user" =3D "no" -a "$linux_user" =3D "no" -a "$softmmu" =3D "no"= ] ; then + tcg=3D"no" +fi + default_target_list=3D"" =20 mak_wilds=3D"" --=20 2.21.3 From nobody Fri Apr 26 01:07:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1590168413; cv=none; d=zohomail.com; s=zohoarc; b=gHrCy7ORncEt66Dp6T9CgBPzcUfRjDo7QuztRemU+3M/0aPZUCuRlKE0y/EuNAwNsFr9nBsyWOjljV4GeCsj7OskMzQt4iDvy9ciMVQDou/TtpGofcB4s8N/uK7xu01vO8eHr17tJtI8xVcH1gQ6tju5L9oWkEShRAxX6et+aoQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1590168413; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=pzIXUjmQFMXKkBqElREelsSBtwnLlPTjL7FgZWSFFRo=; b=YNKCOfj8ARmtGCWiOKhuFSCuJah2oXafesy8moUb0rWrOtmZsFKulMMkzVZItJRGwD1APksq5XGIgzqmfJ2yOU20NJa14ROuw1yLxrCLn0YmLYCpwwBDW4vN71o+nDr3c4gXm8sJW+MRK049S/QAqAuX/eEH9zEu+XCh98KIOdQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 159016841340558.29174743462136; Fri, 22 May 2020 10:26:53 -0700 (PDT) Received: from localhost ([::1]:36628 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcBRc-0006oz-4U for importer@patchew.org; Fri, 22 May 2020 13:26:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47568) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcBQL-00044F-Mk for qemu-devel@nongnu.org; Fri, 22 May 2020 13:25:34 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:23053 helo=us-smtp-delivery-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 1jcBQJ-0001tc-3G for qemu-devel@nongnu.org; Fri, 22 May 2020 13:25:33 -0400 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-340-RmGrtnTeOCWl4_MkQK6knQ-1; Fri, 22 May 2020 13:25:29 -0400 Received: by mail-wm1-f70.google.com with SMTP id l2so4412920wmi.2 for ; Fri, 22 May 2020 10:25:28 -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 m3sm9950762wrn.96.2020.05.22.10.25.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 May 2020 10:25:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590168330; 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: in-reply-to:in-reply-to:references:references; bh=pzIXUjmQFMXKkBqElREelsSBtwnLlPTjL7FgZWSFFRo=; b=b+VJ+Vhpaqltx7qQLy8TkBH1NR9dIuXvnIEJmnhVQ4XbgoQFTIh/YGuoiQR56VIko0rBww ZuckFjirCF89aleCClQFhUzf4in4YAPD9eupB3oZINvEHXell7DUKOizLDZ8CBsFmzCe2c xxNJULB8nd+jCiKTE4wnLCtupY5sNLs= X-MC-Unique: RmGrtnTeOCWl4_MkQK6knQ-1 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=pzIXUjmQFMXKkBqElREelsSBtwnLlPTjL7FgZWSFFRo=; b=ZGUPLFllLEMirQxPqtadsgmn3ENr7prSEgKZifAuapt6L+86JOEsFWBCn6H6X0eU02 CyanGoaexXdkPvwA6duKAYxysMHKIWMGUCwUN11vnWV/d/fHjVPYke/hK/aBJnwDTkYY nm0kOVdxyM77aA8eYKlKy3owb7NaVAx0RWkyGj8/BVfuEaAsrwPGHSPYKaHpXYkeFdgp baYhed8Hlag7o9P6x6Oud7yIozQ517SLet0nGCfud9Qc2aYuOJavsU7bo0zzYu94NK0O dclCDbShjgHwxuGo7S3kYkfI7kIHtrpMn5w77zNZh5o+0dpKklJMBHgq+JSr5OfmcgCG ms0A== X-Gm-Message-State: AOAM531nbbHJUczql1ma+yrXp9hAw5yFFnK1YQydeOolmjDny+khQltl cCcqSZz5fIBNjlHniwbUwZR5stYpMJLM9ev5cRrexcihmPpN+BlyzcJE3A84STAj+G49FBs5420 Tlv3rikVd18c2xQY= X-Received: by 2002:a7b:c40f:: with SMTP id k15mr15191563wmi.65.1590168327640; Fri, 22 May 2020 10:25:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFUMOXMRJNi03qmgZVgVUBNZc61FlTSbPs4N95RyygaMEs2jp8mbjr97TSoPRdKs+JzJXZLA== X-Received: by 2002:a7b:c40f:: with SMTP id k15mr15191544wmi.65.1590168327492; Fri, 22 May 2020 10:25:27 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v4 03/13] tests/Makefile: Only display TCG-related tests when TCG is available Date: Fri, 22 May 2020 19:25:00 +0200 Message-Id: <20200522172510.25784-4-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200522172510.25784-1-philmd@redhat.com> References: <20200522172510.25784-1-philmd@redhat.com> 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: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=205.139.110.61; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/22 11:11:51 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_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 , Richard Henderson , Laurent Vivier , 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Reviewed-by: Alistair Francis Reviewed-by: Richard Henderson Reviewed-by: Laurent Vivier Tested-by: Laurent Vivier Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- tests/Makefile.include | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/Makefile.include b/tests/Makefile.include index 03a74b60f6..6bc3d1096b 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -12,8 +12,10 @@ check-help: @echo " $(MAKE) check-speed Run qobject speed tests" @echo " $(MAKE) check-qapi-schema Run QAPI schema tests" @echo " $(MAKE) check-block Run block tests" +ifeq ($(CONFIG_TCG),y) @echo " $(MAKE) check-tcg Run TCG tests" @echo " $(MAKE) check-softfloat Run FPU emulation tests" +endif @echo " $(MAKE) check-acceptance Run all acceptance (functional) test= s" @echo @echo " $(MAKE) check-report.tap Generates an aggregated TAP test rep= ort" --=20 2.21.3 From nobody Fri Apr 26 01:07:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1590168418; cv=none; d=zohomail.com; s=zohoarc; b=ONpc65pLcOeDc5GaZw0jrCE0Awnhnd2CCWZVA6UwT+SwvLoh2wxJ9Y3Wjnpydd6gsElJkY38p0ErCQNEDlcFG2BPCUfSwxioOAIJlIxj20PVyOmDBOwM4Z3ksgCv0AOBu07zWBuQkhhLxT2XNreEs9/fUkENZVLLdF0hQ7N8BUw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1590168418; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=/zVv0NlCMOK9FHuZTBuePmIxIrGLXBKKurLXnwxcUO4=; b=hRE1RSvfHttpNiUAZUNTcb83lIaeiLZnTYby2IgFBRjDMfGq3BV6MEKbM+yylqi83isDAY/N4NvqEhx4yX7kRRiKNrZt3IyVU6CNUBDLf5uCxNL/QNipWIHCMLM9vihmrlDph76voeXmBWoztMkiTkeZOz/2zdNt2oUDgi4xVSo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1590168418740703.2348816522685; Fri, 22 May 2020 10:26:58 -0700 (PDT) Received: from localhost ([::1]:37236 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcBRh-00073f-Gb for importer@patchew.org; Fri, 22 May 2020 13:26:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47612) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcBQR-0004Id-Pe for qemu-devel@nongnu.org; Fri, 22 May 2020 13:25:40 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:27848 helo=us-smtp-delivery-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 1jcBQQ-0001we-Bi for qemu-devel@nongnu.org; Fri, 22 May 2020 13:25:39 -0400 Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-195-uvrMG9GQPWCfp2zl5I4Rwg-1; Fri, 22 May 2020 13:25:33 -0400 Received: by mail-wr1-f71.google.com with SMTP id r7so4658689wrc.13 for ; Fri, 22 May 2020 10:25:33 -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 1sm10449061wmz.13.2020.05.22.10.25.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 May 2020 10:25:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590168337; 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: in-reply-to:in-reply-to:references:references; bh=/zVv0NlCMOK9FHuZTBuePmIxIrGLXBKKurLXnwxcUO4=; b=epg5kZ0euwrdWXqaOKzp7lOiwHe0X/sw0vTAiedRmesLRVJ/Y3ZsfWaYJtqX2MCl0A51m8 o0giD9oTp4rIQLgxi7JdXCVAb6iiNwOnqsXIaM8D/GzZYgtJbUCSJ89O84T9VhHPOcriNk ntYxJkSrucH9CvF1TLBhcGobIr63vSg= X-MC-Unique: uvrMG9GQPWCfp2zl5I4Rwg-1 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=/zVv0NlCMOK9FHuZTBuePmIxIrGLXBKKurLXnwxcUO4=; b=ZoWB18QBCXMy7/EbNIsub6JV5L5E5eh2SxNWSO189bxUs+DiyXsdBoEkMP7ViK4uFT XJkEvkSPe4vfQOcjMb1MuJidV3VielVqhnVg0oIHTh3Eg7Mj9jjeDYjQYc4uJbiCWfT0 E/UwKodPdRZ3wLnw5dMBcaNG2OahF1b0SmtgUClrrXIw91NnkM3sRBqxQsCzZCHG+PTk rQTtD/Z11N0PR1HIzqA/jZgkXomgNtJ5aH4hjy/1EDnXPNljMJr6e+CRl3KWFhR6TrNf 35LK85tcrms+ZZzu2qmcDCYnEXHf27knzDZKNEP1sdOgFw7Mf3lw/25IZXRl6cR+1DCM 71Pg== X-Gm-Message-State: AOAM533Q/tOhh/9XTV9LWsrLH6U79/k/3QGiY8EbbKZgh5ac3aXS2Jvb MvO0WnCLkmH0LXyQDh8xC6H3Ji/jm6vBmVsvMti4oyjglygPPxImZbqxrF3JC8u0cYoswvKzrlf 9SdTXNvflfCqfy7E= X-Received: by 2002:adf:dcc8:: with SMTP id x8mr4155952wrm.404.1590168332638; Fri, 22 May 2020 10:25:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3LskL7pEEAgIRi14/ELBuch4/BnO95S5SPntuYMUld7V2gbjKoma2SaM7Jh4froix6nuhEw== X-Received: by 2002:adf:dcc8:: with SMTP id x8mr4155932wrm.404.1590168332397; Fri, 22 May 2020 10:25:32 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v4 04/13] tests/Makefile: Restrict some softmmu-only tests Date: Fri, 22 May 2020 19:25:01 +0200 Message-Id: <20200522172510.25784-5-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200522172510.25784-1-philmd@redhat.com> References: <20200522172510.25784-1-philmd@redhat.com> 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: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=207.211.31.81; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/22 11:12:54 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, URIBL_BLOCKED=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 , Richard Henderson , Laurent Vivier , 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) In the next commit we are going to remove some objects from the util-obj-y variable (objects which are not used by user-mode, when configured with --disable-system). Then some system-mode tests are going to fail, due to the missing objects: $ make check-unit -k LINK tests/test-iov /usr/bin/ld: tests/test-iov.o: in function `iov_from_buf': include/qemu/iov.h:49: undefined reference to `iov_from_buf_full' make: *** [rules.mak:124: tests/test-iov] Error 1 LINK tests/test-timed-average /usr/bin/ld: tests/test-timed-average.o: in function `account': tests/test-timed-average.c:27: undefined reference to `timed_average_acco= unt' make: *** [rules.mak:124: tests/test-timed-average] Error 1 LINK tests/test-util-filemonitor /usr/bin/ld: tests/test-util-filemonitor.o: in function `qemu_file_monito= r_test_event_loop': tests/test-util-filemonitor.c:83: undefined reference to `main_loop_wait' make: *** [rules.mak:124: tests/test-util-filemonitor] Error 1 LINK tests/test-util-sockets /usr/bin/ld: tests/test-util-sockets.o: in function `test_socket_fd_pass_= name_good': tests/test-util-sockets.c:91: undefined reference to `socket_connect' make: *** [rules.mak:124: tests/test-util-sockets] Error 1 LINK tests/test-base64 /usr/bin/ld: tests/test-base64.o: in function `test_base64_good': tests/test-base64.c:35: undefined reference to `qbase64_decode' collect2: error: ld returned 1 exit status make: *** [rules.mak:124: tests/test-base64] Error 1 LINK tests/test-bufferiszero /usr/bin/ld: tests/test-bufferiszero.o: in function `test_1': tests/test-bufferiszero.c:31: undefined reference to `buffer_is_zero' make: *** [rules.mak:124: tests/test-bufferiszero] Error 1 make: Target 'check-unit' not remade because of errors. Instead, restrict these tests to system-mode, by using the $(CONFIG_SOFTMMU) variable. Reviewed-by: Richard Henderson Tested-by: Richard Henderson Reviewed-by: Laurent Vivier Tested-by: Laurent Vivier Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- tests/Makefile.include | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/Makefile.include b/tests/Makefile.include index 6bc3d1096b..0cb58aad26 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -66,14 +66,14 @@ check-unit-y +=3D tests/check-qlit$(EXESUF) check-unit-y +=3D tests/test-qobject-output-visitor$(EXESUF) check-unit-y +=3D tests/test-clone-visitor$(EXESUF) check-unit-y +=3D tests/test-qobject-input-visitor$(EXESUF) -check-unit-y +=3D tests/test-qmp-cmds$(EXESUF) +check-unit-$(CONFIG_SOFTMMU) +=3D tests/test-qmp-cmds$(EXESUF) check-unit-y +=3D tests/test-string-input-visitor$(EXESUF) check-unit-y +=3D tests/test-string-output-visitor$(EXESUF) check-unit-y +=3D tests/test-qmp-event$(EXESUF) check-unit-y +=3D tests/test-opts-visitor$(EXESUF) check-unit-$(CONFIG_BLOCK) +=3D tests/test-coroutine$(EXESUF) check-unit-y +=3D tests/test-visitor-serialization$(EXESUF) -check-unit-y +=3D tests/test-iov$(EXESUF) +check-unit-$(CONFIG_SOFTMMU) +=3D tests/test-iov$(EXESUF) check-unit-y +=3D tests/test-bitmap$(EXESUF) check-unit-$(CONFIG_BLOCK) +=3D tests/test-aio$(EXESUF) check-unit-$(CONFIG_BLOCK) +=3D tests/test-aio-multithread$(EXESUF) @@ -108,7 +108,7 @@ check-unit-y +=3D tests/test-qht$(EXESUF) check-unit-y +=3D tests/test-qht-par$(EXESUF) check-unit-y +=3D tests/test-bitops$(EXESUF) check-unit-y +=3D tests/test-bitcnt$(EXESUF) -check-unit-y +=3D tests/test-qdev-global-props$(EXESUF) +check-unit-$(CONFIG_SOFTMMU) +=3D tests/test-qdev-global-props$(EXESUF) check-unit-y +=3D tests/check-qom-interface$(EXESUF) check-unit-y +=3D tests/check-qom-proplist$(EXESUF) check-unit-y +=3D tests/test-qemu-opts$(EXESUF) @@ -126,9 +126,9 @@ check-unit-$(call land,$(CONFIG_BLOCK),$(CONFIG_GNUTLS)= ) +=3D tests/test-crypto-tl ifneq (,$(findstring qemu-ga,$(TOOLS))) check-unit-$(call land,$(CONFIG_LINUX),$(CONFIG_VIRTIO_SERIAL)) +=3D tests= /test-qga$(EXESUF) endif -check-unit-y +=3D tests/test-timed-average$(EXESUF) -check-unit-$(CONFIG_INOTIFY1) +=3D tests/test-util-filemonitor$(EXESUF) -check-unit-y +=3D tests/test-util-sockets$(EXESUF) +check-unit-$(CONFIG_SOFTMMU) +=3D tests/test-timed-average$(EXESUF) +check-unit-$(call land,$(CONFIG_SOFTMMU),$(CONFIG_INOTIFY1)) +=3D tests/te= st-util-filemonitor$(EXESUF) +check-unit-$(CONFIG_SOFTMMU) +=3D tests/test-util-sockets$(EXESUF) check-unit-$(CONFIG_BLOCK) +=3D tests/test-authz-simple$(EXESUF) check-unit-$(CONFIG_BLOCK) +=3D tests/test-authz-list$(EXESUF) check-unit-$(CONFIG_BLOCK) +=3D tests/test-authz-listfile$(EXESUF) @@ -139,7 +139,7 @@ check-unit-$(CONFIG_BLOCK) +=3D tests/test-io-channel-f= ile$(EXESUF) check-unit-$(call land,$(CONFIG_BLOCK),$(CONFIG_GNUTLS)) +=3D tests/test-i= o-channel-tls$(EXESUF) check-unit-$(CONFIG_BLOCK) +=3D tests/test-io-channel-command$(EXESUF) check-unit-$(CONFIG_BLOCK) +=3D tests/test-io-channel-buffer$(EXESUF) -check-unit-y +=3D tests/test-base64$(EXESUF) +check-unit-$(CONFIG_SOFTMMU) +=3D tests/test-base64$(EXESUF) check-unit-$(call land,$(CONFIG_BLOCK),$(if $(CONFIG_NETTLE),y,$(CONFIG_GC= RYPT))) +=3D tests/test-crypto-pbkdf$(EXESUF) check-unit-$(CONFIG_BLOCK) +=3D tests/test-crypto-ivgen$(EXESUF) check-unit-$(CONFIG_BLOCK) +=3D tests/test-crypto-afsplit$(EXESUF) @@ -147,7 +147,7 @@ check-unit-$(call land,$(CONFIG_BLOCK),$(CONFIG_QEMU_PR= IVATE_XTS)) +=3D tests/test check-unit-$(CONFIG_BLOCK) +=3D tests/test-crypto-block$(EXESUF) check-unit-y +=3D tests/test-logging$(EXESUF) check-unit-$(call land,$(CONFIG_BLOCK),$(CONFIG_REPLICATION)) +=3D tests/t= est-replication$(EXESUF) -check-unit-y +=3D tests/test-bufferiszero$(EXESUF) +check-unit-$(CONFIG_SOFTMMU) +=3D tests/test-bufferiszero$(EXESUF) check-unit-y +=3D tests/test-uuid$(EXESUF) check-unit-y +=3D tests/ptimer-test$(EXESUF) check-unit-y +=3D tests/test-qapi-util$(EXESUF) --=20 2.21.3 From nobody Fri Apr 26 01:07:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1590168503; cv=none; d=zohomail.com; s=zohoarc; b=ReUFi+MF23qNiTanh7A6aXJzhu9Vi0Z1LeYaikMpaj4sbyf2s02bbNuyUkMF0j0cwKU/TFeDcCFKkjYRnf9X11CrVwG8o8ifm17dm/kLIvYmcGIPd44r7XUccbi+tS+TKPmBKK5ftpm2bfop61FZmiCf/OIhAKufAK2Goap9Ex4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1590168503; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=i2epUlGHetWOGCxGYOBU+dKoPuV3pK/Jo+k4ZyfzZBw=; b=As0/4qwLGJeGFBE9EltvVQYNbTizp/tiSOZJHRGAD0A74nXBkDWXWyJ8x3FM0VhF3Z50gQEfNfGPGzsvBrsFUh+mWqNqkojgw8rtk3Rj/ESoq02+wiJ9vEPDpn/u5IvD1n788Ko1ojHcZYZjuMM2f08Z2eN3mvh5sshgrIinfHQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1590168503227191.49921064822456; Fri, 22 May 2020 10:28:23 -0700 (PDT) Received: from localhost ([::1]:44068 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcBT3-0001MP-WA for importer@patchew.org; Fri, 22 May 2020 13:28:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47628) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcBQU-0004NT-S5 for qemu-devel@nongnu.org; Fri, 22 May 2020 13:25:42 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:25954 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 1jcBQT-0001xA-4r for qemu-devel@nongnu.org; Fri, 22 May 2020 13:25:42 -0400 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-352-giwPZC50Mu2blkSbfosmdw-1; Fri, 22 May 2020 13:25:39 -0400 Received: by mail-wm1-f70.google.com with SMTP id z5so1414579wml.6 for ; Fri, 22 May 2020 10:25:38 -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 w82sm9942227wmg.28.2020.05.22.10.25.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 May 2020 10:25:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590168340; 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: in-reply-to:in-reply-to:references:references; bh=i2epUlGHetWOGCxGYOBU+dKoPuV3pK/Jo+k4ZyfzZBw=; b=N9yuQdrYan3GMU8haRgvGPB1Y29gBuiN+XZnq5UkSp5AajO1NY7ZOYnE3onZsEjn8aIdqe bsnwTDw37GKTmISFYC7uQmMIG7Txq+vTXcCAXPk9kC2AfW44y+fmU5k7qwC0ETo+jwzrkC FnbXNBD/lOOvPLlspWk+vrWj5mKexNs= X-MC-Unique: giwPZC50Mu2blkSbfosmdw-1 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=i2epUlGHetWOGCxGYOBU+dKoPuV3pK/Jo+k4ZyfzZBw=; b=LFaFc61KMT4rXKOR5le1tT9rpMrMhN6uPzQ4KpQ2Vdq9V3F8RwOhlK7Wt6n8ILemgd TR3qa90avbtw8SORBArkRFgQFF1CFU++Ht86fjVtMuZ2DFPMZp4Ynn0ohsqoMN5UMvDv LQPgNsU+NxepdFHY8zLhPEDXP7sXn38lqCjp7CGgP+yFQhnAFvE05Dv31Ax74RCLwGE4 g9V8dNzuGgvnCWlJTbIoTHvxNFSjh2Rn4n6WuVJZKXDFZ7fswTuV2EzleAkLTmjbmxrf bjOZ24h1BA5wl8EEQZmhawGroriB3iH+6GdigVtw6ob/IhFfKCBmoew1YF0LpIrdc2PX GGcw== X-Gm-Message-State: AOAM533GpF3UNedU8mb5TUKP9aFrb4Mbu7qRLbwPp1Ifxe499zFZXDak y2QXo+wMyjOD+kB3lHXuxS5pe8GPh65x7OLzS8ENfK6a6MJQzU8uuuPxuNzwKKwSnllRUtd+Sw5 lEGByq1MnZCR6P2o= X-Received: by 2002:a1c:bb0a:: with SMTP id l10mr14127274wmf.186.1590168337502; Fri, 22 May 2020 10:25:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyurAZ2zxafuc7PxoxBEAK3NAAA6v+GN/WxNKZXahiPEfjQhZS0KXx3UbC69nA3aY9H5kE+oA== X-Received: by 2002:a1c:bb0a:: with SMTP id l10mr14127254wmf.186.1590168337301; Fri, 22 May 2020 10:25:37 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v4 05/13] util/Makefile: Reduce the user-mode object list Date: Fri, 22 May 2020 19:25:02 +0200 Message-Id: <20200522172510.25784-6-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200522172510.25784-1-philmd@redhat.com> References: <20200522172510.25784-1-philmd@redhat.com> 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: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; 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, URIBL_BLOCKED=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 , Richard Henderson , Laurent Vivier , 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) These objects are not required when configured with --disable-system. Reviewed-by: Richard Henderson Reviewed-by: Laurent Vivier Tested-by: Laurent Vivier Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- util/Makefile.objs | 59 +++++++++++++++++++++++++++++----------------- 1 file changed, 38 insertions(+), 21 deletions(-) diff --git a/util/Makefile.objs b/util/Makefile.objs index fe339c2636..cc5e37177a 100644 --- a/util/Makefile.objs +++ b/util/Makefile.objs @@ -1,8 +1,4 @@ util-obj-y =3D osdep.o cutils.o unicode.o qemu-timer-common.o -util-obj-y +=3D bufferiszero.o -util-obj-y +=3D lockcnt.o -util-obj-y +=3D aiocb.o async.o aio-wait.o thread-pool.o qemu-timer.o -util-obj-y +=3D main-loop.o util-obj-$(call lnot,$(CONFIG_ATOMIC64)) +=3D atomic64.o util-obj-$(CONFIG_POSIX) +=3D aio-posix.o util-obj-$(CONFIG_POSIX) +=3D fdmon-poll.o @@ -21,31 +17,20 @@ util-obj-$(CONFIG_WIN32) +=3D oslib-win32.o util-obj-$(CONFIG_WIN32) +=3D qemu-thread-win32.o util-obj-y +=3D envlist.o path.o module.o util-obj-y +=3D host-utils.o -util-obj-y +=3D bitmap.o bitops.o hbitmap.o +util-obj-y +=3D bitmap.o bitops.o util-obj-y +=3D fifo8.o -util-obj-y +=3D nvdimm-utils.o util-obj-y +=3D cacheinfo.o util-obj-y +=3D error.o qemu-error.o util-obj-y +=3D qemu-print.o util-obj-y +=3D id.o -util-obj-y +=3D iov.o qemu-config.o qemu-sockets.o uri.o notify.o +util-obj-y +=3D qemu-config.o notify.o util-obj-y +=3D qemu-option.o qemu-progress.o util-obj-y +=3D keyval.o -util-obj-y +=3D hexdump.o util-obj-y +=3D crc32c.o util-obj-y +=3D uuid.o -util-obj-y +=3D throttle.o util-obj-y +=3D getauxval.o -util-obj-y +=3D readline.o util-obj-y +=3D rcu.o util-obj-$(CONFIG_MEMBARRIER) +=3D sys_membarrier.o -util-obj-y +=3D qemu-coroutine.o qemu-coroutine-lock.o qemu-coroutine-io.o -util-obj-y +=3D qemu-coroutine-sleep.o -util-obj-y +=3D qemu-co-shared-resource.o -util-obj-y +=3D coroutine-$(CONFIG_COROUTINE_BACKEND).o -util-obj-y +=3D buffer.o -util-obj-y +=3D timed-average.o -util-obj-y +=3D base64.o util-obj-y +=3D log.o util-obj-y +=3D pagesize.o util-obj-y +=3D qdist.o @@ -54,13 +39,45 @@ util-obj-y +=3D qsp.o util-obj-y +=3D range.o util-obj-y +=3D stats64.o util-obj-y +=3D systemd.o -util-obj-y +=3D iova-tree.o -util-obj-$(CONFIG_INOTIFY1) +=3D filemonitor-inotify.o -util-obj-$(call lnot,$(CONFIG_INOTIFY1)) +=3D filemonitor-stub.o -util-obj-$(CONFIG_LINUX) +=3D vfio-helpers.o util-obj-$(CONFIG_POSIX) +=3D drm.o util-obj-y +=3D guest-random.o util-obj-$(CONFIG_GIO) +=3D dbus.o dbus.o-cflags =3D $(GIO_CFLAGS) dbus.o-libs =3D $(GIO_LIBS) util-obj-$(CONFIG_USER_ONLY) +=3D selfmap.o + +####################################################################### +# code used by both qemu system emulation and qemu-img + +ifeq ($(call lor,$(CONFIG_SOFTMMU),$(CONFIG_TOOLS)),y) + +util-obj-y +=3D aio-wait.o +util-obj-y +=3D aiocb.o +util-obj-y +=3D async.o +util-obj-y +=3D base64.o +util-obj-y +=3D buffer.o +util-obj-y +=3D bufferiszero.o +util-obj-y +=3D coroutine-$(CONFIG_COROUTINE_BACKEND).o +util-obj-y +=3D hexdump.o +util-obj-y +=3D lockcnt.o +util-obj-y +=3D iov.o +util-obj-y +=3D iova-tree.o +util-obj-y +=3D hbitmap.o +util-obj-y +=3D main-loop.o +util-obj-y +=3D nvdimm-utils.o +util-obj-y +=3D qemu-coroutine.o qemu-coroutine-lock.o qemu-coroutine-io.o +util-obj-y +=3D qemu-coroutine-sleep.o +util-obj-y +=3D qemu-co-shared-resource.o +util-obj-y +=3D qemu-sockets.o +util-obj-y +=3D qemu-timer.o +util-obj-y +=3D thread-pool.o +util-obj-y +=3D throttle.o +util-obj-y +=3D timed-average.o +util-obj-y +=3D uri.o + +util-obj-$(CONFIG_LINUX) +=3D vfio-helpers.o +util-obj-$(CONFIG_INOTIFY1) +=3D filemonitor-inotify.o +util-obj-$(call lnot,$(CONFIG_INOTIFY1)) +=3D filemonitor-stub.o +util-obj-$(CONFIG_BLOCK) +=3D readline.o + +endif # CONFIG_SOFTMMU || CONFIG_TOOLS --=20 2.21.3 From nobody Fri Apr 26 01:07:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1590168523; cv=none; d=zohomail.com; s=zohoarc; b=A96sX9YqAjIcfLTrkjppbFiEWBowclvuDGQ1HGXHssilFUKm0cYDGCP4gPDJCVC763rPoTXdFPVrw4425kiYYD67K5GK+LoxV1VsrBmV9FQf6iIaZ5OjVMJ5T+hbH4ctl66L1viE7BomjisAIG/cVnYD7bJNb0Sz0zCTdWPqE1o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1590168523; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=FrUeOVZRWQD2Q/17xf0hHsrzF1l0TJ5a7ixoIuZeyV4=; b=Y1k4tyAyjDZIJCZelB6gjOhOIq+OvwPtxxDYivrpjWnajLcHAWNbisSZWKFOQLbIg+Ce9xJ7E4HxfIF7uZ04g2m/tAtBSmIqck46R1D8xAnzVm7mbQHzccCMPfehpm3wdA0P8VKqMk0PhSNPikay34IsZzFx2cEt/Ojn61aSKzk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1590168523744591.5336884722954; Fri, 22 May 2020 10:28:43 -0700 (PDT) Received: from localhost ([::1]:45290 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcBTO-0001sA-EP for importer@patchew.org; Fri, 22 May 2020 13:28:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47660) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcBQZ-0004iI-Lc for qemu-devel@nongnu.org; Fri, 22 May 2020 13:25:47 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:26551 helo=us-smtp-delivery-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 1jcBQX-0001zM-VG for qemu-devel@nongnu.org; Fri, 22 May 2020 13:25:47 -0400 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-215-ZJXGUWNVPCyH_NAc0Tezsw-1; Fri, 22 May 2020 13:25:43 -0400 Received: by mail-wr1-f70.google.com with SMTP id c14so3493160wrm.15 for ; Fri, 22 May 2020 10:25:43 -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 z7sm10029724wrl.88.2020.05.22.10.25.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 May 2020 10:25:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590168345; 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: in-reply-to:in-reply-to:references:references; bh=FrUeOVZRWQD2Q/17xf0hHsrzF1l0TJ5a7ixoIuZeyV4=; b=cY7SJ70FLeXzlnQEoOPaXdR/LsiHyRRAgqWtIzgnw2VvEmDBSRFFVigQud7r17eXsFeSGJ bSK0fAb1G7ascqSDxxg7LcRFhPZLzL1tfFg/FjEu5Hyg1SaMkC3pegG6Qi1kMblXW/LyDJ O7/WgR80PLmrhP5PN/tStSJh0RiCORA= X-MC-Unique: ZJXGUWNVPCyH_NAc0Tezsw-1 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=FrUeOVZRWQD2Q/17xf0hHsrzF1l0TJ5a7ixoIuZeyV4=; b=W7GchU5envNoMTbFgDqd/RiyuRzRXWFf0ZTGsV+xVb2vqXllwun+7IK1yXnW8cAcPz LL+w8LZo4DY7Y06ywTVnTj3DUssZY/uoUsrxVDu9W0DzdjG3fRPYZdBZcyaakOJnID0s wBo2hEYdW2U+IZcDKNRyRRs+NVgS5/Wp3rDgiS6axbmRlEM0F6Se8HeMub8I9skbLb3Y zntvij+VRSbtalShRMxpDAX3hoKnI9lWv2gnAOfdjt/NbxJ/3UE+Dbi1c+xoISeq2Tv/ zqmvZ0KLH6K6gn6AO2ikmRuSSQR14wgX/FU6DbTtyoYh/mASyVgaq1wCG1WBEAqHKsNJ 8tXw== X-Gm-Message-State: AOAM533Rcc5pRi1XyGfd26aAllc6V5tr7p/X/S2Q5ANfhz8jjYpThRXw VNno3G+YhALR5nw6yrhXIJtVmTCzCatp4imJOujYBbDyGBeQZpUTLG6yKORayCilHeg2N4uViU8 gTMmh7EQqTZZdJ48= X-Received: by 2002:adf:fe90:: with SMTP id l16mr4192171wrr.222.1590168342431; Fri, 22 May 2020 10:25:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSKoTffoL8ceNaMvgQw3S4HplXtrTt9YsZNuD7EBVvg3A5Ji+eqpiL49H6nlpLWQHSuvRzrA== X-Received: by 2002:adf:fe90:: with SMTP id l16mr4192142wrr.222.1590168342074; Fri, 22 May 2020 10:25:42 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v4 06/13] stubs/Makefile: Reduce the user-mode object list Date: Fri, 22 May 2020 19:25:03 +0200 Message-Id: <20200522172510.25784-7-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200522172510.25784-1-philmd@redhat.com> References: <20200522172510.25784-1-philmd@redhat.com> 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: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=207.211.31.81; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/22 11:12:54 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, URIBL_BLOCKED=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 , Richard Henderson , Laurent Vivier , 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) These stubs are not required when configured with --disable-system. Reviewed-by: Richard Henderson Reviewed-by: Laurent Vivier Tested-by: Laurent Vivier Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- stubs/Makefile.objs | 52 ++++++++++++++++++++++++++------------------- 1 file changed, 30 insertions(+), 22 deletions(-) diff --git a/stubs/Makefile.objs b/stubs/Makefile.objs index 6a9e3135e8..f54125de31 100644 --- a/stubs/Makefile.objs +++ b/stubs/Makefile.objs @@ -1,47 +1,55 @@ -stub-obj-y +=3D arch_type.o -stub-obj-y +=3D bdrv-next-monitor-owned.o stub-obj-y +=3D blk-commit-all.o -stub-obj-y +=3D blockdev-close-all-bdrv-states.o -stub-obj-y +=3D clock-warp.o stub-obj-y +=3D cpu-get-clock.o stub-obj-y +=3D cpu-get-icount.o stub-obj-y +=3D dump.o stub-obj-y +=3D error-printf.o stub-obj-y +=3D fdset.o stub-obj-y +=3D gdbstub.o -stub-obj-y +=3D get-vm-name.o -stub-obj-y +=3D iothread.o stub-obj-y +=3D iothread-lock.o stub-obj-y +=3D is-daemonized.o stub-obj-$(CONFIG_LINUX_AIO) +=3D linux-aio.o stub-obj-$(CONFIG_LINUX_IO_URING) +=3D io_uring.o -stub-obj-y +=3D machine-init-done.o -stub-obj-y +=3D migr-blocker.o -stub-obj-y +=3D change-state-handler.o -stub-obj-y +=3D monitor.o stub-obj-y +=3D monitor-core.o stub-obj-y +=3D notify-event.o +stub-obj-y +=3D qmp_memory_device.o stub-obj-y +=3D qtest.o +stub-obj-y +=3D ramfb.o stub-obj-y +=3D replay.o -stub-obj-y +=3D replay-user.o stub-obj-y +=3D runstate-check.o +stub-obj-$(CONFIG_SOFTMMU) +=3D semihost.o stub-obj-y +=3D set-fd-handler.o +stub-obj-y +=3D vmgenid.o stub-obj-y +=3D sysbus.o stub-obj-y +=3D tpm.o stub-obj-y +=3D trace-control.o -stub-obj-y +=3D uuid.o -stub-obj-y +=3D vm-stop.o stub-obj-y +=3D vmstate.o stub-obj-y +=3D win32-kbd-hook.o + +####################################################################### +# code used by both qemu system emulation and qemu-img + +ifeq ($(call lor,$(CONFIG_SOFTMMU),$(CONFIG_TOOLS)),y) + +stub-obj-y +=3D arch_type.o +stub-obj-y +=3D bdrv-next-monitor-owned.o +stub-obj-y +=3D blockdev-close-all-bdrv-states.o +stub-obj-y +=3D change-state-handler.o +stub-obj-y +=3D clock-warp.o stub-obj-y +=3D fd-register.o -stub-obj-y +=3D qmp_memory_device.o -stub-obj-y +=3D target-monitor-defs.o -stub-obj-y +=3D target-get-monitor-def.o -stub-obj-y +=3D vmgenid.o -stub-obj-y +=3D xen-common.o -stub-obj-y +=3D xen-hvm.o +stub-obj-y +=3D fw_cfg.o +stub-obj-y +=3D get-vm-name.o +stub-obj-y +=3D iothread.o +stub-obj-y +=3D machine-init-done.o +stub-obj-y +=3D migr-blocker.o +stub-obj-y +=3D monitor.o stub-obj-y +=3D pci-host-piix.o stub-obj-y +=3D ram-block.o -stub-obj-y +=3D ramfb.o -stub-obj-y +=3D fw_cfg.o -stub-obj-$(CONFIG_SOFTMMU) +=3D semihost.o +stub-obj-y +=3D replay-user.o +stub-obj-y +=3D target-get-monitor-def.o +stub-obj-y +=3D target-monitor-defs.o +stub-obj-y +=3D uuid.o +stub-obj-y +=3D vm-stop.o +stub-obj-y +=3D xen-common.o +stub-obj-y +=3D xen-hvm.o + +endif # CONFIG_SOFTMMU || CONFIG_TOOLS --=20 2.21.3 From nobody Fri Apr 26 01:07:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1590168545; cv=none; d=zohomail.com; s=zohoarc; b=SceTwenAEOEpbMOAFv3lfaNWL8GV4IKMHfkY062/dnA7/MB2AZXbXBmUkaCZB4+m0sg6rInWfgV/iZ5IEp60ru3VqRncrDwc/C6cKyTBCtH54aIcEZLkIh8XMRyNf167uST8+Z87TkPgCQHRY+pzlrHdnfQehF/cEyIVIobv2/0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1590168545; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=kKlqZLlysDpsMWqb9x7sq2PSoyNm/E67jzjXhQyZQjM=; b=RJsOuojc/L1QnzmsU35B2611LXDF4vNdiLDCGOoDn3cj0VEK+Dmm0ANO44alcwWrzdVhT++ZmJD56VrXFhyU4SG5jSj2kycSI4jhfXRV1nXN2qKhCSidyPg3/nxvrCy/+NYbyw0VlABipohy8JgsWFj/bVvYWdPmE6a9idC7U8A= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 15901685452871021.2053525471603; Fri, 22 May 2020 10:29:05 -0700 (PDT) Received: from localhost ([::1]:46578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcBTk-0002OB-2k for importer@patchew.org; Fri, 22 May 2020 13:29:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcBQe-0004yZ-79 for qemu-devel@nongnu.org; Fri, 22 May 2020 13:25:52 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:57779 helo=us-smtp-delivery-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 1jcBQd-000243-6k for qemu-devel@nongnu.org; Fri, 22 May 2020 13:25:51 -0400 Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-165-VyoOsz4zOXygrt4BINPkFQ-1; Fri, 22 May 2020 13:25:48 -0400 Received: by mail-wr1-f69.google.com with SMTP id h92so360184wrh.23 for ; Fri, 22 May 2020 10:25:48 -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 n9sm9668946wrv.43.2020.05.22.10.25.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 May 2020 10:25:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590168350; 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: in-reply-to:in-reply-to:references:references; bh=kKlqZLlysDpsMWqb9x7sq2PSoyNm/E67jzjXhQyZQjM=; b=Eez2RFfgl2SlEZ2syZiqTPqymVQ3csCuV3WELInGfj8ME5oFBz9ziKkZI+dAMu/Yz2EYHc /zOb4JC49LBOkgNc9T79Sz0hlduvDIPhpZwSJ79v5+/2L79HB8GFCbt69nrexFfa7lyQ6R rtxyhqBdOA4ip4Gvn0oOJlfcSbIdToE= X-MC-Unique: VyoOsz4zOXygrt4BINPkFQ-1 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=kKlqZLlysDpsMWqb9x7sq2PSoyNm/E67jzjXhQyZQjM=; b=U+wWSycAmuEWlTP0IAGhKv8FmhvzwOhYsbuPiDkUFCkP72X9EjpnvwoA/XjyA+dQ1K mx89oGlDbJ/HKrnUdT0SARe4t0qL5ZY3b36brmG3Bv25l4jfmZiSTNglJsa13RGi2G8E 6Lk8Px1CF+oV8jlAK+6BixbENP1J5y0+rGdovJVyH7864UQ41xVxNFCeuLbAoLexPX98 4gfsymX32Z51R139EjJ7KMCxmhAqhr2VJvTR0vuHbZCiHdAwf2D1opAksi2hM2b2bnn7 2vPQ+BBcn+39Bn3q0kNeixaPMksaVV/+zqcXn5pz5YZPfipnCLJ0EJ0cxMslf0sA3vJN zJ9Q== X-Gm-Message-State: AOAM530J5r4pqYwJUZItH1JedM7L6NvdqK6WGu0EwK5kAqrGI//E5JDf ZQWMDUXGr32AII15RoVwRDkHEo7s0LQulYpedH0iuFRgjtgGyZGX5rAvQ5z4IhL0XL/g2hO/rW5 0caPUXezVg+Sn/W4= X-Received: by 2002:a1c:5a86:: with SMTP id o128mr9682266wmb.77.1590168347077; Fri, 22 May 2020 10:25:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTP8rFIUlKc3H6EFr6gHRkvaDwD33dxzMmJ4mtju2zSH1qUPgXJzvaOUBSjJ8LzLQO5NgufQ== X-Received: by 2002:a1c:5a86:: with SMTP id o128mr9682241wmb.77.1590168346814; Fri, 22 May 2020 10:25:46 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v4 07/13] target/riscv/cpu: Restrict CPU migration to system-mode Date: Fri, 22 May 2020 19:25:04 +0200 Message-Id: <20200522172510.25784-8-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200522172510.25784-1-philmd@redhat.com> References: <20200522172510.25784-1-philmd@redhat.com> 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: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=207.211.31.81; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/22 11:12:54 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, URIBL_BLOCKED=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 , Richard Henderson , Laurent Vivier , 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Reviewed-by: Alistair Francis Reviewed-by: Richard Henderson Reviewed-by: Laurent Vivier Tested-by: Laurent Vivier Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- target/riscv/cpu.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 059d71f2c7..6c78337858 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -485,10 +485,12 @@ static void riscv_cpu_init(Object *obj) cpu_set_cpustate_pointers(cpu); } =20 +#ifndef CONFIG_USER_ONLY static const VMStateDescription vmstate_riscv_cpu =3D { .name =3D "cpu", .unmigratable =3D 1, }; +#endif =20 static Property riscv_cpu_properties[] =3D { DEFINE_PROP_BOOL("i", RISCVCPU, cfg.ext_i, true), @@ -544,13 +546,13 @@ static void riscv_cpu_class_init(ObjectClass *c, void= *data) cc->do_transaction_failed =3D riscv_cpu_do_transaction_failed; cc->do_unaligned_access =3D riscv_cpu_do_unaligned_access; cc->get_phys_page_debug =3D riscv_cpu_get_phys_page_debug; + /* For now, mark unmigratable: */ + cc->vmsd =3D &vmstate_riscv_cpu; #endif #ifdef CONFIG_TCG cc->tcg_initialize =3D riscv_translate_init; cc->tlb_fill =3D riscv_cpu_tlb_fill; #endif - /* For now, mark unmigratable: */ - cc->vmsd =3D &vmstate_riscv_cpu; device_class_set_props(dc, riscv_cpu_properties); } =20 --=20 2.21.3 From nobody Fri Apr 26 01:07:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1590168685; cv=none; d=zohomail.com; s=zohoarc; b=et1iqIU/nyQeuUauHJOtZ1Q5P+/7Ae60+hXdy6swmP69mmH0Egv60yocl8XIYuinKHLkxIBe9JdNQDHm9pJ90S+E0SG6bNGL8OWs/D4+hvFETtY4tBX/Xziapq3XIJWPSFRr6uGShQDdlcWGhZAojIG0pHEfQaVUUKielUPOAa0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1590168685; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=XefzKKReH8eZhhydRDilC7RKuHWXd4LHlHsJ6jQQ1Og=; b=bsWPePYwK8TwipK3WbNkTmDWVjHuIMd93gBnYCUxxCr+TLFh2IQNFWO7Heif4Ckl1WWD7VUZjhhTjhWWGttKV0tnU9hmTxTnJzFF2kikfTTYQQX56nuL9g5uSEspWd8Xe+1sNkfemwW0ooI3OzZXb7kz0Dp6yW1sAqTn//bCgng= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1590168685679335.82870276117; Fri, 22 May 2020 10:31:25 -0700 (PDT) Received: from localhost ([::1]:54990 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcBW0-0006Oh-Ej for importer@patchew.org; Fri, 22 May 2020 13:31:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47698) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcBQi-0005K2-IN for qemu-devel@nongnu.org; Fri, 22 May 2020 13:25:56 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:28576 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 1jcBQh-00026e-Hc for qemu-devel@nongnu.org; Fri, 22 May 2020 13:25:56 -0400 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-500--3oSRM-6N2W5_86N5A_JZA-1; Fri, 22 May 2020 13:25:53 -0400 Received: by mail-wr1-f70.google.com with SMTP id q13so4669266wrn.14 for ; Fri, 22 May 2020 10:25:53 -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 z10sm10050615wmi.2.2020.05.22.10.25.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 May 2020 10:25:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590168354; 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: in-reply-to:in-reply-to:references:references; bh=XefzKKReH8eZhhydRDilC7RKuHWXd4LHlHsJ6jQQ1Og=; b=IIpMgH0ksux4x4rN55IpFH/RhOLaXvis7viGj2wluGQwIznPzrLuhKuVGqEjbe7V1drEAx gmoJ2/blXCJJp+/rdc/g5oq1zgGEHz59XViHtVGVBFxPRwGiMYUR4VyHpbCOTOJozmvDss LHf7bZ20NVkAh5/gneXVcYgiMjsFlk4= X-MC-Unique: -3oSRM-6N2W5_86N5A_JZA-1 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=XefzKKReH8eZhhydRDilC7RKuHWXd4LHlHsJ6jQQ1Og=; b=H6VYZR28zv6M2iYSjnBzT6RPd3lzawLbjNLavFL9h4ghj31hvWME9uc3DDar8Plmon WrAjRNJsO3D9tmqoKEKrqpM6VY8DI0QNscJ0qPj74lEV9aNDl0wyfKRHT0KNh/ncioiH os6VjPViOHUfANV3xjZjoMoF1mxoX+BrUsw33htSBLCFyTMiC5+exhIG/TIqnME5e5/V 4KXMnlWUnrqpmoS8i+nGlKBmDSxVM05Z4Jn2a1h96VMj6oK+ZIIHrKbBN9zKNpBYwx5l C7FAb45wwH0q//EHylFMaZ3v7LpQoFws7/Q86ahY6oyurHZxRBtccKPVROxxhjS4EZgM zbtg== X-Gm-Message-State: AOAM533hD8TD20L0S/RcoxoNl5/2vcUDUJ57WXF6vkPTYDB4YgySI9Lw O61kxC8kBNg3Zc7Z5h2xGq/HnKBBF6UnizOiyn/PGPkSNs0SXvtTAkKXQC6kgEweNtFojmbt490 mDA10j6lL/95nsRA= X-Received: by 2002:a7b:c750:: with SMTP id w16mr15078734wmk.73.1590168352031; Fri, 22 May 2020 10:25:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpgj1fIRtXMBFxyv6VxoiRKNc0LOatBF77ySHbAPhKzlIGe3APHYx941CDpkTjoxdNmx5JWg== X-Received: by 2002:a7b:c750:: with SMTP id w16mr15078719wmk.73.1590168351850; Fri, 22 May 2020 10:25:51 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v4 08/13] exec: Assert CPU migration is not used on user-only build Date: Fri, 22 May 2020 19:25:05 +0200 Message-Id: <20200522172510.25784-9-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200522172510.25784-1-philmd@redhat.com> References: <20200522172510.25784-1-philmd@redhat.com> 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: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; 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, URIBL_BLOCKED=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 , Richard Henderson , Laurent Vivier , 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis Reviewed-by: Laurent Vivier Tested-by: Laurent Vivier Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- exec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exec.c b/exec.c index 5162f0d12f..6dfd314469 100644 --- a/exec.c +++ b/exec.c @@ -946,7 +946,9 @@ void cpu_exec_realizefn(CPUState *cpu, Error **errp) =20 qemu_plugin_vcpu_init_hook(cpu); =20 -#ifndef CONFIG_USER_ONLY +#ifdef CONFIG_USER_ONLY + assert(cc->vmsd =3D=3D NULL); +#else /* !CONFIG_USER_ONLY */ if (qdev_get_vmsd(DEVICE(cpu)) =3D=3D NULL) { vmstate_register(NULL, cpu->cpu_index, &vmstate_cpu_common, cpu); } --=20 2.21.3 From nobody Fri Apr 26 01:07:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1590168673; cv=none; d=zohomail.com; s=zohoarc; b=Yy0b1Hho0oKYy0mQvrB6ETj2wcyfd1pTOrPWS4nbUAWwGp6dK2aO1Y1D2baGfzTJ8h5H3+OGAmhGyAxnTNg5KEWwnQA1EErAW4y0R1RCVYDd8WED7zMH+Nrj3uqMSsR6aFv2buUhyQP13bqNmvzhKl5k2T1Gtyf37kYJpSYguyQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1590168673; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=zDajBbKs4gis+0Hzyip6W2ChjFSOOWvPUkN8dD09nr4=; b=FL0cEpPXyZslNUY0wjPTUC3WpV4fgjOlCHJjGsiyjTAJRZQMqg+kJX5iK2dOiXdrYTm3H2+rQU6pZt6Fp4YbPSFclgY9znEFMJ7D0Vf/rQDDwWs36CXLIJcRRhngKQSdmL814kAHkjgU04a+CjjvwgYq1rZ/80RpaE/ciUQXKTo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1590168673947873.6524324013635; Fri, 22 May 2020 10:31:13 -0700 (PDT) Received: from localhost ([::1]:53936 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcBVo-0005pT-LQ for importer@patchew.org; Fri, 22 May 2020 13:31:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47736) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcBQn-0005bt-7F for qemu-devel@nongnu.org; Fri, 22 May 2020 13:26:01 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:40087 helo=us-smtp-delivery-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 1jcBQm-00028x-8t for qemu-devel@nongnu.org; Fri, 22 May 2020 13:26:00 -0400 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-410-3W6cMmHJOLmFlN06PQPRrA-1; Fri, 22 May 2020 13:25:58 -0400 Received: by mail-wr1-f72.google.com with SMTP id g10so4651071wrr.10 for ; Fri, 22 May 2020 10:25:58 -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 y204sm2077653wmg.36.2020.05.22.10.25.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 May 2020 10:25:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590168359; 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: in-reply-to:in-reply-to:references:references; bh=zDajBbKs4gis+0Hzyip6W2ChjFSOOWvPUkN8dD09nr4=; b=Z30hyoAufNZRMLZFvoYS6WxQpg4eB7RnyIRa/NYsL+m7KnBgefbr1I/aCUrgXLUlcDWneO RQbxHLWOz89ito9Sk/1+ofr7T12ngQsEkU1Yr+96DdiQ1MbwXhO1Bxw1CnGsFAZ6stdHPJ wcUmHtmAJwxMLT51dFFQBv4sgiZUXj4= X-MC-Unique: 3W6cMmHJOLmFlN06PQPRrA-1 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=zDajBbKs4gis+0Hzyip6W2ChjFSOOWvPUkN8dD09nr4=; b=SLgZsHtPn7rpEbKLK+fq0U0GR6cI57LQ/0dePhVDzDmFzsr5mwvBmyD8MqnQXYxLGW SvY4/DJU3yl0D7gV1jDaA3njrt6Jm5eWeA0EoEHn6p4vrL8hbBNdIS6OPbvVUE5QtnXa Uz7Pmif2+4Y++QGvF3xYA1JGrmKqS/TkumGlGXYuVXa1SQzN2RaGwrxKX3CtIgaH+2b6 jbfiIam8WigJwwm/Sib2VE/6CmVjgnctwPYHxSiFjJsaPSIf9EDlhZKh3n8tfgkJ4GAx wxS9kfSFqWqBI3TRqrtH2Htrw0jTSWOghkxO84KKMugsdDDIJVaTILvKVTGum1b3dFpV I5og== X-Gm-Message-State: AOAM532ECNUKTzttMTidOFXeaCpPZ7iycPUJaRLoMW1U2kOE2Yqnm79N JDtVXHjREmhjSzgDZTBTfy7ZiwRUM2YnQjKFzxrMvgUYLbpP88DYDhQil6tn1DqOhXnqMAuAkBy 8/ssGeP4+FZgcV4o= X-Received: by 2002:a1c:3d08:: with SMTP id k8mr14280786wma.16.1590168356840; Fri, 22 May 2020 10:25:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyaWYO6dpnbCABYu+g8OxHh0V1WApT9Zdh2WOGUts7j67S9+77L1qYMNNi7VJtPMMSZKAj3A== X-Received: by 2002:a1c:3d08:: with SMTP id k8mr14280761wma.16.1590168356698; Fri, 22 May 2020 10:25:56 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v4 09/13] arch_init: Remove unused 'qapi-commands-misc.h' include Date: Fri, 22 May 2020 19:25:06 +0200 Message-Id: <20200522172510.25784-10-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200522172510.25784-1-philmd@redhat.com> References: <20200522172510.25784-1-philmd@redhat.com> 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: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=205.139.110.61; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/22 11:11:51 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_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 , Richard Henderson , Laurent Vivier , 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Commit ffaee83bcb2 moved qmp_query_target but forgot to remove this include. Reviewed-by: Alistair Francis Reviewed-by: Richard Henderson Reviewed-by: Laurent Vivier Tested-by: Laurent Vivier Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- arch_init.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch_init.c b/arch_init.c index d9eb0ec1dd..8afea4748b 100644 --- a/arch_init.c +++ b/arch_init.c @@ -27,7 +27,6 @@ #include "sysemu/arch_init.h" #include "hw/pci/pci.h" #include "hw/audio/soundhw.h" -#include "qapi/qapi-commands-misc.h" #include "qapi/error.h" #include "qemu/config-file.h" #include "qemu/error-report.h" --=20 2.21.3 From nobody Fri Apr 26 01:07:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1590168795; cv=none; d=zohomail.com; s=zohoarc; b=dbVcutCqvWl8upL24dspkJ+0jqrqAty8cckJa+UqyZFf9SroHuqW0luEz83SxwdgmiV05ivnxZzqdfHSzOLASiA/HIWDOULkiei6CC8Fkg+7xeQPN1QZGlw4Ds4gFnItnkkF5RiDa05ti0QndUJWWmnja4hLlX9LTKLthfr9xzM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1590168795; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=njMVcw9nzb67by0KnDJJ20QJffO3+OPEhMt5z5q8uy0=; b=ewXudzcLUGQVQtWt7BvQ6zKnhzJkeDWqF4yggFEwWdPlRA/4EdVfgt8Kzm2CQzB+H5iuRQ4LL8fVueTOOXzNuEPQ9h1vNCsR/h+QfBa5sUhSihvh4kIC1SDhByhxgGhYrK1VPDtEeUvmzqiEL7IJWfgoV/lG1tAWZ1/OcIQjKZM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1590168795200269.81355724528487; Fri, 22 May 2020 10:33:15 -0700 (PDT) Received: from localhost ([::1]:34216 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcBXl-0001CF-PM for importer@patchew.org; Fri, 22 May 2020 13:33:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47790) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcBQt-0005ye-GM for qemu-devel@nongnu.org; Fri, 22 May 2020 13:26:07 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:36327 helo=us-smtp-delivery-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 1jcBQr-0002Az-RB for qemu-devel@nongnu.org; Fri, 22 May 2020 13:26:07 -0400 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-425-nDi3pFOONL253WaGctjbaw-1; Fri, 22 May 2020 13:26:03 -0400 Received: by mail-wr1-f70.google.com with SMTP id n9so4629374wru.20 for ; Fri, 22 May 2020 10:26:02 -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 81sm10811338wme.16.2020.05.22.10.26.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 May 2020 10:26:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590168364; 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: in-reply-to:in-reply-to:references:references; bh=njMVcw9nzb67by0KnDJJ20QJffO3+OPEhMt5z5q8uy0=; b=NuCItxMIcAEpTineeNVzcOJzxvowhhQA+sSIBdcK29OtJ7fj9Vg+fDmV/qgXbmp5tRzIy4 rcuYIxw8mWU9osnWp55dkqR6NwiZcFq3+EWKNGguLvWuOZFhiYCSel61X3OK5+pl9MDwFd DM9LkbsXu7QqdXKoBdRIk0wsGdSsOSY= X-MC-Unique: nDi3pFOONL253WaGctjbaw-1 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=njMVcw9nzb67by0KnDJJ20QJffO3+OPEhMt5z5q8uy0=; b=Zili8TGHWsK1g/iQrJbxJHUv4FRv3LkKQtlikt0QiJHowspldWOE5f4WpRh90JpQ2U 6f6LPRoRr5rJIXEuqVHzJDyqy2w03EyVWBqeGl05QNvEl+3pXXDQjRbw3NhnfTN0tnmk 7Z8aF+rAD+oTp0NCrH8GH5N2TzXefykvnInAOodSB1lzNdnR6fevw1fhWNcVRuMO2Bvn D2V/NwylXYx/uAnimFc54nNLXme/Oceb6AQV7AC/i1V91jt6ipbev16RNsLSKMEyJQ4G Q4xBFUjGov0tXavsLUCIPODRIFxO5NifbzorB9AHkkxWl4ZOmWVUM/8kt6E59JCjFkpV 6r1w== X-Gm-Message-State: AOAM531A9F38nPvL+O7hMGvG4AikcowILyoZW/w2UvzEE8J1r4azxN2m tETD9lJIFVdUJfSOXe0mtnFPmKKP4hwYVKkTwMmi4DPKaaCQyYyulvKnlZ9vW/aZZFLS8b/vfwL cbhU4Q9IHBhoKkvI= X-Received: by 2002:a05:6000:1187:: with SMTP id g7mr4295123wrx.54.1590168361859; Fri, 22 May 2020 10:26:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTWSYeq5PO/H81uw1oH1eRVrb4JRSLJ7bWz8JXtUZLG7fdkypR0KgHWeUhNA/fdldKY/EEVQ== X-Received: by 2002:a05:6000:1187:: with SMTP id g7mr4295098wrx.54.1590168361652; Fri, 22 May 2020 10:26:01 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v4 10/13] target/i386: Restrict CpuClass::get_crash_info() to system-mode Date: Fri, 22 May 2020 19:25:07 +0200 Message-Id: <20200522172510.25784-11-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200522172510.25784-1-philmd@redhat.com> References: <20200522172510.25784-1-philmd@redhat.com> 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: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=207.211.31.81; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/22 11:12:54 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, URIBL_BLOCKED=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 , Richard Henderson , Laurent Vivier , 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Reviewed-by: Richard Henderson Reviewed-by: Laurent Vivier Tested-by: Laurent Vivier Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- target/i386/cpu.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 7a4a8e3847..dd31c1de5f 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -6843,6 +6843,7 @@ static void x86_cpu_register_feature_bit_props(X86CPU= *cpu, x86_cpu_register_bit_prop(cpu, name, w, bitnr); } =20 +#if !defined(CONFIG_USER_ONLY) static GuestPanicInformation *x86_cpu_get_crash_info(CPUState *cs) { X86CPU *cpu =3D X86_CPU(cs); @@ -6886,6 +6887,7 @@ static void x86_cpu_get_crash_info_qom(Object *obj, V= isitor *v, errp); qapi_free_GuestPanicInformation(panic_info); } +#endif /* !CONFIG_USER_ONLY */ =20 static void x86_cpu_initfn(Object *obj) { @@ -6932,8 +6934,10 @@ static void x86_cpu_initfn(Object *obj) x86_cpu_get_unavailable_features, NULL, NULL, NULL); =20 +#if !defined(CONFIG_USER_ONLY) object_property_add(obj, "crash-information", "GuestPanicInformation", x86_cpu_get_crash_info_qom, NULL, NULL, NULL); +#endif =20 for (w =3D 0; w < FEATURE_WORDS; w++) { int bitnr; @@ -7245,7 +7249,6 @@ static void x86_cpu_common_class_init(ObjectClass *oc= , void *data) cc->cpu_exec_interrupt =3D x86_cpu_exec_interrupt; #endif cc->dump_state =3D x86_cpu_dump_state; - cc->get_crash_info =3D x86_cpu_get_crash_info; cc->set_pc =3D x86_cpu_set_pc; cc->synchronize_from_tb =3D x86_cpu_synchronize_from_tb; cc->gdb_read_register =3D x86_cpu_gdb_read_register; @@ -7256,6 +7259,7 @@ static void x86_cpu_common_class_init(ObjectClass *oc= , void *data) cc->asidx_from_attrs =3D x86_asidx_from_attrs; cc->get_memory_mapping =3D x86_cpu_get_memory_mapping; cc->get_phys_page_attrs_debug =3D x86_cpu_get_phys_page_attrs_debug; + cc->get_crash_info =3D x86_cpu_get_crash_info; cc->write_elf64_note =3D x86_cpu_write_elf64_note; cc->write_elf64_qemunote =3D x86_cpu_write_elf64_qemunote; cc->write_elf32_note =3D x86_cpu_write_elf32_note; --=20 2.21.3 From nobody Fri Apr 26 01:07:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1590168665; cv=none; d=zohomail.com; s=zohoarc; b=bxilXvXIvBYURiwmuFqBc/kTWqhA2jVxN/jM8I6g8A+AU+LVxleaHlgWIGBu/uuWomPTwxhk2shCbavZFVTxe4mau2sgFmwXuRD8uEECrlCsgpJ1tAhxBzO2yt+GH07KClGoFZ0zAKUYPiux9h0k871RIgGiKjsw4m8crE+ETjw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1590168665; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=A/65hCauFJWnN1aX2rplyb0BxyGjWV4gUFeVpgMNSns=; b=T4MUIMPygPALtCThsP69QzW6e5PzdCToTyDT4iGxlNsTL4bwkYWIINy/wpYxmfsRTjmtV/c3e6SY5T2QJ9caRkyl8JOA2Rp4TdA6EQFD5l63C+R8A2SqF0nSWp1i3EoS/i63DgxtlqtlcddvKK7bDa+ATRZvnooHWtXu/qBc8kI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1590168665390558.8072891753736; Fri, 22 May 2020 10:31:05 -0700 (PDT) Received: from localhost ([::1]:53174 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcBVg-0005SE-23 for importer@patchew.org; Fri, 22 May 2020 13:31:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47818) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcBQz-000689-Jn for qemu-devel@nongnu.org; Fri, 22 May 2020 13:26:13 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:52245 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 1jcBQx-0002DH-TL for qemu-devel@nongnu.org; Fri, 22 May 2020 13:26:12 -0400 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-275-hd8Y9LOvPWSmHIsglsnWSw-1; Fri, 22 May 2020 13:26:09 -0400 Received: by mail-wm1-f70.google.com with SMTP id j132so2852564wma.8 for ; Fri, 22 May 2020 10:26:07 -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 t82sm10579255wmf.10.2020.05.22.10.26.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 May 2020 10:26:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590168371; 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: in-reply-to:in-reply-to:references:references; bh=A/65hCauFJWnN1aX2rplyb0BxyGjWV4gUFeVpgMNSns=; b=KYfUZ28mcwGtVsvsxqV6rMzAnkVDM6ZkwipFXF3XevrLDvEYEaCTeCbluiXQ2b9U6Fasbn iG1sjhQ9RGt5VgLab0ndu5zoXqge8L4Zvr08cm/3KYcVVBGa+wtE0sSLZWhMVuccv7+L9M iSxDKc5Opr9bXWFEp5921Xwv3yjiMtg= X-MC-Unique: hd8Y9LOvPWSmHIsglsnWSw-1 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=A/65hCauFJWnN1aX2rplyb0BxyGjWV4gUFeVpgMNSns=; b=gp8ZOLeviZp5HcO0PG48hBP8IRagvg8AIv6gxrcMSRXrr/IwjP+KTwP3m4sL5rLOIY 2U370hASnMdWIdJgyAPoAvAIpet7/73G/m5QmVP7uypDlk775bme92JR3FL9kFLwOAkx SKTn/JhX2/I2KJ6yQvM8ULzihxNhTCpG9AuTRvESv4JOk64fRd0DMpXzDaXrmnGcC3ZK rxlqRYv9Q6Jd+qt1C24J8q8lU+gkK2Qru/VWG+j83pDxy1I17FcI0EWdeol895JsNcGQ x07gdM9YBjzzfA+ZCu4Xfo+nLqwbHUBPLvpEEAzqSLOs096SeAfigYYrBonezrLwyoaq VHYA== X-Gm-Message-State: AOAM530V27MtnFkbs9l9yM+e3/mCyF9ANPXFju4lbqvodRbOKPf8/Te8 hhPgzJgml88DAPHWRwD/z1AOu7BkfgHYAVKcubluwOxLepbZWpUZXQuTn93yuTpwiwJhPV1E+De eLLWj6RsPMRcE+vo= X-Received: by 2002:a1c:3286:: with SMTP id y128mr14098687wmy.119.1590168366482; Fri, 22 May 2020 10:26:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJ2jn4vcc1lpzn1Jd/+BJJz7hF/aOi8fySzYENyWUQr32lYyvFDfORNkUcXHU0iv645P4A2w== X-Received: by 2002:a1c:3286:: with SMTP id y128mr14098664wmy.119.1590168366319; Fri, 22 May 2020 10:26:06 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v4 11/13] target/s390x: Restrict CpuClass::get_crash_info() to system-mode Date: Fri, 22 May 2020 19:25:08 +0200 Message-Id: <20200522172510.25784-12-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200522172510.25784-1-philmd@redhat.com> References: <20200522172510.25784-1-philmd@redhat.com> 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: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=207.211.31.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 08:01:12 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_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 , Richard Henderson , Laurent Vivier , 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Reviewed-by: Richard Henderson Reviewed-by: Cornelia Huck Reviewed-by: Laurent Vivier Tested-by: Laurent Vivier Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- target/s390x/cpu.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/target/s390x/cpu.c b/target/s390x/cpu.c index ca50b70451..08eb674d22 100644 --- a/target/s390x/cpu.c +++ b/target/s390x/cpu.c @@ -247,6 +247,7 @@ out: error_propagate(errp, err); } =20 +#if !defined(CONFIG_USER_ONLY) static GuestPanicInformation *s390_cpu_get_crash_info(CPUState *cs) { GuestPanicInformation *panic_info; @@ -256,11 +257,7 @@ static GuestPanicInformation *s390_cpu_get_crash_info(= CPUState *cs) panic_info =3D g_malloc0(sizeof(GuestPanicInformation)); =20 panic_info->type =3D GUEST_PANIC_INFORMATION_TYPE_S390; -#if !defined(CONFIG_USER_ONLY) panic_info->u.s390.core =3D cpu->env.core_id; -#else - panic_info->u.s390.core =3D 0; /* sane default for non system emulatio= n */ -#endif panic_info->u.s390.psw_mask =3D cpu->env.psw.mask; panic_info->u.s390.psw_addr =3D cpu->env.psw.addr; panic_info->u.s390.reason =3D cpu->env.crash_reason; @@ -286,6 +283,7 @@ static void s390_cpu_get_crash_info_qom(Object *obj, Vi= sitor *v, errp); qapi_free_GuestPanicInformation(panic_info); } +#endif =20 static void s390_cpu_initfn(Object *obj) { @@ -295,16 +293,16 @@ static void s390_cpu_initfn(Object *obj) cpu_set_cpustate_pointers(cpu); cs->halted =3D 1; cs->exception_index =3D EXCP_HLT; +#if !defined(CONFIG_USER_ONLY) object_property_add(obj, "crash-information", "GuestPanicInformation", s390_cpu_get_crash_info_qom, NULL, NULL, NULL); - s390_cpu_model_register_props(obj); -#if !defined(CONFIG_USER_ONLY) cpu->env.tod_timer =3D timer_new_ns(QEMU_CLOCK_VIRTUAL, s390x_tod_timer, cpu); cpu->env.cpu_timer =3D timer_new_ns(QEMU_CLOCK_VIRTUAL, s390x_cpu_timer, cpu); s390_cpu_set_state(S390_CPU_STATE_STOPPED, cpu); #endif + s390_cpu_model_register_props(obj); } =20 static void s390_cpu_finalize(Object *obj) @@ -488,13 +486,13 @@ static void s390_cpu_class_init(ObjectClass *oc, void= *data) cc->do_interrupt =3D s390_cpu_do_interrupt; #endif cc->dump_state =3D s390_cpu_dump_state; - cc->get_crash_info =3D s390_cpu_get_crash_info; cc->set_pc =3D s390_cpu_set_pc; cc->gdb_read_register =3D s390_cpu_gdb_read_register; cc->gdb_write_register =3D s390_cpu_gdb_write_register; #ifndef CONFIG_USER_ONLY cc->get_phys_page_debug =3D s390_cpu_get_phys_page_debug; cc->vmsd =3D &vmstate_s390_cpu; + cc->get_crash_info =3D s390_cpu_get_crash_info; cc->write_elf64_note =3D s390_cpu_write_elf64_note; #ifdef CONFIG_TCG cc->cpu_exec_interrupt =3D s390_cpu_exec_interrupt; --=20 2.21.3 From nobody Fri Apr 26 01:07:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1590168788; cv=none; d=zohomail.com; s=zohoarc; b=RAjH+IihLQFPtFJK5i7mOZVv0PpbcIEn/7wNvRx+GRn4IV4LbGFjg7f5NcbesECJvaiNLrWHBhByv7gKIy4+lfWk3XpSi+6oKK8fNpUyY5ExA9uFaM6UEkaxcRw8c+5PWHaEM8ZGqbJ4YWwnroLJq/YvbAud5EbGH2rzr9ds3nI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1590168788; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=PSd40Ze4XM2b/X382gY1wRiBudpttPKJ8TAR2241lwg=; b=bFcrwN6FFXwc1871/0PVgj/aBwRj9QOO88T8HCQZUzBP/1eGG4NwyT7eVVJYyYOoJPoUOQzGcbG4P7GYFzYU071/i4svu9PMEf3wNUtGpsEHDp/5B6Fy+rDE+N1KmWRPvJ+d1E6KxMhZ6hxqhySOvh8Y+06/+1puZJ7czu7D/uA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1590168788451896.1667715479766; Fri, 22 May 2020 10:33:08 -0700 (PDT) Received: from localhost ([::1]:33514 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcBXe-0000oz-TU for importer@patchew.org; Fri, 22 May 2020 13:33:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47852) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcBR3-0006BN-JM for qemu-devel@nongnu.org; Fri, 22 May 2020 13:26:17 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:28033 helo=us-smtp-delivery-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 1jcBR1-0002ES-Bx for qemu-devel@nongnu.org; Fri, 22 May 2020 13:26:16 -0400 Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-71-miXhT13iPMKWFFOo_ALjLw-1; Fri, 22 May 2020 13:26:12 -0400 Received: by mail-wr1-f69.google.com with SMTP id d6so508207wrn.1 for ; Fri, 22 May 2020 10:26:12 -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 v126sm11365914wma.9.2020.05.22.10.26.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 May 2020 10:26:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590168374; 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: in-reply-to:in-reply-to:references:references; bh=PSd40Ze4XM2b/X382gY1wRiBudpttPKJ8TAR2241lwg=; b=XrrW2ZTx53ChDE4rH5U0AYqIjha9IS7skLPxYJMVvO/NaI7SLUmX8UFKXYeXj2nFPpHxSx LJ87UCRw57Bx+66cSVs7hQ1MWCYhm3kdO/MYVo57ZmkhDd9V4+h7nAdJIOEX7/TSjrLWSi 85ygdirMWacumV+YJDuFW1aIYqO2YGA= X-MC-Unique: miXhT13iPMKWFFOo_ALjLw-1 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=PSd40Ze4XM2b/X382gY1wRiBudpttPKJ8TAR2241lwg=; b=mEOHcs1vxTaMYXkBsTOIwYd/thipfOu58MYAYoU+xXCnQdGgf0PHMtXqXPZHSWkHCe KEo8wKGF3Vv9w+95ozO1qYqoWyB3cTvRcfWx9yP96T1ucjODTNV+9X+kVbaptGrN5GPT 2Ya9UCcUKRHy6/XymwPpOx8DlO0YG7qEtbB/EakGH32fL7FSQ4pmpehkQeef1voVMso9 BvHb72sWF7avHfOEhOVipqUlC35OMPp6fd3gnvJiP99p/khVyhNTBjEDG/soW6xbeIS+ wOsVRHytVjzbFC+aJP3TE3m+dcGbix0hroq/0/MAg8hsEI12vjTo6AADyN4ONFIOGnsF 3M7g== X-Gm-Message-State: AOAM533hWutaB4KwckGLCpUktahIjMTBT5UkxNpaLPGzXPUB3unBwWjT a5IGLW+u6cWYpUtUvE0nIEWoR47rE0LFjs+Q9uPgPEaZIEGDgx0cHhRfMLWsHLY2HIQh/kftrxi 0oyXHaHiLKiChY+Y= X-Received: by 2002:a5d:4dc9:: with SMTP id f9mr4128502wru.407.1590168371239; Fri, 22 May 2020 10:26:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSSDT7mWCRgue/lCKohrU0T76EdQPrGYzEKzkRdy9U4PMJfPXzqLgEz/ZvOl8yqx15fixuLA== X-Received: by 2002:a5d:4dc9:: with SMTP id f9mr4128478wru.407.1590168371036; Fri, 22 May 2020 10:26:11 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v4 12/13] hw/core: Restrict CpuClass::get_crash_info() to system-mode Date: Fri, 22 May 2020 19:25:09 +0200 Message-Id: <20200522172510.25784-13-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200522172510.25784-1-philmd@redhat.com> References: <20200522172510.25784-1-philmd@redhat.com> 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: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=207.211.31.81; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/22 11:12:54 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, URIBL_BLOCKED=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 , Richard Henderson , Laurent Vivier , 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Reviewed-by: Richard Henderson Reviewed-by: Laurent Vivier Tested-by: Laurent Vivier Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- include/hw/core/cpu.h | 7 ++++++- hw/core/cpu.c | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h index 07f7698155..497600c49e 100644 --- a/include/hw/core/cpu.h +++ b/include/hw/core/cpu.h @@ -490,6 +490,8 @@ bool cpu_paging_enabled(const CPUState *cpu); void cpu_get_memory_mapping(CPUState *cpu, MemoryMappingList *list, Error **errp); =20 +#if !defined(CONFIG_USER_ONLY) + /** * cpu_write_elf64_note: * @f: pointer to a function that writes memory to a file @@ -539,6 +541,8 @@ int cpu_write_elf32_qemunote(WriteCoreDumpFunction f, C= PUState *cpu, */ GuestPanicInformation *cpu_get_crash_info(CPUState *cpu); =20 +#endif /* !CONFIG_USER_ONLY */ + /** * CPUDumpFlags: * @CPU_DUMP_CODE: @@ -632,7 +636,8 @@ static inline int cpu_asidx_from_attrs(CPUState *cpu, M= emTxAttrs attrs) } return ret; } -#endif + +#endif /* CONFIG_USER_ONLY */ =20 /** * cpu_list_add: diff --git a/hw/core/cpu.c b/hw/core/cpu.c index 5284d384fb..f31ec48ee6 100644 --- a/hw/core/cpu.c +++ b/hw/core/cpu.c @@ -209,6 +209,7 @@ static bool cpu_common_exec_interrupt(CPUState *cpu, in= t int_req) return false; } =20 +#if !defined(CONFIG_USER_ONLY) GuestPanicInformation *cpu_get_crash_info(CPUState *cpu) { CPUClass *cc =3D CPU_GET_CLASS(cpu); @@ -219,6 +220,7 @@ GuestPanicInformation *cpu_get_crash_info(CPUState *cpu) } return res; } +#endif =20 void cpu_dump_state(CPUState *cpu, FILE *f, int flags) { --=20 2.21.3 From nobody Fri Apr 26 01:07:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1590168812; cv=none; d=zohomail.com; s=zohoarc; b=dd0vbLvdXb7lvmUTJPy/ngiIHaBVGST1f39+fdMuC36CIWQ16ujZejjMPaCO2FA1wMoFkUI6+dnDrolss6YAyx49/C4jGF3GEzPbkfd/VHN0buIgwT7LYOuQy3R7cqs07EfRjeTDWRcgT6+uDwnOxFlvrf3nS6tLpD4Ib5O5jp8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1590168812; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=xzyCO16+5RviPogg4wPbJiKI85apokjUkaWsspBCPSs=; b=MDMqzpqz4s6Vq8Hg1RH22oQaSeNcikVulXd76u+vxKfVGFXis1toNLwlDTgTmqRXUHRaP+CG+06FJ3fOatruLWQNlrgFzjfmEGOKeoX7FOQs73R2379aaaA39QNafTU0/Kr5Op5ICLQ0dVOxfA0Bcby+4imG2hdqAdB8aP7ZnPY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1590168812798769.5208725298821; Fri, 22 May 2020 10:33:32 -0700 (PDT) Received: from localhost ([::1]:35674 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcBY3-0001rE-Co for importer@patchew.org; Fri, 22 May 2020 13:33:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcBR7-0006ME-Cq for qemu-devel@nongnu.org; Fri, 22 May 2020 13:26:21 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:51772 helo=us-smtp-delivery-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 1jcBR6-0002H4-Lo for qemu-devel@nongnu.org; Fri, 22 May 2020 13:26:21 -0400 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-135-xgyA91YPMlKsREQ2YqAhmg-1; Fri, 22 May 2020 13:26:17 -0400 Received: by mail-wr1-f72.google.com with SMTP id p2so4663908wrm.6 for ; Fri, 22 May 2020 10:26:17 -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 c140sm10543216wmd.18.2020.05.22.10.26.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 May 2020 10:26:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590168379; 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: in-reply-to:in-reply-to:references:references; bh=xzyCO16+5RviPogg4wPbJiKI85apokjUkaWsspBCPSs=; b=FPiRlBjxYasD52+bHJsX8bvHseUYxUOivcLoPN+KeWx41ppGZImHrM67CTyfyZN/zyQfA7 aDyXGgpi4QwtgMi+8tgjtE3CHd2fakmMvBn1KwyPHH4o2DzeqXLAHoCep0YHQnGwJAwft1 eO+YASt01/Qew4PWf3YPlsncR4Mc7vE= X-MC-Unique: xgyA91YPMlKsREQ2YqAhmg-1 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=xzyCO16+5RviPogg4wPbJiKI85apokjUkaWsspBCPSs=; b=LnfMCq5x+qKkKtFt1bzTddNRu81avNHNOqQ8ey++Lsvm7/nNkagPFf4nm+tOws8/yS MpOZUjn8aNWkoTaD5f3H1ZTe/BdXB2AKd1d83lFDR5A+gwjEuss0t80ZC2wERv8GZ/6b OFX3cPv16jUYgWaEt+O5lyPQ0LQd9VpA1yczhnEuelItXRBPRNW3xMKR4hJ4/JwIipST Q9jki0EC9egfS+SnuhNizSyW31H7X0dpKMYO90IhfmgbGugX4fDSXI5KAD84mFgv8xZ7 gYg6FRopkfTBO3faJH5lpN2nEug7DE3pr+oh5jQV+XThO33GdmxF9HlmswBtCI2Q0TKk TPMA== X-Gm-Message-State: AOAM53314LQ7nGu2QDov3hDUzPiVt/du71a/qk1NrDVC2NFCHecilWkj a5JA40hKO4373BiGFiLhqjcvRKSPpfjB7YApTvw3ViUO1aFanqy8JgSXTrhGEQRNNkfdGEm+NyC uFOXS5OmdY0PTo34= X-Received: by 2002:a5d:5682:: with SMTP id f2mr4052290wrv.382.1590168376124; Fri, 22 May 2020 10:26:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7XwVQFkjIva/AMLjP3gw8uCZWFWC/IKnTFQiIcY1lLZG4Q16GQSx0wMepR3SdEsRAPzQJDw== X-Received: by 2002:a5d:5682:: with SMTP id f2mr4052267wrv.382.1590168375908; Fri, 22 May 2020 10:26:15 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v4 13/13] stubs: Restrict ui/win32-kbd-hook to system-mode Date: Fri, 22 May 2020 19:25:10 +0200 Message-Id: <20200522172510.25784-14-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200522172510.25784-1-philmd@redhat.com> References: <20200522172510.25784-1-philmd@redhat.com> 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: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=207.211.31.81; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/22 11:12:54 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: =?UTF-8?q?Volker=20R=C3=BCmelin?= , qemu-riscv@nongnu.org, Eduardo Habkost , Sagar Karandikar , David Hildenbrand , Bastian Koppelmann , Cornelia Huck , qemu-s390x@nongnu.org, Alistair Francis , Gerd Hoffmann , Paolo Bonzini , Palmer Dabbelt , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) In Makefile.objs, the ui/ directory is restricted to system-mode: 43 ifeq ($(CONFIG_SOFTMMU),y) ... 65 common-obj-y +=3D ui/ 66 common-obj-m +=3D ui/ ... 82 endif # CONFIG_SOFTMMU Restrict the ui/ stub added in commit 2df9f5718df to only build it for system-mode emulation. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- Cc: Volker R=C3=BCmelin Cc: Gerd Hoffmann --- stubs/Makefile.objs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/Makefile.objs b/stubs/Makefile.objs index f54125de31..c1e43ac68f 100644 --- a/stubs/Makefile.objs +++ b/stubs/Makefile.objs @@ -23,7 +23,7 @@ stub-obj-y +=3D sysbus.o stub-obj-y +=3D tpm.o stub-obj-y +=3D trace-control.o stub-obj-y +=3D vmstate.o -stub-obj-y +=3D win32-kbd-hook.o +stub-obj-$(CONFIG_SOFTMMU) +=3D win32-kbd-hook.o =20 ####################################################################### # code used by both qemu system emulation and qemu-img --=20 2.21.3