From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 59233C46CD2 for ; Wed, 24 Jan 2024 15:55:47 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rSfaD-0003Yk-Me; Wed, 24 Jan 2024 10:54:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rSfaC-0003Xr-6E for qemu-riscv@nongnu.org; Wed, 24 Jan 2024 10:54:32 -0500 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rSfaA-0002MR-L3 for qemu-riscv@nongnu.org; Wed, 24 Jan 2024 10:54:31 -0500 Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-337cc8e72f5so5119710f8f.1 for ; Wed, 24 Jan 2024 07:54:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706111669; x=1706716469; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=BK/V9dj5YhGk0iLWuoz8QxmPAwCjQLFlhcHGZGmRcrA=; b=A45BWDTwJPswzj1c8EJFOY35BoVLhiIaaPINgUnDLlpsg88vuGtY1O2tDlVHquYWTz l/Zn6Marm/xsKyO5AKGC6eMGT11qezmohmFOxK70cjvIre2zeDUnTlETyxKCpWXL3qJO 9x0+VXbpUqz4lfIvx/GdG96+LTrX7V6BMCFUAH6maqWCnlln0fdOi3KXuumR0NQ2e4+v lVH2svZtxgbGDIqO5T2T9X18od12/qmEYWA6ScpFL5jB3tejjBIyf+fcjs2w/63ez200 WQoltk4evhBotxkaoEBUOOwSCBcg+Ue9G2fHFJuV2l5cxe0flJIShkFBOF36B6IUbLcU D+xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706111669; x=1706716469; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=BK/V9dj5YhGk0iLWuoz8QxmPAwCjQLFlhcHGZGmRcrA=; b=vFf8LgUJzkXlO/5HObFYynhCwVeL1r7OZl1BQ1c+dpCSwXdTjfJqJd5wkR2FJBEFOb fKjFSNbAEowEsntSgUEO+S/x0hVvHQxZ7/HlOcNFdUVH/wkH5y5m0wWr0V43kZmPJKHy Waxbx2EHIWUTtnaqvSg5xiCBXZZBaFw3tQZEI737q9zCQpe1SPljxjD9RsAfab6+zLnB H/ez6CpZ6DHkPGSol2EKqJo5qDpbt6LRkmP2OIe1i0wLj0+7mjAJQuAhuYUvOXqEAPKC Njc5notMJsc92X/a4XJ4sX+Dc3soi/pfT+w76mOkA5JQjZO6Gwsc28j8Ol6RJhQrytdg BvtQ== X-Gm-Message-State: AOJu0YzQ5+3D59RwselPqvAcShnsToeves5/3BiLDyEj5d8Ivc/INxQe PUC98UdbkEMim5IJIcLONQCC7EreRhHGxS0wVjYuXHfBRZNiUOKP/xHHaSHcIJc= X-Google-Smtp-Source: AGHT+IG2MtMetZMY4/fR+PXshiy11q1zfCHCJ3qkPsPw0ct+u49aNQGsO4wE8N5S1kr6GfY3ceeUyg== X-Received: by 2002:adf:eace:0:b0:338:fcdc:ad19 with SMTP id o14-20020adfeace000000b00338fcdcad19mr698831wrn.6.1706111668791; Wed, 24 Jan 2024 07:54:28 -0800 (PST) Received: from localhost.localdomain (lgp44-h02-176-184-8-67.dsl.sta.abo.bbox.fr. [176.184.8.67]) by smtp.gmail.com with ESMTPSA id a17-20020a5d5711000000b00339273d0626sm11842179wrv.84.2024.01.24.07.54.27 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 24 Jan 2024 07:54:28 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , qemu-ppc@nongnu.org, qemu-arm@nongnu.org, qemu-riscv@nongnu.org, Thomas Huth , Paolo Bonzini , Peter Maydell , kvm@vger.kernel.org, qemu-s390x@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 0/2] accel/kvm: Sanitize KVM_HAVE_MCE_INJECTION definition Date: Wed, 24 Jan 2024 16:54:23 +0100 Message-ID: <20240124155425.73195-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=philmd@linaro.org; helo=mail-wr1-x430.google.com 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, 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_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Sender: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Trivial replacement of KVM_HAVE_MCE_INJECTION by KVM_ARCH_HAVE_MCE_INJECTION (not the "ARCH_" difference). Philippe Mathieu-Daudé (2): accel/kvm: Define KVM_ARCH_HAVE_MCE_INJECTION in each target accel/kvm: Directly check KVM_ARCH_HAVE_MCE_INJECTION value in place include/sysemu/kvm.h | 7 ++++++- target/arm/cpu-param.h | 5 +++++ target/arm/cpu.h | 4 ---- target/i386/cpu-param.h | 2 ++ target/i386/cpu.h | 2 -- target/loongarch/cpu-param.h | 2 ++ target/mips/cpu-param.h | 2 ++ target/ppc/cpu-param.h | 2 ++ target/riscv/cpu-param.h | 2 ++ target/s390x/cpu-param.h | 2 ++ accel/kvm/kvm-all.c | 10 +++++----- 11 files changed, 28 insertions(+), 12 deletions(-) -- 2.41.0