nvdimm: Use configurable ACPI IO base and size
commit5c94b82662a815d8430b81090200178b5377a62e
authorKwangwoo Lee <kwangwoo.lee@sk.com>
Tue, 21 Apr 2020 12:59:29 +0000 (21 13:59 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 4 May 2020 14:25:02 +0000 (4 10:25 -0400)
treecc9216a4064541a7571c79f79f4f52c077c6ff23
parent71b0269ae9a80cfd28c3b5946748b92ac8821334
nvdimm: Use configurable ACPI IO base and size

This patch makes IO base and size configurable to create NPIO AML for
ACPI NFIT. Since a different architecture like AArch64 does not use
port-mapped IO, a configurable IO base is required to create correct
mapping of ACPI IO address and size.

Signed-off-by: Kwangwoo Lee <kwangwoo.lee@sk.com>
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20200421125934.14952-3-shameerali.kolothum.thodi@huawei.com>
Acked-by: Peter Maydell <peter.maydell@linaro.org>
Tested-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/acpi/nvdimm.c
hw/i386/acpi-build.c
hw/i386/acpi-build.h
hw/i386/pc_piix.c
hw/i386/pc_q35.c
include/hw/mem/nvdimm.h