Re: [Qemu-devel] [PATCH v4 1/3] nvdimm acpi: introduce fit buffer

2016-11-03 Thread Igor Mammedov
On Thu, 3 Nov 2016 19:09:35 +0800 Xiao Guangrong wrote: > On 11/03/2016 07:02 PM, Igor Mammedov wrote: > > On Thu, 3 Nov 2016 11:51:28 +0800 > > Xiao Guangrong wrote: > > > >> The buffer is used to save the FIT info for all the presented nvdimm > >> devices which is updated after the nvdimm d

Re: [Qemu-devel] [PATCH v4 1/3] nvdimm acpi: introduce fit buffer

2016-11-03 Thread Xiao Guangrong
On 11/03/2016 07:02 PM, Igor Mammedov wrote: On Thu, 3 Nov 2016 11:51:28 +0800 Xiao Guangrong wrote: The buffer is used to save the FIT info for all the presented nvdimm devices which is updated after the nvdimm device is plugged or unplugged. In the later patch, it will be used to construc

Re: [Qemu-devel] [PATCH v4 1/3] nvdimm acpi: introduce fit buffer

2016-11-03 Thread Igor Mammedov
On Thu, 3 Nov 2016 11:51:28 +0800 Xiao Guangrong wrote: > The buffer is used to save the FIT info for all the presented nvdimm > devices which is updated after the nvdimm device is plugged or > unplugged. In the later patch, it will be used to construct NVDIMM > ACPI _FIT method which reflects t

Re: [Qemu-devel] [PATCH v4 1/3] nvdimm acpi: introduce fit buffer

2016-11-03 Thread Xiao Guangrong
On 11/03/2016 06:00 PM, Stefan Hajnoczi wrote: On Thu, Nov 03, 2016 at 11:51:28AM +0800, Xiao Guangrong wrote: +static void nvdimm_init_fit_buffer(NvdimmFitBuffer *fit_buf) +{ +fit_buf->fit = g_array_new(false, true /* clear */, 1); +} + +static void nvdimm_build_fit_buffer(NvdimmFitBuffer

Re: [Qemu-devel] [PATCH v4 1/3] nvdimm acpi: introduce fit buffer

2016-11-03 Thread Stefan Hajnoczi
On Thu, Nov 03, 2016 at 11:51:28AM +0800, Xiao Guangrong wrote: > +static void nvdimm_init_fit_buffer(NvdimmFitBuffer *fit_buf) > +{ > +fit_buf->fit = g_array_new(false, true /* clear */, 1); > +} > + > +static void nvdimm_build_fit_buffer(NvdimmFitBuffer *fit_buf) > +{ > +g_array_free(fit_

[Qemu-devel] [PATCH v4 1/3] nvdimm acpi: introduce fit buffer

2016-11-02 Thread Xiao Guangrong
The buffer is used to save the FIT info for all the presented nvdimm devices which is updated after the nvdimm device is plugged or unplugged. In the later patch, it will be used to construct NVDIMM ACPI _FIT method which reflects the presented nvdimm devices after nvdimm hotplug As FIT buffer can