memhp: move DIMM devices into dedicated scope with related common methods
commite1a58fc05aba0ffe014a8dc0bddc0c9dc5a0631a
authorIgor Mammedov <imammedo@redhat.com>
Mon, 5 Dec 2016 23:32:29 +0000 (6 00:32 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 10 Jan 2017 05:03:24 +0000 (10 07:03 +0200)
tree76edb76897ee5efe26affe9152f8cec27c620406
parent80db0e7822962554c91bef05d784c898e8ab1c3c
memhp: move DIMM devices into dedicated scope with related common methods

Move DIMM devices from global _SB scope to a new \_SB.MHPC
container along with common methods used by DIMMs:
  MCRS, MRST, MPXM, MOST, MEJ00, MSCN, MTFY

this reduces AML size on 12 * #slots bytes,
i.e. up to 3072 bytes for 265 slots.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
hw/acpi/memory_hotplug.c