1. 11 3月, 2011 1 次提交
    • V
      Fix performance regression in qemu_get_ram_ptr · 7d82af38
      Vincent Palatin 提交于
      When the commit f471a17e converted the
      ram_blocks structure to QLIST, it also removed the conditional check before
      switching the current block at the beginning of the list.
      
      In the common use case where ram_blocks has a few blocks with only one
      frequently accessed (the main RAM), this has a performance impact as it
      performs the useless list operations on each call (which are on a really
      hot path).
      
      On my machine emulation (ARM on amd64), this patch reduces the
      percentage of CPU time spent in qemu_get_ram_ptr from 6.3% to 2.1% in the
      profiling of a full boot.
      Signed-off-by: NVincent Palatin <vpalatin@chromium.org>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      7d82af38
  2. 10 3月, 2011 6 次提交
  3. 07 3月, 2011 33 次提交