From nobody Sun Nov 9 23:06:55 2025 Delivered-To: importer@patchew.org Received-SPF: temperror (zoho.com: Error in retrieving data from DNS) 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=temperror (zoho.com: Error in retrieving data from DNS) 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 155211823682887.55382342039343; Fri, 8 Mar 2019 23:57:16 -0800 (PST) Received: from localhost ([127.0.0.1]:55371 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h2Wqu-00024V-75 for importer@patchew.org; Sat, 09 Mar 2019 02:57:04 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h2Wig-0003t7-Q9 for qemu-devel@nongnu.org; Sat, 09 Mar 2019 02:48:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h2Wig-0000Vz-0f for qemu-devel@nongnu.org; Sat, 09 Mar 2019 02:48:34 -0500 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:42393) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h2Wic-0000Og-BW for qemu-devel@nongnu.org; Sat, 09 Mar 2019 02:48:32 -0500 Received: by mail-wr1-x42a.google.com with SMTP id o9so448323wrv.9 for ; Fri, 08 Mar 2019 23:48:27 -0800 (PST) Received: from 640k.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id 11sm5252294wmg.27.2019.03.08.23.48.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Mar 2019 23:48:25 -0800 (PST) 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=mixRHGICSNo5O0mFQIZ1qj4JVvzg8IuQ9sCukYlNxcpPZwZvzg6NhF1R2CrzHWQ8X4 eKgONAigRMfriYFz64YwvtSHl+8bUm3JbH2Cn/oNTqg1W0yWh3buMmBSyKTEi7f5yn6S xrWO1bl31vqYjByYJ1mD+LeUsaH76s/XnUliYTHF7auJ/UUbW//r28f5DsyyFQBww33Z GObxDzfcdvIO8R6F9fjhy3Rv6wBjlbA6qOWeTBQRRHvulSGKZu3Ob9LPKhYf8E2Z4o1X s8wC3Vddw4j3Tc4EdQwbdZHSNsJSX3OmFM2BqRIcwSlTAvipsJCCYjmratqNQ5CfM5mX rg7A== 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=TQ4bFBolxXfdvyy3Aarv+u/ppQfHizxcnuI4J80OAn4TmR7HJCVBQxIxZGpcvItzsu a5+V4gWB/WNGQ295UC8imbfCA9CWGhU5EIf1bC+3TwzIPG4SUlZutGAPBLSfh2SUZ7aa X0qdFfQroyyvzkdOpVzohuWhuPWWeu/LhQut0Tw2wZLGSx8upe6UhKOgxgf+YHbiiCjk qPdW9Qzg62Y83ob5v75Raw6wPJkixALtsCtMWwR+/DtOpUhFrHyldf659bkaFXexgXQL nB4MGiyAthoVD9XDhY6bzZNF/5ZFE1TcjkJCzpJQ/+YdXeGfNcckND7m6SlwY3I5rQgs VpXg== X-Gm-Message-State: APjAAAXNVzKQsnN9M9hUCq3q6SBRFiPIMrkfeYg8Ax744t2FdCMazJ7J zMoOgesxwMnKI6fWjuW83FwodMjv X-Google-Smtp-Source: APXvYqw5tvvHA4L1RE/FRv7Z2MDAaw2prz6rjr3vp+oac8N725KYsHYkGuQzvA+KNy780F8XEGppxA== X-Received: by 2002:a5d:6b8f:: with SMTP id n15mr13913333wrx.110.1552117706030; Fri, 08 Mar 2019 23:48:26 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Sat, 9 Mar 2019 08:48:00 +0100 Message-Id: <1552117698-12355-8-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1552117698-12355-1-git-send-email-pbonzini@redhat.com> References: <1552117698-12355-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::42a Subject: [Qemu-devel] [PULL 07/25] 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