From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57145) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVISD-000299-MD for qemu-devel@nongnu.org; Tue, 19 Jun 2018 11:21:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVIS9-0004AA-KM for qemu-devel@nongnu.org; Tue, 19 Jun 2018 11:21:57 -0400 Received: from mga18.intel.com ([134.134.136.126]:5636) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fVIS9-00046S-9V for qemu-devel@nongnu.org; Tue, 19 Jun 2018 11:21:53 -0400 From: Liu Jingqi Date: Tue, 19 Jun 2018 23:20:51 +0800 Message-Id: <1529421657-14969-1-git-send-email-jingqi.liu@intel.com> Subject: [Qemu-devel] [PATCH V1 RESEND 0/6] Build ACPI Heterogeneous Memory Attribute Table (HMAT) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: imammedo@redhat.com, ehabkost@redhat.com, eblake@redhat.com, pbonzini@redhat.com, mst@redhat.com, marcel.apfelbaum@gmail.com, rth@twiddle.net, armbru@redhat.com Cc: qemu-devel@nongnu.org, Liu Jingqi This series of patches will build Heterogeneous Memory Attribute Table (HMAT) according to the command line. The ACPI HMAT describes the memory attributes, such as memory side cache attributes and bandwidth and latency details, related to the System Physical Address (SPA) Memory Ranges. The software is expected to use this information as hint for optimization. OSPM evaluates HMAT only during system initialization. Any changes to the HMAT state at runtime or information regarding HMAT for hot plug are communicated using the _HMA method. Liu Jingqi (6): hmat acpi: Build Memory Subsystem Address Range Structure(s) in ACPI HMAT hmat acpi: Build System Locality Latency and Bandwidth Information Structure(s) in ACPI HMAT hmat acpi: Build Memory Side Cache Information Structure(s) in ACPI HMAT numa: Extend the command-line to provide memory latency and bandwidth information numa: Extend the command-line to provide memory side cache information hmat acpi: Implement _HMA method to update HMAT at runtime default-configs/x86_64-softmmu.mak | 1 + hw/acpi/Makefile.objs | 1 + hw/acpi/hmat.c | 649 +++++++++++++++++++++++++++++++++++++ hw/acpi/hmat.h | 264 +++++++++++++++ hw/i386/acpi-build.c | 122 ++++--- hw/i386/acpi-build.h | 10 + hw/i386/pc.c | 2 + hw/i386/pc_piix.c | 3 + hw/i386/pc_q35.c | 3 + include/hw/i386/pc.h | 2 + include/sysemu/numa.h | 2 + numa.c | 202 ++++++++++++ qapi/misc.json | 160 ++++++++- qemu-options.hx | 28 +- 14 files changed, 1401 insertions(+), 48 deletions(-) create mode 100644 hw/acpi/hmat.c create mode 100644 hw/acpi/hmat.h -- 2.7.4