qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] pc: memory hotplug fixes
@ 2014-06-09 17:27 Igor Mammedov
  2014-06-09 17:28 ` [Qemu-devel] [PATCH 1/2] pc: q35: acpi: report error to user on unsupported unplug request Igor Mammedov
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Igor Mammedov @ 2014-06-09 17:27 UTC (permalink / raw)
  To: qemu-devel; +Cc: vasilis.liaskovitis, andrey, mst

Series is build on mst/pci tree that includes memory hotplug bits.

patch 2/2, fixes incorrect address auto-allocation caused by wrong
sorting order due to overflow in pc_dimm_addr_sort() comparator.

Test-case is to build qemu with stderr trace backend and start qemu with
following command line:

echo mhp_pc_dimm_assigned_address > /tmp/mhp
qemu-system-x86_64 -m 512,slots=62,maxmem=16G \
 -object memory-backend-ram,id=m2,size=256M -object memory-backend-ram,id=m3,size=256M \
 -object memory-backend-ram,id=m4,size=256M -object memory-backend-ram,id=m5,size=256M \
 -object memory-backend-ram,id=m6,size=256M -object memory-backend-ram,id=m7,size=256M \
 -object memory-backend-ram,id=m8,size=256M -object memory-backend-ram,id=m9,size=256M \
 -object memory-backend-ram,id=m10,size=256M -object memory-backend-ram,id=m11,size=256M \
 -object memory-backend-ram,id=m12,size=256M -object memory-backend-ram,id=m13,size=256M \
 -device pc-dimm,id=d1,memdev=m1 -device pc-dimm,id=d2,memdev=m2 -device pc-dimm,id=d3,memdev=m3 \
 -device pc-dimm,id=d4,memdev=m4 -device pc-dimm,id=d5,memdev=m5 -device pc-dimm,id=d6,memdev=m6 \
 -device pc-dimm,id=d7,memdev=m7 -device pc-dimm,id=d8,memdev=m8 -device pc-dimm,id=d9,memdev=m9 \
 -device pc-dimm,id=d10,memdev=m10 -device pc-dimm,id=d11,memdev=m11 -device pc-dimm,id=d12,memdev=m12 \
 -device pc-dimm,id=d13,memdev=m13 \
 -trace events=/tmp/mhp

output with incorrect addesses would look like:
mhp_pc_dimm_assigned_address 0x100000000
mhp_pc_dimm_assigned_address 0x110000000
mhp_pc_dimm_assigned_address 0x120000000
mhp_pc_dimm_assigned_address 0x130000000
mhp_pc_dimm_assigned_address 0x140000000
mhp_pc_dimm_assigned_address 0x150000000
mhp_pc_dimm_assigned_address 0x160000000
mhp_pc_dimm_assigned_address 0x170000000
mhp_pc_dimm_assigned_address 0x180000000
mhp_pc_dimm_assigned_address 0x180000000
mhp_pc_dimm_assigned_address 0x180000000
mhp_pc_dimm_assigned_address 0x180000000
mhp_pc_dimm_assigned_address 0x180000000

where last 5 dimms were assigned the same address.

Igor Mammedov (2):
  pc: q35: acpi: report error to user on unsupported unplug request
  pc-dimm: fix large address sorting during auto-allocation

 hw/isa/lpc_ich9.c | 2 ++
 hw/mem/pc-dimm.c  | 8 +++++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

-- 
1.9.3

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-06-19 12:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-09 17:27 [Qemu-devel] [PATCH 0/2] pc: memory hotplug fixes Igor Mammedov
2014-06-09 17:28 ` [Qemu-devel] [PATCH 1/2] pc: q35: acpi: report error to user on unsupported unplug request Igor Mammedov
2014-06-09 17:28 ` [Qemu-devel] [PATCH 2/2] pc-dimm: fix large address sorting during auto-allocation Igor Mammedov
2014-06-10 11:05 ` [Qemu-devel] [PATCH 0/2] pc: memory hotplug fixes Michael S. Tsirkin
2014-06-10 14:25   ` Igor Mammedov
2014-06-19 12:42 ` Vasilis Liaskovitis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).