qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 0/3] memory-device: refine memory_device_get_free_ad


From: Wei Yang
Subject: [Qemu-devel] [PATCH 0/3] memory-device: refine memory_device_get_free_addr
Date: Sun, 28 Jul 2019 21:13:01 +0800

When we iterate the memory-device list to get the available range, it is not
necessary to iterate the whole list.

1) the first non-overlap range is the proper one if no hint is provided
2) no more overlap for hinted range if tmp exceed it

Wei Yang (3):
  memory-device: not necessary to use goto for the last check
  memory-device: break the loop if no hint is provided
  memory-device: break the loop if tmp exceed the hinted range

 hw/mem/memory-device.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

-- 
2.17.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]