]> Git Repo - qemu.git/commit
nvdimm acpi: clean up nvdimm_build_acpi
authorXiao Guangrong <[email protected]>
Mon, 7 Nov 2016 11:13:40 +0000 (19:13 +0800)
committerMichael S. Tsirkin <[email protected]>
Tue, 15 Nov 2016 15:20:37 +0000 (17:20 +0200)
commit264813cb9d0eea199d48c6ea917060683685d1e0
tree996a41bbdbbf0c62b98d7e1de3406bafd50b9f34
parent3e8522e23f6ab3c2b89ebb962ec4c2227d88aca6
nvdimm acpi: clean up nvdimm_build_acpi

To make the code more clearer, we
1) check ram_slots first, and build ssdt & nfit only when it is available
2) use nvdimm_get_plugged_device_list() to check if there is nvdimm device
   plugged

Suggested-by: Igor Mammedov <[email protected]>
Signed-off-by: Xiao Guangrong <[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Reviewed-by: Igor Mammedov <[email protected]>
hw/acpi/nvdimm.c
This page took 0.025455 seconds and 4 git commands to generate.