1. 23 3月, 2016 2 次提交
    • P
      qemu-log: Improve the "exec" TB execution logging · 1a830635
      Peter Maydell 提交于
      Improve the TB execution logging so that it is easier to identify
      what is happening from trace logs:
       * move the "Trace" logging of executed TBs into cpu_tb_exec()
         so that it is emitted if and only if we actually execute a TB,
         and for consistency for the CPU state logging
       * log when we link two TBs together via tb_add_jump()
       * log when cpu_tb_exec() returns early from a chain of TBs
      
      The new style logging looks like this:
      
      Trace 0x7fb7cc822ca0 [ffffffc0000dce00]
      Linking TBs 0x7fb7cc822ca0 [ffffffc0000dce00] index 0 -> 0x7fb7cc823110 [ffffffc0000dce10]
      Trace 0x7fb7cc823110 [ffffffc0000dce10]
      Trace 0x7fb7cc823420 [ffffffc000302688]
      Trace 0x7fb7cc8234a0 [ffffffc000302698]
      Trace 0x7fb7cc823520 [ffffffc0003026a4]
      Trace 0x7fb7cc823560 [ffffffc0000dce44]
      Linking TBs 0x7fb7cc823560 [ffffffc0000dce44] index 1 -> 0x7fb7cc8235d0 [ffffffc0000dce70]
      Trace 0x7fb7cc8235d0 [ffffffc0000dce70]
      Stopped execution of TB chain before 0x7fb7cc8235d0 [ffffffc0000dce70]
      Trace 0x7fb7cc8235d0 [ffffffc0000dce70]
      Trace 0x7fb7cc822fd0 [ffffffc0000dd52c]
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NAlex Bennée <alex.bennee@linaro.org>
      [AJB: reword patch title, Abandoned->Stopped]
      Reviewed-by: NAurelien Jarno <aurelien@aurel32.net>
      Reviewed-by: NRichard Henderson <rth@twiddle.net>
      Message-Id: <1458052224-9316-6-git-send-email-alex.bennee@linaro.org>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      1a830635
    • M
      Use scripts/clean-includes to drop redundant qemu/typedefs.h · 14b6d44d
      Markus Armbruster 提交于
      Re-run scripts/clean-includes to apply the previous commit's
      corrections and updates.  Besides redundant qemu/typedefs.h, this only
      finds a redundant config-host.h include in ui/egl-helpers.c.  No idea
      how that escaped the previous runs.
      
      Some manual whitespace trimming around dropped includes squashed in.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      14b6d44d
  2. 07 3月, 2016 4 次提交
  3. 25 2月, 2016 3 次提交
  4. 23 2月, 2016 2 次提交
  5. 11 2月, 2016 1 次提交
  6. 09 2月, 2016 2 次提交
  7. 05 2月, 2016 1 次提交
  8. 03 2月, 2016 1 次提交
  9. 21 1月, 2016 7 次提交
  10. 10 1月, 2016 1 次提交
  11. 18 12月, 2015 6 次提交
  12. 17 12月, 2015 1 次提交
    • E
      exec: Eliminate qemu_ram_free_from_ptr() · a29ac166
      Eduardo Habkost 提交于
      Replace qemu_ram_free_from_ptr() with qemu_ram_free().
      
      The only difference between qemu_ram_free_from_ptr() and
      qemu_ram_free() is that g_free_rcu() is used instead of
      call_rcu(reclaim_ramblock). We can safely replace it because:
      
      * RAM blocks allocated by qemu_ram_alloc_from_ptr() always have
        RAM_PREALLOC set;
      * reclaim_ramblock(block) will do nothing except g_free(block)
        if RAM_PREALLOC is set at block->flags.
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      Message-Id: <1446844805-14492-2-git-send-email-ehabkost@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      a29ac166
  13. 02 12月, 2015 1 次提交
    • P
      translate-all: ensure host page mask is always extended with 1's · 0c2d70c4
      Paolo Bonzini 提交于
      Anthony reported that >4GB guests on Xen with 32bit QEMU broke after
      commit 4ed023ce ("Round up RAMBlock sizes to host page sizes", 2015-11-05).
      
      In that patch sizes are masked against qemu_host_page_size/mask which
      are uintptr_t, and thus 32bit on a 32bit QEMU, even though the ram space
      might be bigger than 4GB on Xen.
      
      Since ram_addr_t is not available on user-mode emulation targets, ensure
      that we get a sign extension when masking away the low bits of the address.
      Remove the ~10 year old scary comment that the type of these variables
      is probably wrong, with another equally scary comment.  The new comment
      however does not have "???" in it, which is arguably an improvement.
      
      For completeness use the alignment macros in linux-user and bsd-user
      instead of manually doing an &.  linux-user and bsd-user are not affected
      by the Xen issue, however.
      Reviewed-by: NJuan Quintela <quintela@redhat.com>
      Reported-by: NAnthony PERARD <anthony.perard@citrix.com>
      Fixes: 4ed023ceSigned-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      0c2d70c4
  14. 10 11月, 2015 3 次提交
  15. 05 11月, 2015 1 次提交
  16. 19 10月, 2015 1 次提交
  17. 13 10月, 2015 2 次提交
    • P
      exec: remove non-TCG stuff from exec-all.h header. · 88401cbc
      Paolo Bonzini 提交于
      The header is included from basically everywhere, thanks to cpu.h.
      It should be moved to the (TCG only) files that actually need it.
      As a start, remove non-TCG stuff.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      88401cbc
    • P
      exec.c: Collect AddressSpace related fields into a CPUAddressSpace struct · 32857f4d
      Peter Maydell 提交于
      Gather up all the fields currently in CPUState which deal with the CPU's
      AddressSpace into a separate CPUAddressSpace struct. This paves the way
      for allowing the CPU to know about more than one AddressSpace.
      
      The rearrangement also allows us to make the MemoryListener a directly
      embedded object in the CPUAddressSpace (it could not be embedded in
      CPUState because 'struct MemoryListener' isn't defined for the user-only
      builds). This allows us to resolve the FIXME in tcg_commit() by going
      directly from the MemoryListener to the CPUAddressSpace.
      
      This patch extracts the actual update of the cached dispatch pointer
      from cpu_reload_memory_map() (which is renamed accordingly to
      cpu_reloading_memory_map() as it is only responsible for breaking
      cpu-exec.c's RCU critical section now). This lets us keep the definition
      of the CPUAddressSpace struct private to exec.c.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-Id: <1443709790-25180-4-git-send-email-peter.maydell@linaro.org>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      32857f4d
  18. 07 10月, 2015 1 次提交