On 11/16/2010 09:02 AM, Alexander Graf wrote:
+static QemuRamSlot *qemu_ram_find_slot(target_phys_addr_t start_addr,
+ ram_addr_t size)
+{
+ QemuRamSlot *slot;
+
+ QLIST_FOREACH(slot,&ram_slots.slots, next) {
+ if (slot->start_addr == start_addr&& slot->size == size) {
+ return slot;
+ }
+
+ if (ranges_overlap(start_addr, size, slot->start_addr, slot->size)) {
+ abort();
Should display a message before aborting.
Why not use hw_error?
Another good suggestion.
Regards,
Anthony Liguori
Alex--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html