Re: [Qemu-devel] [PATCH v3 5/8] nvdimm acpi: introduce patched dsm memory

2016-03-01 Thread Xiao Guangrong
On 03/01/2016 05:08 PM, Michael S. Tsirkin wrote: On Tue, Mar 01, 2016 at 04:53:23PM +0800, Xiao Guangrong wrote: On 02/29/2016 05:38 PM, Michael S. Tsirkin wrote: +/* Build NAME(, 0x) where 0x is encoded as a dword, + * and return the offset to 0x for runtime

Re: [Qemu-devel] [PATCH v3 5/8] nvdimm acpi: introduce patched dsm memory

2016-03-01 Thread Michael S. Tsirkin
On Tue, Mar 01, 2016 at 04:53:23PM +0800, Xiao Guangrong wrote: > > > On 02/29/2016 05:38 PM, Michael S. Tsirkin wrote: > > >+/* Build NAME(, 0x) where 0x is encoded as a dword, > >+ * and return the offset to 0x for runtime patching. > >+ * > >+ * Warning: runtime

Re: [Qemu-devel] [PATCH v3 5/8] nvdimm acpi: introduce patched dsm memory

2016-03-01 Thread Xiao Guangrong
On 02/29/2016 05:38 PM, Michael S. Tsirkin wrote: +/* Build NAME(, 0x) where 0x is encoded as a dword, + * and return the offset to 0x for runtime patching. + * + * Warning: runtime patching is best avoided. Only use this as + * a replacement for DataTableRegion

Re: [Qemu-devel] [PATCH v3 5/8] nvdimm acpi: introduce patched dsm memory

2016-03-01 Thread Xiao Guangrong
On 02/29/2016 05:38 PM, Michael S. Tsirkin wrote: On Sun, Feb 14, 2016 at 04:51:02PM +0800, Xiao Guangrong wrote: The dsm memory is used to save the input parameters and store the dsm result which is filled by QEMU. The address of dsm memory is decided by bios and patched into int32 object

Re: [Qemu-devel] [PATCH v3 5/8] nvdimm acpi: introduce patched dsm memory

2016-02-29 Thread Michael S. Tsirkin
On Sun, Feb 14, 2016 at 04:51:02PM +0800, Xiao Guangrong wrote: > The dsm memory is used to save the input parameters and store > the dsm result which is filled by QEMU. > > The address of dsm memory is decided by bios and patched into > int32 object named "MEMA" > > Signed-off-by: Xiao

[Qemu-devel] [PATCH v3 5/8] nvdimm acpi: introduce patched dsm memory

2016-02-14 Thread Xiao Guangrong
The dsm memory is used to save the input parameters and store the dsm result which is filled by QEMU. The address of dsm memory is decided by bios and patched into int32 object named "MEMA" Signed-off-by: Xiao Guangrong --- hw/acpi/nvdimm.c | 34