From nobody Wed May 22 02:25:50 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=1588606397; cv=none; d=zohomail.com; s=zohoarc; b=mD63+HGzb1hFQ5J7DKjjLcY0fVXcYd492sxF5SQaAt3hQvIinN/HFHSbtnSeeWjw34YsmdrXWIGcclOzmN0/oeSST7ISQATvoppW+JvN0bqOaqVLwinaSyM0wPBe55dxand63shkLuUM3RnTq0jn/bWLeNW5/R2R2Qt+trUHYic= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588606397; 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=v9XYIGI7HOjYX2BqAYx0wu+sDnz+yL5U2cNQmNKxyCM=; b=VwHPfESbQnob5BMUpKjYMEEEarYZ7Mbj6YGfci62EDlmyiS+536etYS4lkO6UQOD/bU31wTWcj0bD3xYKBFfhkMzl4kzNQ6DQ2j0ANutbgahG/YpPnCvC19D2GuRwqRFzixgZPsKSgZwE3K2qtpET1fb19jNH/dylBoASijtqY0= 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 1588606397672965.2234969097038; Mon, 4 May 2020 08:33:17 -0700 (PDT) Received: from localhost ([::1]:39746 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVd5o-0000li-Bj for importer@patchew.org; Mon, 04 May 2020 11:33:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60094) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVd2D-0003px-IS for qemu-devel@nongnu.org; Mon, 04 May 2020 11:29:33 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:28002 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 1jVd2C-0003sF-Lb for qemu-devel@nongnu.org; Mon, 04 May 2020 11:29:33 -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-480-XDyOPtFbNLWSA9CwXzFyJQ-1; Mon, 04 May 2020 11:29:30 -0400 Received: by mail-wr1-f70.google.com with SMTP id q13so2090430wrn.14 for ; Mon, 04 May 2020 08:29:30 -0700 (PDT) Received: from x1w.redhat.com (26.red-88-21-207.staticip.rima-tde.net. [88.21.207.26]) by smtp.gmail.com with ESMTPSA id i129sm14838974wmi.20.2020.05.04.08.29.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 May 2020 08:29:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588606171; 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=v9XYIGI7HOjYX2BqAYx0wu+sDnz+yL5U2cNQmNKxyCM=; b=fm7vGPVAWBt27pmSetiJznkpIJl9dYvR+xvrh8aSggxvCkFpcABxM3jhtenIcWpizJtg/r p8hblBJ0Y4287OD8owFZSWfonICpDj0ATzlYxpx9aXadSSJ5XABbjb/kdzuEdCvrWDwV/t 3PYGjkXJw3T2nBQSbNtx7HiWGk+H62Q= X-MC-Unique: XDyOPtFbNLWSA9CwXzFyJQ-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=tI1yUxIlcdhOIzObTuos8yemfQFI0fwt06hTRp539vo=; b=jK4ac6rQqVbICSg6MYv8hMWgf62SW/00BdhrmHtedX/GbJFsSqSzNoAmQc8d1CnaK3 smoXl5B+WsHvKA1TtZyBXo4ANS/AGS5qAzHa5BtZfkZ8ATdtVADm25wTLKgjAvRattqB C0us5yUN92qOJJlY7A09kMobSjjp27LYIEAuiU8vLFTIr7ygqDtNYtA2K9VPHDHHXiVt +Dv9IoNhQxHMVYFN+fRjYgOEqNepvXq43v6r+1HYQEIpG8dO3CfKrPHUTbU4DC1wMwe0 92TSl6Fbck6K7lB1KMQ8kunjk0tNCqLL+rvSwsOyYa2j5/DUmhjT6fkQ4r8YqPKmUVzy dZPQ== X-Gm-Message-State: AGi0PuYszUECwshTsFT2500WOARAzEMuikSf6ATg3oev+CgQhtrLzATA cWfGx1c3XyGJGidd8ZGlJABh/yf0rhtdRaDXMGUuO8oPQc9HbLuSIg7Ls5LJwto6KnbAT1g1eCL UWZxZn62KBBbw26s= X-Received: by 2002:adf:cd88:: with SMTP id q8mr17234779wrj.67.1588606168953; Mon, 04 May 2020 08:29:28 -0700 (PDT) X-Google-Smtp-Source: APiQypJXB5v9cBYgwUOfBejThxl9wqhuCaWRUOFfQePgNSjFUhC9lxyJkxBUbyEzJ4q/VjnjYu4Vhw== X-Received: by 2002:adf:cd88:: with SMTP id q8mr17234750wrj.67.1588606168714; Mon, 04 May 2020 08:29:28 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 01/12] Makefile: Only build virtiofsd if system-mode is enabled Date: Mon, 4 May 2020 17:29:11 +0200 Message-Id: <20200504152922.21365-2-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200504152922.21365-1-philmd@redhat.com> References: <20200504152922.21365-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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/04 04:24:57 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] 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: Alistair Francis , qemu-riscv@nongnu.org, Eduardo Habkost , Sagar Karandikar , David Hildenbrand , Bastian Koppelmann , Cornelia Huck , Richard Henderson , qemu-s390x@nongnu.org, Palmer Dabbelt , Paolo Bonzini , =?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) Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" Do not build the virtiofsd helper when configured with --disable-system. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daud=C3=A9 Acked-by: Dr. David Alan Gilbert Reviewed-by: Laurent Vivier Tested-by: Laurent Vivier --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 34275f57c9..e46b6ef5d4 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 Wed May 22 02:25:50 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=1588606297; cv=none; d=zohomail.com; s=zohoarc; b=kIVw/b5D+7Flky39hjJQhNxtsFNxj4DI3e59RuT/8+UZXedg0Osj5IpsQ8ZPUk3ZvBPTZfSIsUhiJVbq6wm5Iak42xIueU/feLVJ2tnbCv9+ex9CpiN5hkByFzvoSmm1/9DRxbKSWuunx5oFoRiNrdcRAuxQwJRyioRSo9hcDyU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588606297; 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=ei7SOVVuE+0viBbYO1EoWop8dzPwWo/vHebFwwQKvZQ=; b=asLT42wliiaQSYCnOjXPZhZIZsrrSxtINa0q/vyFzD8OpOpvY/QrgJ06yXdgOfry7pnlsD7BN+OduZCP4i3m4n65xOxBdxy0Xbvi/TZ46UTIZ5xIG6zZCiXu05kCzQX+vvi0y9Kvc+GeEPA5cqMKYX0b2S3ZgwoKocxfo8RGgWU= 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 1588606297872438.1301064377186; Mon, 4 May 2020 08:31:37 -0700 (PDT) Received: from localhost ([::1]:33238 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVd4C-00068u-5f for importer@patchew.org; Mon, 04 May 2020 11:31:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVd2J-00044h-Q0 for qemu-devel@nongnu.org; Mon, 04 May 2020 11:29:39 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:56989 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 1jVd2J-0003tb-5L for qemu-devel@nongnu.org; Mon, 04 May 2020 11:29:39 -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-19-fj2m4o4AMIaD_yYA8HekNQ-1; Mon, 04 May 2020 11:29:35 -0400 Received: by mail-wr1-f72.google.com with SMTP id o8so10911240wrm.11 for ; Mon, 04 May 2020 08:29:35 -0700 (PDT) Received: from x1w.redhat.com (26.red-88-21-207.staticip.rima-tde.net. [88.21.207.26]) by smtp.gmail.com with ESMTPSA id a187sm14023946wmh.40.2020.05.04.08.29.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 May 2020 08:29:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588606178; 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=ei7SOVVuE+0viBbYO1EoWop8dzPwWo/vHebFwwQKvZQ=; b=CRq2NoKUNfEwf4JbFOdz+kvYHRVmAsl+FmVTeUcJqK/vZrXRYbqn0cUugcKyKrsFU5Lz4D P9DCURS+dPbiBZZip0Ar7iRDp9Miawpmuabe9u9Mx945hZb9E4wDdBHhnMYjdRIHjwNfbU vmz5C3IUKiATHojugGi2+LDek4jdO6U= X-MC-Unique: fj2m4o4AMIaD_yYA8HekNQ-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=vZCuoZiD4IRNnZTiI2MM/hCx+AjU6u4qhG4CWjbwLPo=; b=XKWZuK0n/CEYZ49JOQeplvkqbp+PJz4uvPh+qeA59q4IkSH3zL6WQPgMAJqjiVbIUL +7PizaV0B6Spq38Cehb8WEYeE35fVROiVu6cJfLmUtuhNfFTuDcK8C2CMumYaqT09ykT 5Xh5XMmh8fNzfmDKbCi+UHB/IE3AmGS8RBOSy2ozjRDiOSri+ns3/ttoJgwm9r9BxSdl aHcC6Upk0czbIQjMxx4QdcWjZXgv5hiYOzl9kPj3KlIKifiAdYdNHg2ypCV98tv8Rt03 E4yuq8p4ydUxY+wT7vDTm7Zaqc+U44AUi3XlNRgX+O43UBecV2w5rB7tOTU0BjLqhQnr d5zg== X-Gm-Message-State: AGi0PubxfqQlFCQ5hnmPZx6Qa+0r84ydryEKGHaSE8/L1U3pxGyL3lue VNx1hC3PCobbvvsAMzVOPIqTwhiU5gOa48B7QPWEYK8JFzmDyGaPLmkPYxUk8HXqXIKEKPchGpi VueQVGlP4rfnGNWE= X-Received: by 2002:adf:c508:: with SMTP id q8mr2250074wrf.4.1588606173995; Mon, 04 May 2020 08:29:33 -0700 (PDT) X-Google-Smtp-Source: APiQypLaNr/8MxdS7YNFnI5jOm0Afaw6PoxYBhkkpOR8c3/79C9lMVjKU9C7uf6saK9m0gIDn8/psQ== X-Received: by 2002:adf:c508:: with SMTP id q8mr2250050wrf.4.1588606173846; Mon, 04 May 2020 08:29:33 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 02/12] configure: Avoid building TCG when not needed Date: Mon, 4 May 2020 17:29:12 +0200 Message-Id: <20200504152922.21365-3-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200504152922.21365-1-philmd@redhat.com> References: <20200504152922.21365-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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/04 05:09:11 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: Alistair Francis , qemu-riscv@nongnu.org, Eduardo Habkost , Sagar Karandikar , David Hildenbrand , Bastian Koppelmann , Cornelia Huck , Richard Henderson , qemu-s390x@nongnu.org, Palmer Dabbelt , Paolo Bonzini , =?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) Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" 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 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Alistair Francis Reviewed-by: Laurent Vivier Tested-by: Laurent Vivier --- configure | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure b/configure index 23b5e93752..e3b4afbb60 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 Wed May 22 02:25:50 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=1588606421; cv=none; d=zohomail.com; s=zohoarc; b=adMRfPbkFufzt2QVO+fHeeVnvwL5OfVVuJU1kIUU76FgGdBlXhgvVI/Gz9oF2l+HWQb2spaOESRg2GCuv4Pyi4pNbleMRYycFKWD3EwOypQnIe+rTBuQ7P64dWB18PyEMyr3zeKYuMy57yn6e1oIZAGGKr8BxjKlQaFHzefU1Hg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588606421; 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=pUXDmy3WOcwXjDaWqS3e5JUM21KIVuuEif55NSKeGcA=; b=jydxM+px+X5X33o3+RNPUtYS9JrvniQuSpd9Wbk+6aEnC72qlx3RM1+UvcNcGFiZLrfeqA377lHLxSpOc7BJaGbzCKL2efms5YHn0Mc2SgHZ55xAnTJqX/fAdy0De7P6L1+4bQTCrFiSvPDzV8JfyUbv3qKWLPpV+hQ5aGfMn6w= 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 1588606421075528.35930137379; Mon, 4 May 2020 08:33:41 -0700 (PDT) Received: from localhost ([::1]:41908 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVd6B-0001jR-Nb for importer@patchew.org; Mon, 04 May 2020 11:33:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60148) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVd2N-0004C1-4J for qemu-devel@nongnu.org; Mon, 04 May 2020 11:29:43 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:33458 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 1jVd2M-0003uQ-85 for qemu-devel@nongnu.org; Mon, 04 May 2020 11:29:42 -0400 Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-124-sC5DhmL8P1imd1h8dKxPQQ-1; Mon, 04 May 2020 11:29:40 -0400 Received: by mail-wm1-f69.google.com with SMTP id o26so3707741wmh.1 for ; Mon, 04 May 2020 08:29:40 -0700 (PDT) Received: from x1w.redhat.com (26.red-88-21-207.staticip.rima-tde.net. [88.21.207.26]) by smtp.gmail.com with ESMTPSA id q17sm13685124wmj.45.2020.05.04.08.29.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 May 2020 08:29:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588606181; 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=pUXDmy3WOcwXjDaWqS3e5JUM21KIVuuEif55NSKeGcA=; b=ddAaqXMrGcRfju9epoZRLCreP3jtXQqLh6ww5gOX3R2OKMIaU6uG5IXHgsIzhZO7EqGQrn 90N/49+MZYrXFgyYFYN7c7zK+RPCmfdcGG7iKkzBKN0tZYS4NEgFBl6nVvsBkEtGMTKDMD WettZAdhO50h2OgiF0N2CZ12ZSAExvg= X-MC-Unique: sC5DhmL8P1imd1h8dKxPQQ-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=onx2YOkWfTdSzAWYbgwOOryDziIctG2Yv+O4LWjV+pg=; b=m72PithexWEVV1NwwHypd9FYkTGmQYz3wiTHQMlew01rEYNH3vquv/sEwjsNDU2eaD 62heJARjWkAA8cYjD/sEe+4vFGzE83mTu7bkKjx1jkOps5JzXjzWqLPafKCSNBwcak4L qS9ILDTDyDaFV6lDv+scidBGjPVIQzJxJ4y/Yg/gH27yhKcY20k1oiOXL9FOJA+W7Xfi 4yDI9Ql/+RmxGi3anY1h9W3fkz6iQAchrHRDLj4OF23i7R7FIHAKHaWLPrR3Kq4qgflH zMpm3leYcRGMRG/UDzb3pPcEOY+HZ6lAzI2K6qyPyfOsa29C3r5adaBpGTVXdFrzhoL/ A6Zg== X-Gm-Message-State: AGi0PuYfHRuePlFZsykqpW2owEnR7az3Mn6q1k6KbuyGUlBYkQYfH4Wf tPcA+wGQmFJw8Asr8VgPA8D7g/H2T/Oz0RxYrUezZ7lnM384VdHDnSvjJwRFcxU5ahK+AG5dGF7 7CIC/sZK8O3LRU/U= X-Received: by 2002:a1c:f211:: with SMTP id s17mr9758530wmc.168.1588606178911; Mon, 04 May 2020 08:29:38 -0700 (PDT) X-Google-Smtp-Source: APiQypKiswUwQV6B4+74gAR9WPeC2k5Wg363PSUWRXIigZfvOEP6BnDuYZzURmulxZ+75CGXlIyQkQ== X-Received: by 2002:a1c:f211:: with SMTP id s17mr9758498wmc.168.1588606178777; Mon, 04 May 2020 08:29:38 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 03/12] tests/Makefile: Only display TCG-related tests when TCG is available Date: Mon, 4 May 2020 17:29:13 +0200 Message-Id: <20200504152922.21365-4-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200504152922.21365-1-philmd@redhat.com> References: <20200504152922.21365-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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/04 04:24:57 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] 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: Alistair Francis , qemu-riscv@nongnu.org, Eduardo Habkost , Sagar Karandikar , David Hildenbrand , Bastian Koppelmann , Cornelia Huck , Richard Henderson , qemu-s390x@nongnu.org, Palmer Dabbelt , Paolo Bonzini , =?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) Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" Reviewed-by: Alistair Francis Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Laurent Vivier Tested-by: Laurent Vivier --- 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 Wed May 22 02:25:50 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=1588606569; cv=none; d=zohomail.com; s=zohoarc; b=XZoYj4LkXvwhRInag8AdA9n0mejJ92hXnLduJaWE9r96LdywePSP1NuENUOPvpXyFWgWwMNM9RnC6IWL6caY4ILpWVVOa/mkZ08BY9idAD86DQWtnG/XORvoWJNK+z4Q+5epJcghdJKqPSLud6McAZCm/5Zu9wnYCpZSQaqEmqE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588606569; 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=mzjFGYeyA7fxzZ4S4JE9jIEkOlhfa7FY1QFxpsymjr4=; b=kQ6dXARQ61DQbLZuNtPMneRCo50rEn4D0uxN4xafzDJXM23AsZDNVh65jCcLx20ScdW9VjU3ck3Gf/yXUlPY1ekn383cZ9jDq4cSj9CVPawuuE2hxwtwAL5PtCilyamq0PjgQDAwuQ6llMnqm0os9vhekCxuWCjJqMvwU2m+X6M= 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 158860656941959.47249187315958; Mon, 4 May 2020 08:36:09 -0700 (PDT) Received: from localhost ([::1]:50976 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVd8Z-0005b8-Qi for importer@patchew.org; Mon, 04 May 2020 11:36:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60222) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVd2X-0004PD-VY for qemu-devel@nongnu.org; Mon, 04 May 2020 11:29:54 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:23999 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 1jVd2S-0003wy-II for qemu-devel@nongnu.org; Mon, 04 May 2020 11:29:53 -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-502-2qJMyHDZOn-cZgHTrAKnvg-1; Mon, 04 May 2020 11:29:45 -0400 Received: by mail-wr1-f70.google.com with SMTP id h12so423549wrr.19 for ; Mon, 04 May 2020 08:29:45 -0700 (PDT) Received: from x1w.redhat.com (26.red-88-21-207.staticip.rima-tde.net. [88.21.207.26]) by smtp.gmail.com with ESMTPSA id p190sm14382931wmp.38.2020.05.04.08.29.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 May 2020 08:29:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588606186; 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=mzjFGYeyA7fxzZ4S4JE9jIEkOlhfa7FY1QFxpsymjr4=; b=BpCD4vGE1WjJkFDoxtVwR3DRxdvvY8e7dcOaeJ6PWg7En7CNJTtPHQNTPXEXWEIfyHTmC5 VCsD04hZ9j/Z+49/91bBTnIN3LudSNqPnqm2MLRs/qW5ynb4MF119JQ4en6q3BWn1TpjpN a3W5i36lIX5gNK+4px8SHzTkw1BKOJk= X-MC-Unique: 2qJMyHDZOn-cZgHTrAKnvg-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=0X34V8aQzrq0BZhG8xlo5+YxEM577LoFjmU1+MQKArY=; b=hucbjifzkUCLq63hBv8oldzly6hjSrb5P4w0vh+uJWeWBlbHv+PR/8nCZbBhMF/rJ7 HElx8iu2fh37wZpaN5FQVb+ykwD5vGIDTbta4mYenuHsO/wbJpPbe5WI+qutoAODVf6q NzdUcSNHrPY6nAo8hPDY60iicwDLMjct2QtYQHe2u/hOCrlAneAyoOZJ8F2LoR88YNj5 pFBK7WmJAtLZE9fRe1tL99y+3ehTJG8bAaeefoWZTuQHrA1rDJmwW94hvlrV8YskbaBI Z83NaRS6hs7W/uTCTehmMXuksJ9CE3k8O5oEQ3CxWWOse703TnUT0GjzefJgzo/7aYd0 tB1g== X-Gm-Message-State: AGi0PuaMvaCAyaRV1QDe1KHLzYutgKCvz+3vTf3BWD7UqMKEzStN0ZEy +ddX8qG/jkyswHbSe6MAYdT4/o0htfaGNYTBpepdluebDB3maFT4p7NSkjbiHAlamxQAuZFodge F3BtmmuTaZ7XOQco= X-Received: by 2002:a7b:c399:: with SMTP id s25mr14764978wmj.169.1588606183794; Mon, 04 May 2020 08:29:43 -0700 (PDT) X-Google-Smtp-Source: APiQypJGGPTLOI5sYRFL6UjLMC4TFiL55xbulI+3ij3bDz37Ak+WiYxOPdolRH22bbnRhiWIcHk1vQ== X-Received: by 2002:a7b:c399:: with SMTP id s25mr14764934wmj.169.1588606183540; Mon, 04 May 2020 08:29:43 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 04/12] tests/Makefile: Restrict some softmmu-only tests Date: Mon, 4 May 2020 17:29:14 +0200 Message-Id: <20200504152922.21365-5-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200504152922.21365-1-philmd@redhat.com> References: <20200504152922.21365-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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/04 01:21:32 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] 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, 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: Alistair Francis , qemu-riscv@nongnu.org, Eduardo Habkost , Sagar Karandikar , David Hildenbrand , Bastian Koppelmann , Cornelia Huck , Richard Henderson , qemu-s390x@nongnu.org, Palmer Dabbelt , Paolo Bonzini , =?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) Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" 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 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Laurent Vivier Tested-by: Laurent Vivier --- v2: Reworded description with example (rth) --- 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 Wed May 22 02:25:50 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=1588606700; cv=none; d=zohomail.com; s=zohoarc; b=UbPqOizrJLM+2+qoEEN9oRnQ2/mBpkdmW4PyNoCOOPZw0cCvSG3oOGxuVRtcXkKw/AQ6FOL+lgkaRlaYLWRPay7xlJ90C2gaqrg5idwyGZ3A6Ryeaum/5dT4sjOFon5I30y7z7Mg4zsNBFR88Yztm+/hYS2ZOvCZUn+YywnEyp4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588606700; 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=LCu1YrhTJjejQcgij5XVIZ/Ye4jrjBse1uys9dbFqrw=; b=Sp2mcJ2aYx5RCr3AkNTgBdjpARZh1QHT1iS57owHXqC7Gb1L2dwFH++YyZuYs/To7eDUKA7MBMEmbNJWftWiviUvB2z3g3TKOrVB5kxwcPfc2ylMYppRX8u737L48oLsBK9VblxSeHgwybjthrt4EzjESBZ2b/DvIKIZ9JfOs0s= 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 1588606700304797.8761338618328; Mon, 4 May 2020 08:38:20 -0700 (PDT) Received: from localhost ([::1]:59690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVdAh-0000sY-0A for importer@patchew.org; Mon, 04 May 2020 11:38:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60220) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVd2X-0004PC-UW for qemu-devel@nongnu.org; Mon, 04 May 2020 11:29:54 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:39219 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 1jVd2W-0003zV-9L for qemu-devel@nongnu.org; Mon, 04 May 2020 11:29:53 -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-151-vlHpV372OzmkKzXXnFsxNg-1; Mon, 04 May 2020 11:29:50 -0400 Received: by mail-wr1-f72.google.com with SMTP id g10so2198804wrr.10 for ; Mon, 04 May 2020 08:29:49 -0700 (PDT) Received: from x1w.redhat.com (26.red-88-21-207.staticip.rima-tde.net. [88.21.207.26]) by smtp.gmail.com with ESMTPSA id a9sm13420623wmm.38.2020.05.04.08.29.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 May 2020 08:29:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588606191; 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=LCu1YrhTJjejQcgij5XVIZ/Ye4jrjBse1uys9dbFqrw=; b=TROrAPSSqnxqgm62WAjnEeGVvYyqDpWoI9YVLFWxGM4tSwXRMne5qihsh20YKmQaCTWNxj LJql4T6INQ34buZ4eUDFpcWY56GLn5MAZapALYirzxG9cBRh5NbsycWiGM9jV0ptZaHyLQ gca8Rgu5qYitL1JHcWC2AGtoZy9Sln4= X-MC-Unique: vlHpV372OzmkKzXXnFsxNg-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=zBm6iXG2AmJPKzos6aygZtDKqUrNpWwCtujkhJgXs28=; b=Ks++ncz+ZYUbkK5TQz7Uizs93doPlNNNu1azT5cRkgqjeanmWQ937TkVRiWMcL+6in D+xHbUpo3lw1xMMA+AUag531ULTYjbdHVd6HcpQnHCiZgw4WMXVh+QnlFa9kiNbiemws FltZhofedvodUVTDUc5WUdNrlUC/Kzegw3ms4pqinudxcbcaVVaR3nxQY394otQXxSdj Z9Jdsnc/4sfpArOFAYyUUX7swGkUgOSTap5MAykw+AZveYvsQcX4jtZ2uaGLR3YpCZlE LE26epH1xXyslDbmZF0eSsH9cy/HlnZwbNLcaZ2oMapD56w8+qmDdPLIgGl79R2GsqSW ByAQ== X-Gm-Message-State: AGi0PuabBEJY3CCAcb4EEXvnb6tr4UOqQ27NPuDZzEZfE6OWYMIS2XQb kHbUIFsG4xK8SP/XrAijKi9NwEkO3Ux+WuOdP3fhc5yrrXhSPOkHNr3iwQwhahf6x1TbCj6eoEA Us3oTROGaIG0X95s= X-Received: by 2002:a5d:5001:: with SMTP id e1mr20669563wrt.27.1588606188737; Mon, 04 May 2020 08:29:48 -0700 (PDT) X-Google-Smtp-Source: APiQypIfuQElc8hGPHg+b08JMKnR88tgmqAWx+uPvu7PDRmObrxUxBkEVQeIVFyMr15iUz8iYcnvNA== X-Received: by 2002:a5d:5001:: with SMTP id e1mr20669530wrt.27.1588606188487; Mon, 04 May 2020 08:29:48 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 05/12] util/Makefile: Reduce the user-mode object list Date: Mon, 4 May 2020 17:29:15 +0200 Message-Id: <20200504152922.21365-6-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200504152922.21365-1-philmd@redhat.com> References: <20200504152922.21365-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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/04 08:14:53 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: Alistair Francis , qemu-riscv@nongnu.org, Eduardo Habkost , Sagar Karandikar , David Hildenbrand , Bastian Koppelmann , Cornelia Huck , Richard Henderson , qemu-s390x@nongnu.org, Palmer Dabbelt , Paolo Bonzini , =?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) Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" These objects are not required when configured with --disable-system. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Laurent Vivier Tested-by: Laurent Vivier --- 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 Wed May 22 02:25:50 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=1588606691; cv=none; d=zohomail.com; s=zohoarc; b=Sa+dSKVK5dI8V5LUkLYdYxGkl4RN1/D62IA9DxyvbzB2zklef4qdXzwCwfWiqShW0m7ireGzYgb0MjbSSLbNQ9h6FGOp9E9qRwtSQd4IX8xUfSsq95X5myAFXwswV9S5cX5ENhOcZ5kxsSxO2McXpP9caWTEPVQhA6A49lA3B+w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588606691; 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=UXIZVnW5g37k2jLJB8kqlNhfn4cymDqpUWMHJkAG2Eo=; b=GyepDaBxOqCW1B9z+xPhH19qvPE7fxBrJYH2mf0rWM/yhQ+h9I7RemHoUVBacwIaWVNZlMiA8NVfyT2gmwB5OqvOw+guUiRSpm32xWyHbzOBRgHv8oJPGEJiCp+SuHeK5Y8TN3llTjc6S4MMT1y0TcUFQ/KJjqckVmLS4OD+YxI= 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 158860669118131.26542003002328; Mon, 4 May 2020 08:38:11 -0700 (PDT) Received: from localhost ([::1]:58978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVdAX-0000aV-Tf for importer@patchew.org; Mon, 04 May 2020 11:38:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60268) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVd2e-0004ec-Li for qemu-devel@nongnu.org; Mon, 04 May 2020 11:30:00 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:34463 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 1jVd2d-00041b-P1 for qemu-devel@nongnu.org; Mon, 04 May 2020 11:30:00 -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-165-OdkA8HkUMzCcrBOmY1xu8g-1; Mon, 04 May 2020 11:29:57 -0400 Received: by mail-wr1-f70.google.com with SMTP id g10so2198983wrr.10 for ; Mon, 04 May 2020 08:29:57 -0700 (PDT) Received: from x1w.redhat.com (26.red-88-21-207.staticip.rima-tde.net. [88.21.207.26]) by smtp.gmail.com with ESMTPSA id r23sm13375342wra.74.2020.05.04.08.29.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 May 2020 08:29:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588606199; 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=UXIZVnW5g37k2jLJB8kqlNhfn4cymDqpUWMHJkAG2Eo=; b=XsRNx9x0GjdZXeSY8zIEKIdEzmm8Z/0+YhjcLbS8KmQeDLQuMo8rPqagpmFMdZrpVjCqkG YQLECinclGe3DQSmNpvZR1XyV+kd7bAdkR/rcNO2i/Un8jksOmpb/aqAxXialSf2C7TvhV Qkhw0+M1kKUxfHYKMHzOWlvskGjP6rQ= X-MC-Unique: OdkA8HkUMzCcrBOmY1xu8g-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=/WSQ18h76i7qy6sv74FkIvImN9Z625aM1DPt3KGsaqk=; b=gIuPFgip8xdi5n3co5W7kEfxeTaEIx/+NsbG5DKmJcWhcKpy4lBMujLim9t/TL6q8x +GslUlcM6DOdaNmT4kJD3R/7Kz4fL6Wx+diMHg/nJzP8mneOIdKQwAXvBy8SjLDz/zeO 0MyjOYB0cpUDwuohXlmdFS1LAxZO1ZqGVBJMZW/SS6bN0PF+1iLebclW5Mi39l8P8xRF kgIbdEANUHzV1N+ae21KXCuXZ6AfQ/C8E6nJg9OdDhzNVkgl2RvesQ+kuEhnOudcuHT6 ylDdCtcbLUNKVoTR7erLKrxAjklEcr9Woe18VoWKu478pzEqgwpDr6vKFaDk2oztRoXM EolA== X-Gm-Message-State: AGi0PuZrb1AB1/rv3fsYw51ibSa0UaDmz2txiF1s7/5ToOFjDnAMyuIM 4eVJgv0XKG+exWKwAnQW+L0DHBr0X4gkY9ZeXR7rPCHnaXDuIUzZanUrTd8q+QO/w5JH0i6r7C6 d3HlsY8ux5PsIHB4= X-Received: by 2002:a1c:abc3:: with SMTP id u186mr14936135wme.42.1588606193640; Mon, 04 May 2020 08:29:53 -0700 (PDT) X-Google-Smtp-Source: APiQypLj5eWxZJZ2z2ZUftO3Xg+kRXa7qQn9DNorY0PvIkoZ/Tj/+ACME2VKDR/YpjrsCN5yKp3rsg== X-Received: by 2002:a1c:abc3:: with SMTP id u186mr14936095wme.42.1588606193366; Mon, 04 May 2020 08:29:53 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 06/12] stubs/Makefile: Reduce the user-mode object list Date: Mon, 4 May 2020 17:29:16 +0200 Message-Id: <20200504152922.21365-7-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200504152922.21365-1-philmd@redhat.com> References: <20200504152922.21365-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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/04 05:09:11 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: Alistair Francis , qemu-riscv@nongnu.org, Eduardo Habkost , Sagar Karandikar , David Hildenbrand , Bastian Koppelmann , Cornelia Huck , Richard Henderson , qemu-s390x@nongnu.org, Palmer Dabbelt , Paolo Bonzini , =?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) Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" These stubs are not required when configured with --disable-system. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Laurent Vivier Tested-by: Laurent Vivier --- stubs/Makefile.objs | 52 ++++++++++++++++++++++++++------------------- 1 file changed, 30 insertions(+), 22 deletions(-) diff --git a/stubs/Makefile.objs b/stubs/Makefile.objs index 45be5dc0ed..5ffa085c67 100644 --- a/stubs/Makefile.objs +++ b/stubs/Makefile.objs @@ -1,46 +1,54 @@ -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 + +####################################################################### +# 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 Wed May 22 02:25:50 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=1588606823; cv=none; d=zohomail.com; s=zohoarc; b=mV8L+e/+0ecjVEUGFm25FnHaSM5fUVe9kXkb8eMqy7VjzEpUAF6pYSPh1FryORk75DtNfaddOVgLsV8HhG+/cfKlYFrUUjUzWfa4Qp0/pRIFo2zbZnY2IVXPNwCYYb1d8IxJniw5eVwUoORrFGGU5bw633ngWQnzhFHzEtg3Pvc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588606823; 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=pJEUowLb7RvCQfJQiY10vUGrOBr7KqqEEqIh+hFxUmw=; b=fxgxHI4COUM0meEtbd2SkLrxjAg2Mt7CBwRGg3F2gC1AwL2pNNYqNARt56cyPHOWJ+Ek4pzdRIN0HQkjpt4RSeQ+L/kZ8zqrAvD9JTN5eTCeTLT3m57KRknQ1zAFXJupwb97YqE/Inap6F9Fkh5qiW2oFPwXd/jYU3sRPpeMd6c= 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 1588606823592787.9096663340956; Mon, 4 May 2020 08:40:23 -0700 (PDT) Received: from localhost ([::1]:40112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVdCg-0004Pc-4l for importer@patchew.org; Mon, 04 May 2020 11:40:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60284) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVd2h-0004k6-AK for qemu-devel@nongnu.org; Mon, 04 May 2020 11:30:03 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:44073 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 1jVd2g-00041v-50 for qemu-devel@nongnu.org; Mon, 04 May 2020 11:30:02 -0400 Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-3-zsKZxagAPVO1STLB9BvTFA-1; Mon, 04 May 2020 11:30:00 -0400 Received: by mail-wm1-f69.google.com with SMTP id t62so5116091wma.0 for ; Mon, 04 May 2020 08:29:59 -0700 (PDT) Received: from x1w.redhat.com (26.red-88-21-207.staticip.rima-tde.net. [88.21.207.26]) by smtp.gmail.com with ESMTPSA id t4sm13373338wri.54.2020.05.04.08.29.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 May 2020 08:29:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588606201; 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=pJEUowLb7RvCQfJQiY10vUGrOBr7KqqEEqIh+hFxUmw=; b=cmU3t9AqtA26hy+4rPk9vvxbOgOTNOehkU6Fw2z9q1tzoGItAcZxcH+uWvx3bMccU9xBX4 Ykk1H372ix6t6782h6up8Y1YYN4RtMgh2+8C8xEkmpJ8+b2LvavdkA5HBfj0UdC7ZbC+Km MXGBYrbs872vg2jdKdGcdpIp5D3VSj0= X-MC-Unique: zsKZxagAPVO1STLB9BvTFA-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=vOETN6PdLHy6NVEAy7zvorEiCPF47jtqFdmHbXoOmUs=; b=MRReYBRNVSJ72OfQkNKPPEgYYez+S1CpkoV7EHIArYL3lLUMef9PPWlglFKJQnIoya bKO0ba47WDs+KwC251PTEzfaxhOuBKj3eroVYSpmaw3zIxRT/mJ7GjFn+bRsrkmgL9Jw Po0tV5BWpHNHrlrFMWqLYycyW80YgjjTnCQLGDR9SAMtMcY7tnpOSVqnBwoyOqZhzYNk ze0HzHwA7jsQmQHuQlr6LY0b/bDaA4iEU+c2z6tWPejak7oxVYI7LFvYjQBxzgZ5Hmqt 7DTHUxnu0KlrpbzhP7N3xpRcoXbZLulLPm5d5v/clAdIIQ8JSgE3M9NoiFmJ0NsdhVnv Q2Ew== X-Gm-Message-State: AGi0PuZjuCRZJk9aMRep4bN6ZpqsCdUT7EIbI/e3wgtFtt2kA6SSPwcz 2nL8H4BtM1e7VlP8NqXoA2VQURrocVkTjLZi8/eRiDfMXEw1lsRalGUEHI6TT/WlUrYz44WFqox oftljDkBhzmhs+oU= X-Received: by 2002:a05:600c:2f88:: with SMTP id t8mr14763546wmn.46.1588606198544; Mon, 04 May 2020 08:29:58 -0700 (PDT) X-Google-Smtp-Source: APiQypJpmk7YsxPrFWLliPrb8nTsxnanKnLEiwl5Wj5AHzpYnXRew0sOBcZ9G57iAgM8zv2R1wCVEg== X-Received: by 2002:a05:600c:2f88:: with SMTP id t8mr14763507wmn.46.1588606198355; Mon, 04 May 2020 08:29:58 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 07/12] target/riscv/cpu: Restrict CPU migration to system-mode Date: Mon, 4 May 2020 17:29:17 +0200 Message-Id: <20200504152922.21365-8-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200504152922.21365-1-philmd@redhat.com> References: <20200504152922.21365-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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/04 05:09:11 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: Alistair Francis , qemu-riscv@nongnu.org, Eduardo Habkost , Sagar Karandikar , David Hildenbrand , Bastian Koppelmann , Cornelia Huck , Richard Henderson , qemu-s390x@nongnu.org, Palmer Dabbelt , Paolo Bonzini , =?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) Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" Reviewed-by: Alistair Francis Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Laurent Vivier Tested-by: Laurent Vivier --- 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 Wed May 22 02:25:50 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=1588606923; cv=none; d=zohomail.com; s=zohoarc; b=BIP/O1gMupW1p9T+dL9KC3cYLrtjIbcIH0dWyPhOLJJ4E2QZW/NuUR03vfkAIcCF8ds2vN2WL7dQtEJrjbISXutZvERb3AM/ohHhckAe2RYHjZ7J7+DxvOeDFbreEfoM/NdG56MWR5OlSRHhJkNlmkFjiTMxkebULiZFBE9cPWk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588606923; 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=T1y68tSMd7GHh+zg/0ObvfZVux+/GWTFhhxzdBf7Eqg=; b=i6f3YUueybGTzsmOGkenymWDMRtxxjq0jdo+BUUNJBOfkwdhHlj+HzsroUgiGuMMdd/P3kqJ/ey75hT9mcHGvYTeq15KVEgcbbaoG1a/thIMbi0BOH6b96g9cVkKAoR6lF8ZQq3TPBfQe9uR0T9td4xINrv91z0q//AsUzmY6oY= 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 1588606923138366.49912086253914; Mon, 4 May 2020 08:42:03 -0700 (PDT) Received: from localhost ([::1]:50034 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVdEH-00008G-VX for importer@patchew.org; Mon, 04 May 2020 11:42:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60320) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVd2m-0004tp-4N for qemu-devel@nongnu.org; Mon, 04 May 2020 11:30:08 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:31505 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 1jVd2l-000453-A6 for qemu-devel@nongnu.org; Mon, 04 May 2020 11:30:07 -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-49-VJ7LfwT5PmS_4qVXNWxrIw-1; Mon, 04 May 2020 11:30:05 -0400 Received: by mail-wm1-f70.google.com with SMTP id n17so3701681wmi.3 for ; Mon, 04 May 2020 08:30:04 -0700 (PDT) Received: from x1w.redhat.com (26.red-88-21-207.staticip.rima-tde.net. [88.21.207.26]) by smtp.gmail.com with ESMTPSA id 32sm18198202wrg.19.2020.05.04.08.30.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 May 2020 08:30:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588606206; 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=T1y68tSMd7GHh+zg/0ObvfZVux+/GWTFhhxzdBf7Eqg=; b=Lbpz57rMK36EdkQUQPGz9j/4IPevZAuMenbMHzS/bQ8Y60+w7PhySR2fO9uq7cdB9HnhC2 chN3H+0bbdc/APq7sZMci1swBNQuUN8neKl85OEdewWLZKjKLpMlgOIoibMbmUWHM86MXa N2zVwQWF/75sflIwemayP/O+ZzuibWI= X-MC-Unique: VJ7LfwT5PmS_4qVXNWxrIw-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=YNPGUt+XVjuWBOuW4Jb8vVwTVbsUuMXWCCmym4ZUFC0=; b=mGYJDWz/Vp1008hMA0hBmVkaiBdcTI3sY92FtJEmWRAGCyBP2A1z0LwiHMbLgyDfOo eSR3RTPLpgfNrIeOSQndw1VxHojEF7CuRdHB6Ye64F62a7YpDJWxNQhSPE0C7HYTHWwm HTZF3AwtzAdJvW6SxMwF92CS4rjtYKeUFpkbUAJE4RFmAbrGEUP98V4kjJD5wbeJ7j0f noatOJjQ/aCcLi5u2rTaY4/YofxWPykZ3hUMbjGou3sUo8/M9IcnhqBkTVZW6rJrSnVT fsqkWj3W04EwYiMvRunMLYMLZG0nINNf5JCBlrV4MLiaVGvmjeqrmgLM1+ZS/z1WG5fP x7rw== X-Gm-Message-State: AGi0PubxHSrYPFVkpPwMinvD6fHjR27kmAkhLIO7BKdrWqbN8AKSk6cJ lKHk6R3dqjDVuhM4X/n1DL3HUZUneHW3yPlktKC8E6wLlB2v/kPp/oYehJDKhqExfzrJfw2eLuF CyTZsNbA2iLp0808= X-Received: by 2002:a5d:4092:: with SMTP id o18mr19706357wrp.227.1588606203346; Mon, 04 May 2020 08:30:03 -0700 (PDT) X-Google-Smtp-Source: APiQypInjUOxX2jKxirAze76WfFjfMC15k/Kv3N9pOHz2KJiR8nTXoBJrwU87jPMHlBSpO3bEcdHRw== X-Received: by 2002:a5d:4092:: with SMTP id o18mr19706340wrp.227.1588606203145; Mon, 04 May 2020 08:30:03 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 08/12] exec: Assert CPU migration is not used on user-only build Date: Mon, 4 May 2020 17:29:18 +0200 Message-Id: <20200504152922.21365-9-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200504152922.21365-1-philmd@redhat.com> References: <20200504152922.21365-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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/04 08:14:53 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: Alistair Francis , qemu-riscv@nongnu.org, Eduardo Habkost , Sagar Karandikar , David Hildenbrand , Bastian Koppelmann , Cornelia Huck , Richard Henderson , qemu-s390x@nongnu.org, Palmer Dabbelt , Paolo Bonzini , =?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) Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Alistair Francis Reviewed-by: Laurent Vivier Tested-by: Laurent Vivier --- exec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exec.c b/exec.c index 2874bb5088..3a39ffb1eb 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 Wed May 22 02:25:50 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=1588607007; cv=none; d=zohomail.com; s=zohoarc; b=f6PYAb3PFJ6FBUVE9EwBAYRSCg2PqHxV0He/jXkaBFv1pITyouV02Bvj/8fTexfDC9MjIogFd5P8gHBInMaPs+8gIyfN6N6JsrcquDeyaGKdxI7ThMfNRP24Hf3LmDFTZ1KcqPTlWDTm39KDpTnPsPa+ECzsGULmp1p+0WYh9wM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588607007; 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=g8CkVk2pIsA5qUp0zix2BjSa/yukK7tJBsycJrJlL6k=; b=AWDLGT/hHdg1fCY6NhX6k9PeU098IoB24DjPM8eSAoTWVhtCrDl4bSewbUQN0+P9/5o3fUAbDdl4RinpbXDAk6a72OLUAop/3UyOtG09/ev1ubepfURagBZUWk/Fvv43gyIJoVCRuf1j8hKCPG2WSipVCpELZjgheK805qHuLsE= 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 1588607007702540.4346680938437; Mon, 4 May 2020 08:43:27 -0700 (PDT) Received: from localhost ([::1]:57748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVdFe-0003dj-Co for importer@patchew.org; Mon, 04 May 2020 11:43:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60336) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVd2r-00050Q-2i for qemu-devel@nongnu.org; Mon, 04 May 2020 11:30:14 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:50087 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 1jVd2q-00047C-3w for qemu-devel@nongnu.org; Mon, 04 May 2020 11:30:12 -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-272-cYAe6a1KOROa2gD_fr1vtA-1; Mon, 04 May 2020 11:30:10 -0400 Received: by mail-wr1-f70.google.com with SMTP id 30so474702wrp.22 for ; Mon, 04 May 2020 08:30:09 -0700 (PDT) Received: from x1w.redhat.com (26.red-88-21-207.staticip.rima-tde.net. [88.21.207.26]) by smtp.gmail.com with ESMTPSA id b66sm15039450wmh.12.2020.05.04.08.30.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 May 2020 08:30:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588606211; 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=g8CkVk2pIsA5qUp0zix2BjSa/yukK7tJBsycJrJlL6k=; b=GpkUxqkk1BEAj0ytg56Jxd2G7+m2/hUSSb+iT9NXUSZB4v7NebnWam87hObCLy60Cpf0ht fBdJj4gxWDLv/hg1FMNSThwy7XGQkjBlJDm7DK33yEJotoeHPTrsJ5XzLAD40G6TdJT2cx za4c+icKD9kxMVYBH/WowrKFmNqa1YE= X-MC-Unique: cYAe6a1KOROa2gD_fr1vtA-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=Loi2SqFjSui4Z2kBKxGGjw07sOKKiVmfF0icDHu39aI=; b=Jeo35db6rLeu7N3Gz/wOUM8c2q2iR63NF/SYI3HYXNx9m75M/XfFQJRBYJ/2HCbihS AoYzW7/RgqTO97i23BMs7owjsatLBhq89/UqkqkwXAtk5f2x3jYbH6VCMBpp7G3fFJLs M12zgKFLMifX68UcF4hCZ5exK6rnNMNDAqorCO6s4NWcMvZLHr6EfDBL7ZC26q4PajQj U6mY6gBgROV6mbbk4uCS2gEBhds+MAdME+6Iys2v/yca2f9zqUBXqFiLdDCaZq5QL05w pfa8Uz4r9Bk+g1b0ByPy2VY6msHrRoUcdVD5RyH3dXhVZlGaJ9o+bWOL+2fB+SkbPf6J S+1Q== X-Gm-Message-State: AGi0PuZlaL1Bdx3i8i6raOlUuwCANTVas/KeX6LIiGX6/ZgrGeS53AFm 8d2mHqJ14DnIce49CVRfkoD9ClRe9/+BDDgB9CSeqKrgQFTa4nMYBKKJKb93nITHYsuq+SRF+HI hrScv9ctSgnizu2o= X-Received: by 2002:adf:fac4:: with SMTP id a4mr15444356wrs.134.1588606208432; Mon, 04 May 2020 08:30:08 -0700 (PDT) X-Google-Smtp-Source: APiQypJm0cfJlbqPAJwYrwFKRafzCoYVnnGzHPxQFg4t8os1gRI2OP5f3Fz//NjR/oYIdxM+SAh86g== X-Received: by 2002:adf:fac4:: with SMTP id a4mr15444325wrs.134.1588606208276; Mon, 04 May 2020 08:30:08 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 09/12] arch_init: Remove unused 'qapi-commands-misc.h' include Date: Mon, 4 May 2020 17:29:19 +0200 Message-Id: <20200504152922.21365-10-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200504152922.21365-1-philmd@redhat.com> References: <20200504152922.21365-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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/04 01:21:32 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] 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, 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: Alistair Francis , qemu-riscv@nongnu.org, Eduardo Habkost , Sagar Karandikar , David Hildenbrand , Bastian Koppelmann , Cornelia Huck , Richard Henderson , qemu-s390x@nongnu.org, Palmer Dabbelt , Paolo Bonzini , =?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) Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" Commit ffaee83bcb2 moved qmp_query_target but forgot to remove this include. Reviewed-by: Alistair Francis Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Laurent Vivier Tested-by: Laurent Vivier --- 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 Wed May 22 02:25:50 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=1588607115; cv=none; d=zohomail.com; s=zohoarc; b=Ns7S1HvC12s1Sxz5uQ2FzkUB6rnj4JUF4iV7zvnznm+Hbd66rQeA/vhxrcrdg1HfgxOhpdDcz8owvUTBLH6liazZb1LSgXKUTKJ8c4/4jmUIotCui0+YFxbLG/7sSgOi9ePsFhUaGHskudAqhmyq4NyB6DLffWo/51hZWF35VVA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588607115; 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=lHPd6DRGT3/QfAQv+8lMnqMpzhHq6WqmC6OekczJuuE=; b=OpeHC18Zwvy6Nfq6LX5eNQNgjEpIGw3mC+D8FJDGDg+V5R3ykOJKjpULDPmjQJivMxbPG2NkoWzZo0E9jKBPc2Tp07uRkf2mLIPPLHIUVKq7UBiQJHDXkl9F1+/LiGgJvlBZOYllB8xClQ+sDwEk66LDnNEtiwT9Ic9q8fEyk4g= 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 158860711503982.1956730203359; Mon, 4 May 2020 08:45:15 -0700 (PDT) Received: from localhost ([::1]:37706 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVdHN-0007ft-E6 for importer@patchew.org; Mon, 04 May 2020 11:45:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60370) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVd31-00057F-5u for qemu-devel@nongnu.org; Mon, 04 May 2020 11:30:26 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:52851 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 1jVd2w-0004Ah-3P for qemu-devel@nongnu.org; Mon, 04 May 2020 11:30:22 -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-103-5iqUCI8LOIyPy9WLMOp_mA-1; Mon, 04 May 2020 11:30:15 -0400 Received: by mail-wr1-f69.google.com with SMTP id g10so2199466wrr.10 for ; Mon, 04 May 2020 08:30:14 -0700 (PDT) Received: from x1w.redhat.com (26.red-88-21-207.staticip.rima-tde.net. [88.21.207.26]) by smtp.gmail.com with ESMTPSA id s24sm14363792wmj.28.2020.05.04.08.30.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 May 2020 08:30:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588606217; 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=lHPd6DRGT3/QfAQv+8lMnqMpzhHq6WqmC6OekczJuuE=; b=YDWZk6EGVNZjBd8U5bz9Etz+Tz6vNcdyESJCWo2h65JPAakO/3jdR7weo4datuuY+HWJ0f De+M4jtT0TEZ371k4nVxrpa3ucKYbaUtF1APuEBqzAIBZw1y/ROm/Jfncbp84kskvY3zcO 3PpSm3tVtEi1V1K+MW90yRLDL//cRa4= X-MC-Unique: 5iqUCI8LOIyPy9WLMOp_mA-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=m6+xvd3mxJRnG7uL+iwXoaJtRFRM8ce9ioU3VRg64KY=; b=h6gBXCusBslPlqXxBm6t9w4Izx6Bw+QSIQTbWyEPn2hGPY4hErFiC6EGQW+VKqK9NU TYNTNflId3N3Hsn28RJXVHTfRInkDkH8Y3hnrlSItmbRmG7rN/3wMYD21ZuwEU8py3QY n4R2a6Pt3CgWjaOkbVMrPx1q8LVD8mMxAmKruHBNwikrlK3wnxW92pbJmmGmCzrjiL2Q FTJMvBu76/65pOHy+mtOE/qAX+5rnkEKA1z5x0NbcDAYQlT5og+93YgqhxSs/QDx7K2p 2hKdm18t9/XnUBRzECHYt7UWezv4R5F8aE5UhNkY7vi99bvTcgxHCAWoSQ9aEYZvt0M7 HcSg== X-Gm-Message-State: AGi0PuaS6m5H6Arth05bJqNvh30KgYZyC4pVVM2w/01kvnuNWTh5w5nt YD9w3ukP0sF2LI40d/FZq9l0fX9W2lOz96mVcwZP6P+YVUFARkoti3OlIgv8fV+fCYCHbZAxGST SiGMc5Cb+j1wEfUg= X-Received: by 2002:a1c:9a81:: with SMTP id c123mr14483186wme.115.1588606213756; Mon, 04 May 2020 08:30:13 -0700 (PDT) X-Google-Smtp-Source: APiQypKKhIo4R9drORflRphaERuyEWB3jMraFT2J2xJgoK941gxMvAR6QyLJQsGX+UXNYqtQ/lF/nw== X-Received: by 2002:a1c:9a81:: with SMTP id c123mr14483150wme.115.1588606213381; Mon, 04 May 2020 08:30:13 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 10/12] target/i386: Restrict CpuClass::get_crash_info() to system-mode Date: Mon, 4 May 2020 17:29:20 +0200 Message-Id: <20200504152922.21365-11-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200504152922.21365-1-philmd@redhat.com> References: <20200504152922.21365-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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/04 05:09:11 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: Alistair Francis , qemu-riscv@nongnu.org, Eduardo Habkost , Sagar Karandikar , David Hildenbrand , Bastian Koppelmann , Cornelia Huck , Richard Henderson , qemu-s390x@nongnu.org, Palmer Dabbelt , Paolo Bonzini , =?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) Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Laurent Vivier Tested-by: Laurent Vivier --- 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 9c256ab159..eec1ac7cea 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -6848,6 +6848,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); @@ -6891,6 +6892,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) { @@ -6937,8 +6939,10 @@ static void x86_cpu_initfn(Object *obj) x86_cpu_get_unavailable_features, NULL, NULL, NULL, &error_abort); =20 +#if !defined(CONFIG_USER_ONLY) object_property_add(obj, "crash-information", "GuestPanicInformation", x86_cpu_get_crash_info_qom, NULL, NULL, NULL, NULL= ); +#endif =20 for (w =3D 0; w < FEATURE_WORDS; w++) { int bitnr; @@ -7251,7 +7255,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; @@ -7262,6 +7265,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 Wed May 22 02:25:50 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=1588606828; cv=none; d=zohomail.com; s=zohoarc; b=Mynyq5WlglBeIpUYE5MHMyTMQFtyND53xDpY8v8uenYcL3i90N6bTwFMXwUqKMGz4eGqLiRWoscFQUJGVzHgrsElMWTz12xxN5e04mm1UtAJ9yonPA1hoNOp58X0XNMyUl40oxQvWEsDwotmfy/pPZHFKCG7cBkVmP57SLi9OxU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588606828; 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=P9+8reP7GTE78L5B1VZBQQawvTQY6zlLXYckga6u98s=; b=RgWPT69PyZOrlQcNm/1LqZpEGL4av4WpzS8/qzviB/V8yU9tSUzMods6y6yUyWk+dtPMdIA6B2w03d4KlYaoP8eyKoscZWUM7n41cATpPffz5k4J6PJ5x6XGC9FYforhgmyh0hileOabpVpUo4lhavmrBbnN+6zplsd2zC+3V7M= 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 15886068289681000.2359069454894; Mon, 4 May 2020 08:40:28 -0700 (PDT) Received: from localhost ([::1]:40494 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVdCj-0004ZU-N9 for importer@patchew.org; Mon, 04 May 2020 11:40:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVd35-000589-Kx for qemu-devel@nongnu.org; Mon, 04 May 2020 11:30:28 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:44181 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 1jVd32-0004Bd-8u for qemu-devel@nongnu.org; Mon, 04 May 2020 11:30:27 -0400 Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-447-Ed_rJc2FO8iYUvlztz0Kng-1; Mon, 04 May 2020 11:30:20 -0400 Received: by mail-wm1-f72.google.com with SMTP id l21so5118821wmh.2 for ; Mon, 04 May 2020 08:30:20 -0700 (PDT) Received: from x1w.redhat.com (26.red-88-21-207.staticip.rima-tde.net. [88.21.207.26]) by smtp.gmail.com with ESMTPSA id a9sm13422818wmm.38.2020.05.04.08.30.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 May 2020 08:30:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588606222; 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=P9+8reP7GTE78L5B1VZBQQawvTQY6zlLXYckga6u98s=; b=Ce5K1beN5zEWmie/58t8XnpkFmJYb/17ZeFkdKtklSA6g5xHjZc/9nK5CDzYq9K5htTtjt tKf6D8W0sS31MM/SvFH3e4xyLHBx1FEUJpOJcX8nY8nhtW6ve2VqeeGH98z/Fkyh5z8sOU adBuU60d88CDL6CW/0RkVcK5WibTXPU= X-MC-Unique: Ed_rJc2FO8iYUvlztz0Kng-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=Ixj4deVVyRuMLRIFisfgQ9WKiYbhKMCAbBHOhTT1TTc=; b=eSsmTezLTUNsFLgFIO6bfIAm13hdOf6SrI8dAmzald5IIknEKvg6faruuvpAnW5iEx WFL2G4R5yqmBC1BnAZEPoLQ5waH76JeogqDXFdokRvRex0Mjfv1D9x84UPi5+tzVJl8h BvxV8IiOY1mkKaMBF+bblU0jhUs8UtiITMTFQz23OeHmvgESrBdPZTZwW3Bj1qV7bdyL pnaGUFc98KvV86cYI64a0XGrP123EQqrsSVsmkRN6rrizAofqhC/V3koXJH+hjtYw2J2 qE+qBe1TbfSnP9Ep5JgpsY2uGFybzu6mfnA1MSa+gZBFbb/Zx8vxw0ui6RUX1g7rPMC0 k+tA== X-Gm-Message-State: AGi0PuaATo881qXd/RWf7DiHlnJ1uOFn9f8ulInroWDjCiBQntqMhqX4 5B79PnTFpkbYIUlen/3hwoC+u2n7IOluB7t7H12xw3onLwsnk+PmWRhaNMadC5rYbvEKdkwk+fe yeNS4Kab91WvLWTc= X-Received: by 2002:adf:ecc5:: with SMTP id s5mr18314268wro.261.1588606218414; Mon, 04 May 2020 08:30:18 -0700 (PDT) X-Google-Smtp-Source: APiQypJwx30iPwgvBiLbJZBtHnXIYgfy9/mTXK9iJRYZVNTAVVbjQcxhCJrJ+JdH4KjLpXk8VWAT6A== X-Received: by 2002:adf:ecc5:: with SMTP id s5mr18314229wro.261.1588606218190; Mon, 04 May 2020 08:30:18 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 11/12] target/s390x: Restrict CpuClass::get_crash_info() to system-mode Date: Mon, 4 May 2020 17:29:21 +0200 Message-Id: <20200504152922.21365-12-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200504152922.21365-1-philmd@redhat.com> References: <20200504152922.21365-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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/04 05:09:11 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: Alistair Francis , qemu-riscv@nongnu.org, Eduardo Habkost , Sagar Karandikar , David Hildenbrand , Bastian Koppelmann , Cornelia Huck , Richard Henderson , qemu-s390x@nongnu.org, Palmer Dabbelt , Paolo Bonzini , =?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) Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Cornelia Huck Reviewed-by: Laurent Vivier Tested-by: Laurent Vivier --- 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 f2ccf0a06a..afb82206c7 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, NUL= L); - 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 Wed May 22 02:25:50 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=1588606918; cv=none; d=zohomail.com; s=zohoarc; b=FF3/XXtavYUH/Rc+Sp6vXqICMb9A6c7kyBu8VZVKJ3g18du5GbORWVQ3NmDxSgZqsIG0TN3W4Ae/YZkw7W+U7jLyhLjyHGetdRQRApMYf3xc68svdb0H1+n2zn0Smm+GgL3kiogThduMFr7JehocNn9o4vd+xoia3Cb7Jpiu1MQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588606918; 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=roSqpWZiqVEnV8LkdMDYBqTbKDtiMZNpOAVtdss6dcA=; b=iNQKvAEndrvqJLNbDYn+7CT9HpV9gC5Bi3HhZfqdPf64i3Pt0Ebyeq9F3kJb/GX73IZyEaJmv2P8VmVYKflI1YSpFvQt7xIgeYNHIT8ieFa4JvLmuTV6XcDjbGqW3e6BHhZUwc2mcMdq5sKBjhYDTYZ6j0ilOkuLr2U08asZXRU= 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 1588606918722923.891452442784; Mon, 4 May 2020 08:41:58 -0700 (PDT) Received: from localhost ([::1]:49174 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVdE9-0008Da-V0 for importer@patchew.org; Mon, 04 May 2020 11:41:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60408) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVd38-0005Af-TF for qemu-devel@nongnu.org; Mon, 04 May 2020 11:30:30 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:46769 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 1jVd38-0004Jn-34 for qemu-devel@nongnu.org; Mon, 04 May 2020 11:30:30 -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-177-Tc2P4NZPP6yMtFkuozAWVw-1; Mon, 04 May 2020 11:30:25 -0400 Received: by mail-wr1-f71.google.com with SMTP id p8so155370wrj.5 for ; Mon, 04 May 2020 08:30:25 -0700 (PDT) Received: from x1w.redhat.com (26.red-88-21-207.staticip.rima-tde.net. [88.21.207.26]) by smtp.gmail.com with ESMTPSA id l19sm14665035wmj.14.2020.05.04.08.30.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 May 2020 08:30:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588606228; 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=roSqpWZiqVEnV8LkdMDYBqTbKDtiMZNpOAVtdss6dcA=; b=Zmdz1dFCgGMklmHrSRZryIPdZH9RaLAoTY+SulrVUjUmDjMyHaRPxNcYS1oyoxQIYNwbCE bpyJmII5B+prscKCfenDOZGYSdH44lZhl1m5BDHr/4AqA7Xlb5E2mE2QRXt5wa0S+DDWrZ bhv7b5E98SEPS+EuBsvS2+4jpjbfDik= X-MC-Unique: Tc2P4NZPP6yMtFkuozAWVw-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=Yw0XCRWQ5TOmgPjX3CHbIeQtGrafhhkkx8MZiR9pd/4=; b=XLgx6KioTTWb0q4sFCCZ9NkV+F4kDvvM/NcOZHOtBJ6voPS4gp6kN7t7Rspg4Us5cG EPahZNF6YwbR3etAq9CdUmygkqdbJUzfoqMAbvhGYDOERmcEkxmVnSECbDIJgMp8OWv7 Db2SipCXZvSwxjfGa4Qo2vTiZdSoMIK8lG2Ry57LDNaXQc7MQFMKgAM/ilvsGhmLd/gz TaB8aPHziiy12XvtmzbdhAP1+Ua9rDSQ+ge/JnTfKbr28WLmQAF5/2GFcKb9FviaUVvO g0l6bGxO5QQ/YNdvQLnAVHoPgadtxLJTsc+slYkL6ybGp/nbjX5AM5LMhaH8eGibnQFd sutw== X-Gm-Message-State: AGi0PuZ8XKpHbvsP9IyzEqMRuc9WgcRquz5w0lLGrz8JBTSOoGx/Ay82 TF+b6OeRyKYaiAjTWGddjZWaJ0dnHIsUrME9RXJB1Nkh/5Gezb7KpChAwZmvHvM58O3bDjRxTSJ ivQVXCvoa/m3Z4cY= X-Received: by 2002:a7b:c959:: with SMTP id i25mr15022186wml.20.1588606223849; Mon, 04 May 2020 08:30:23 -0700 (PDT) X-Google-Smtp-Source: APiQypKj4Ork54uQyKon7JuuI5hLn/qSvQkcntw69/VS1GCVsLTqkzf4xWLOeWqEwGpwl6KqwP2Uow== X-Received: by 2002:a7b:c959:: with SMTP id i25mr15022125wml.20.1588606223163; Mon, 04 May 2020 08:30:23 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 12/12] hw/core: Restrict CpuClass::get_crash_info() to system-mode Date: Mon, 4 May 2020 17:29:22 +0200 Message-Id: <20200504152922.21365-13-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200504152922.21365-1-philmd@redhat.com> References: <20200504152922.21365-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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/04 05:09:11 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: Alistair Francis , qemu-riscv@nongnu.org, Eduardo Habkost , Sagar Karandikar , David Hildenbrand , Bastian Koppelmann , Cornelia Huck , Richard Henderson , qemu-s390x@nongnu.org, Palmer Dabbelt , Paolo Bonzini , =?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) Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Laurent Vivier Tested-by: Laurent Vivier --- 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 5bf94d28cf..0d1f9e084f 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 786a1bec8a..85b9723fee 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