Re: [Qemu-devel] [PATCH] acpi: fix assert failure caused by commit 35c5a52d

2016-10-24 Thread Xiao Guangrong
On 10/19/2016 05:19 PM, Haozhong Zhang wrote: Commit 35c5a52d "acpi: do not use TARGET_PAGE_SIZE" changed struct NvdimmDsmIn from a variable-size structure to a fixed-size structure of 4096 bytes. It forgot to adjust an assert in nvdimm_dsm_set_label_data(..., NvdimmDsmIn *in, ...): assert(

Re: [Qemu-devel] [PATCH] acpi: fix assert failure caused by commit 35c5a52d

2016-10-19 Thread Dan Williams
On Wed, Oct 19, 2016 at 2:19 AM, Haozhong Zhang wrote: > Commit 35c5a52d "acpi: do not use TARGET_PAGE_SIZE" changed struct > NvdimmDsmIn from a variable-size structure to a fixed-size structure of > 4096 bytes. It forgot to adjust an assert in > nvdimm_dsm_set_label_data(..., NvdimmDsmIn *in, ...

[Qemu-devel] [PATCH] acpi: fix assert failure caused by commit 35c5a52d

2016-10-19 Thread Haozhong Zhang
Commit 35c5a52d "acpi: do not use TARGET_PAGE_SIZE" changed struct NvdimmDsmIn from a variable-size structure to a fixed-size structure of 4096 bytes. It forgot to adjust an assert in nvdimm_dsm_set_label_data(..., NvdimmDsmIn *in, ...): assert(sizeof(*in) + sizeof(*set_label_data) + set_label_