From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a54a4-0008TP-Qg for qemu-devel@nongnu.org; Fri, 04 Dec 2015 23:36:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a54a1-0004CV-IE for qemu-devel@nongnu.org; Fri, 04 Dec 2015 23:36:20 -0500 Received: from mga02.intel.com ([134.134.136.20]:61162) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a54a1-0004BS-Bt for qemu-devel@nongnu.org; Fri, 04 Dec 2015 23:36:17 -0500 References: <1447671063-92665-1-git-send-email-guangrong.xiao@linux.intel.com> <5661C171.20306@virtuozzo.com> From: Xiao Guangrong Message-ID: <56626840.3050501@linux.intel.com> Date: Sat, 5 Dec 2015 12:29:52 +0800 MIME-Version: 1.0 In-Reply-To: <5661C171.20306@virtuozzo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v8 0/5] implement vNVDIMM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vladimir Sementsov-Ogievskiy , pbonzini@redhat.com, imammedo@redhat.com Cc: ehabkost@redhat.com, kvm@vger.kernel.org, mst@redhat.com, gleb@kernel.org, mtosatti@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com, dan.j.williams@intel.com, rth@twiddle.net On 12/05/2015 12:38 AM, Vladimir Sementsov-Ogievskiy wrote: > On 16.11.2015 13:50, Xiao Guangrong wrote: >> NVDIMM (A Non-Volatile Dual In-line Memory Module) is going to be supported >> on Intel's platform. > > Hi. > > One question: do this mean, that your qemu emulated nvidimm - pmem solution will work only on Intel > host? Currently, it is only enabled in x86 emulator, however, it can be easily enabled on other platform which supports acpi. BTW, you also need to check the linux kernel driver, nfit.ko, which is currently only working on x86 IIUC: config ACPI_NFIT tristate "ACPI NVDIMM Firmware Interface Table (NFIT)" depends on PHYS_ADDR_T_64BIT depends on BLK_DEV depends on ARCH_HAS_MMIO_FLUSH select LIBNVDIMM help Infrastructure to probe ACPI 6 compliant platforms for NVDIMMs (NFIT) and register a libnvdimm device tree. In addition to storage devices this also enables libnvdimm to pass ACPI._DSM messages for platform/dimm configuration. To compile this driver as a module, choose M here: the module will be called nfit. $ git grep ARCH_HAS_MMIO_FLUSH arch/x86/Kconfig: select ARCH_HAS_MMIO_FLUSH drivers/acpi/Kconfig: depends on ARCH_HAS_MMIO_FLUSH lib/Kconfig:config ARCH_HAS_MMIO_FLUSH You should check ARCH_HAS_MMIO_FLUSH on your platform. Thanks!