From nobody Mon Feb 9 10:32:23 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1602173661; cv=none; d=zohomail.com; s=zohoarc; b=mZaVur+/0+X1Hdfqql+pEfkAhuL1f2jtBVjQJIbEGLmCESymInlYJPOZcKHZM2IkfmiMlbj/jwpQwIA7W5qrUlibGbL5YO4L0uYy0BBBdfQAFRtqNonUbpFdNgbpou8PxOc7zX4WA70QSRF3KsD09w8U0ooV8orGXuCfnT+nKkU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602173661; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To; bh=yGs8E2GCBOV45IEYSLzyQArDj7+rRBQC35wdokiL5VA=; b=ZXNp/8s9cmatJabXbh2wE8ZsT+iyBzMEJUq93L1cVArKkz713nW5K4vUYKT5eh0YccTV4gedTyVe1v+Bp4FbPVPSK2RbFJohg8VlrjTTeh3fADUhenWmaHcR5Uh0W9m5KNP7Y0wxZoOXqfvIQWN5CR/T5LjnQ51kpv9TzUKv09I= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1602173661323945.5132048711438; Thu, 8 Oct 2020 09:14:21 -0700 (PDT) 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-454-SroEaJ_4NOGPOY1QNNCU5w-1; Thu, 08 Oct 2020 12:14:18 -0400 Received: by mail-wm1-f70.google.com with SMTP id z7so3340638wmi.3 for ; Thu, 08 Oct 2020 09:14:17 -0700 (PDT) Return-Path: Return-Path: Received: from x1w.redhat.com (106.red-83-59-162.dynamicip.rima-tde.net. [83.59.162.106]) by smtp.gmail.com with ESMTPSA id e18sm7929473wrx.50.2020.10.08.09.14.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 09:14:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1602173660; 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; bh=yGs8E2GCBOV45IEYSLzyQArDj7+rRBQC35wdokiL5VA=; b=MvJg38iXB+Y3P1lLuXKOHD41lmENgPl0nT5L/nIbshv+1HxfSbFpdv7a9Ez0zFc1g8h1bw z9G4CQM7+sJbg82wLI/3CfBBFQ0UNurdADULI5lEWOCvNEvr/u+6Otv7fKBE2rOveeZFxw TEOZzvxI5ItmcI01QAf98oyPC3yuUos= X-MC-Unique: SroEaJ_4NOGPOY1QNNCU5w-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:mime-version :content-transfer-encoding; bh=yGs8E2GCBOV45IEYSLzyQArDj7+rRBQC35wdokiL5VA=; b=V4FonkHNSc188S1UkayyLIYrZjALP+HbU4GLA5Y7/aQD6bIPhALO2whNEW9q0tNlcA 27g2A35RRRyBpHJr2rQ9OmioXUSgq4+UUhFhqqFtsheCqmVmMUIbV0ihO4PRmnMrcpMz BEtt56/alWstw+No296gF1BAiLjYuHT9ayZ0jZGYhyDJRieh+c82zVab/Jt90vb1A3C5 Y4MTJSHTzgJGWjk76ZSZHyNINgTZFDGbigp5EAMOwYcHiG1+ZP3vFATG8kqzOYcwNvJD qRNT6+FTiqGQaFOxGwZuMS/8jyKhWtnRDSTd34vIS1pCDl+FP6V+Z9e3tqwUEWN8TFR9 XcoQ== X-Gm-Message-State: AOAM532+PZrvaIl9xiDMHGFxPnGJoKc5x6lbQLVdyACVK4UXYVwZVu63 Shylm2It4rHbDqFWjcT/rjbwtjFEqexR7vatIKZledPpo+PGR790vS+axc6lD5MTtE45Yr7sCTP qxomGkbXdx8r9yw== X-Received: by 2002:a5d:4987:: with SMTP id r7mr9665161wrq.327.1602173656260; Thu, 08 Oct 2020 09:14:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyW5UjqRoc4/JlDJgb93TK8rx7+Of7BsQQsD2sCMFegYy7vSWbgwr9aVDgvGK5qIltZpxQXTQ== X-Received: by 2002:a5d:4987:: with SMTP id r7mr9665152wrq.327.1602173656104; Thu, 08 Oct 2020 09:14:16 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Peter Maydell , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , "Michael S . Tsirkin" , Dongjiu Geng , Laszlo Ersek , Igor Mammedov , Xiang Zheng , Jonathan Cameron Subject: [PATCH v3] hw/arm: Restrict APEI tables generation to the 'virt' machine Date: Thu, 8 Oct 2020 18:14:14 +0200 Message-Id: <20201008161414.2672569-1-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) While APEI is a generic ACPI feature (usable by X86 and ARM64), only the 'virt' machine uses it, by enabling the RAS Virtualization. See commit 2afa8c8519: "hw/arm/virt: Introduce a RAS machine option"). Restrict the APEI tables generation code to the single user: the virt machine. If another machine wants to use it, it simply has to 'select ACPI_APEI' in its Kconfig. Fixes: aa16508f1d ("ACPI: Build related register address fields via hardwar= e error fw_cfg blob") Acked-by: Michael S. Tsirkin Reviewed-by: Dongjiu Geng Acked-by: Laszlo Ersek Reviewed-by: Igor Mammedov Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- v3: Rebased v2: Reworded Cc: Xiang Zheng Cc: Jonathan Cameron --- default-configs/devices/arm-softmmu.mak | 1 - hw/arm/Kconfig | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/default-configs/devices/arm-softmmu.mak b/default-configs/devi= ces/arm-softmmu.mak index 9a94ebd0be..08a32123b4 100644 --- a/default-configs/devices/arm-softmmu.mak +++ b/default-configs/devices/arm-softmmu.mak @@ -43,4 +43,3 @@ CONFIG_FSL_IMX7=3Dy CONFIG_FSL_IMX6UL=3Dy CONFIG_SEMIHOSTING=3Dy CONFIG_ALLWINNER_H3=3Dy -CONFIG_ACPI_APEI=3Dy diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig index f303c6bead..7d040827af 100644 --- a/hw/arm/Kconfig +++ b/hw/arm/Kconfig @@ -26,6 +26,7 @@ config ARM_VIRT select ACPI_MEMORY_HOTPLUG select ACPI_HW_REDUCED select ACPI_NVDIMM + select ACPI_APEI =20 config CHEETAH bool --=20 2.26.2