nvdimm acpi: let qemu handle _DSM method
commit18c440e1e14c95ac3effc9a8b9ea95030b6362e1
authorXiao Guangrong <guangrong.xiao@linux.intel.com>
Fri, 4 Mar 2016 16:00:34 +0000 (5 00:00 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 11 Mar 2016 14:59:11 +0000 (11 16:59 +0200)
tree506008925cbfcee3e4340ba060d1eab896bbe3b1
parentb99514135bd0c148f5d963a850e183770f46eb69
nvdimm acpi: let qemu handle _DSM method

If dsm memory is successfully patched, we let qemu fully emulate
the dsm method

This patch saves _DSM input parameters into dsm memory, tell dsm
memory address to QEMU, then fetch the result from the dsm memory

Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/acpi/nvdimm.c