From nobody Mon Feb 9 11:51:23 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1552324467997736.1373718587986; Mon, 11 Mar 2019 10:14:27 -0700 (PDT) Received: from localhost ([127.0.0.1]:37065 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3OVF-00056w-R5 for importer@patchew.org; Mon, 11 Mar 2019 13:14:17 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3ODW-00072B-BZ for qemu-devel@nongnu.org; Mon, 11 Mar 2019 12:55:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3ODU-00031a-DR for qemu-devel@nongnu.org; Mon, 11 Mar 2019 12:55:58 -0400 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:36634) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h3ODS-0002uF-FP for qemu-devel@nongnu.org; Mon, 11 Mar 2019 12:55:56 -0400 Received: by mail-wr1-x42f.google.com with SMTP id g18so2542773wru.3 for ; Mon, 11 Mar 2019 09:55:49 -0700 (PDT) Received: from 640k.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id e12sm6484836wrs.91.2019.03.11.09.55.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Mar 2019 09:55:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=1ytn1RT3QC9c4jD4A8N0j1+dRL6KVsvQjz23DA1x0Ks=; b=pCQNRlgv8/pf09seKjgjsGjyw3Y1WG6hbi6+ysXqBUQJaKnPlnVgwQ/IQEqgkIBC7G f1R0JEN8E+ou8+3i2p5FhObRjnbEZpbc/M7/RTwyKRgwlIEEl/4lc6u8aotdSI4rk5ao 4FqjbuirWEQtIYS3OPYStkdyBrmYDbMPxgcKvb7BRh99rDMNxccHzAaoewH/x7NN1j7s +UhUNrXfuQnFYGBzAGekmgNMGb7awZVSRth2N5Kr4OCE4gY5WwMCBaDmfZLQHBBh0Tkz Ki8SIuebMnAcsfF+Hke43tJtHwSxQaLnw8mdXxp+SMHgAcjVGO048IrOu0b3OpQRpIrZ CCHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=1ytn1RT3QC9c4jD4A8N0j1+dRL6KVsvQjz23DA1x0Ks=; b=g5bSFa0zt74Oho4GpLjCrV/liYf5heu7t/prClnr+0QgMd3oQlZloslfuO/PECXpnZ lsJVEWsvEUMelmbxBAb9xNhRuwJO8Bcwd+GTo+DNlbxQvauR3gpUZgSfdOLw8XZA/Bap /gBl6vO9xqWDiDt2LMGRZwHPthjsApVNyGK48+WwODklJy3y57b2UttNFH1WFkcXrLXb wBH21BD/BGCsD/rFXuwrjC6LErAr2drXm0k1jGJ/HcD0Pw7novSBfm5j0dEEab+JK/vx hovj79eCSLJCF5P63icfJME8RrGyOTTPuIFWtwpk9A8bMBVJQP47FrUmS3XYEQ4umUG7 JJbw== X-Gm-Message-State: APjAAAW/MCSlMRbRUAKc3Vu6e3DYy4lDuiSxymLbfbVCJZtxxMFOvexK E8Zn2Zw3e7oD9R3x9U5vUcQnVfVk X-Google-Smtp-Source: APXvYqxO/EjvzRddvjkZ2iwDPg8zIbThbjTMkTMmqcLtzRQwaWDaQHGh0+Ln4Ely9o0RGspcZlK1yg== X-Received: by 2002:adf:9cc3:: with SMTP id h3mr19902954wre.47.1552323348563; Mon, 11 Mar 2019 09:55:48 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Mon, 11 Mar 2019 17:55:13 +0100 Message-Id: <1552323335-46779-10-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1552323335-46779-1-git-send-email-pbonzini@redhat.com> References: <1552323335-46779-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42f Subject: [Qemu-devel] [PULL v2 09/31] target-i386: add kvm stubs to user-mode emulators X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" The CPUID code will call kvm_arch_get_supported_cpuid() and, even though it is undef kvm_enabled() so it never runs for user-mode emulators, sometimes clang will not optimize it out at -O0. That could be considered a compiler bug, however at -O0 we give it a pass and just add the stubs. Reported-by: Kamil Rytarowski Tested-by: Kamil Rytarowski Signed-off-by: Paolo Bonzini --- target/i386/Makefile.objs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/i386/Makefile.objs b/target/i386/Makefile.objs index cb9c265..48e0c28 100644 --- a/target/i386/Makefile.objs +++ b/target/i386/Makefile.objs @@ -3,10 +3,10 @@ obj-$(CONFIG_TCG) +=3D translate.o obj-$(CONFIG_TCG) +=3D bpt_helper.o cc_helper.o excp_helper.o fpu_helper.o obj-$(CONFIG_TCG) +=3D int_helper.o mem_helper.o misc_helper.o mpx_helper.o obj-$(CONFIG_TCG) +=3D seg_helper.o smm_helper.o svm_helper.o +obj-$(call lnot,$(CONFIG_KVM)) +=3D kvm-stub.o ifeq ($(CONFIG_SOFTMMU),y) obj-y +=3D machine.o arch_memory_mapping.o arch_dump.o monitor.o obj-$(CONFIG_KVM) +=3D kvm.o -obj-$(call lnot,$(CONFIG_KVM)) +=3D kvm-stub.o obj-$(CONFIG_HYPERV) +=3D hyperv.o obj-$(call lnot,$(CONFIG_HYPERV)) +=3D hyperv-stub.o ifeq ($(CONFIG_WIN32),y) --=20 1.8.3.1