]> git.proxmox.com Git - mirror_qemu.git/commit - include/hw/i386/pc.h
pc: align DIMM's address/size by backend's alignment value
authorIgor Mammedov <imammedo@redhat.com>
Fri, 31 Oct 2014 16:38:39 +0000 (16:38 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 23 Nov 2014 10:12:39 +0000 (12:12 +0200)
commit91aa70ab2a748e3a72004d1a729248221b7bb24a
treee438dd682951b8e3ca40c7a8d401f309baeb40dd
parenta2b257d6212ade772473f86bf0637480b2578a7e
pc: align DIMM's address/size by backend's alignment value

Performance wise it's better to align GVA by the backend's
page size.

Also do not allow to create DIMM device with suboptimal
size (i.e. not aligned to backends page size) to aviod
memory loss.

Do above only for 2.2 and newer machine types to avoid
breaking working configs with 2.1 machine type.

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>
hw/i386/pc.c
hw/i386/pc_piix.c
hw/i386/pc_q35.c
include/hw/i386/pc.h