1. 30 10月, 2015 7 次提交
    • D
      gdb command: qemu handlers · c900ef86
      Dr. David Alan Gilbert 提交于
      A new gdb commands are added:
      
        qemu handlers
      
           That dumps an AioContext list (by default qemu_aio_context)
           possibly including a backtrace for cases it knows about
           (with the verbose option).  Intended to help find why something
           is hanging waiting for IO.
      
        Use 'qemu handlers --verbose iohandler_ctx'  to find out why
      your incoming migration is stuck.
      Signed-off-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
      Message-id: 1445951385-11924-1-git-send-email-dgilbert@redhat.com
      
      V2:
        Merge into one command with optional handlers arg, and only do
          backtrace in verbose mode
      
       (gdb) qemu handlers
       ----
       {pfd = {fd = 6, events = 25, revents = 0}, io_read = 0x55869656ffd0
       <event_notifier_dummy_cb>, io_write = 0x0, deleted = 0, opaque =
       0x558698c4ce08, node = {le_next = 0x0, le_prev = 0x558698c4cdc0}}
      
       (gdb) qemu handlers iohandler_ctx
       ----
       {pfd = {fd = 9, events = 25, revents = 0}, io_read = 0x558696581380
       <fd_coroutine_enter>, io_write = 0x0, deleted = 0, opaque =
       0x558698dc99d0, node = {le_next = 0x558698c4cca0, le_prev =
       0x558698c4c1d0}}
       ----
       {pfd = {fd = 4, events = 25, revents = 0}, io_read = 0x55869657b330
       <sigfd_handler>, io_write = 0x0, deleted = 0, opaque = 0x4, node =
       {le_next = 0x558698c4c260, le_prev = 0x558699f72508}}
       ----
       {pfd = {fd = 5, events = 25, revents = 0}, io_read = 0x55869656ffd0
       <event_notifier_dummy_cb>, io_write = 0x0, deleted = 0, opaque =
       0x558698c4c218, node = {le_next = 0x0, le_prev = 0x558698c4ccc8}}
       ----
       (gdb) qemu handlers --verbose iohandler_ctx
       ----
       {pfd = {fd = 9, events = 25, revents = 0}, io_read = 0x558696581380
       <fd_coroutine_enter>, io_write = 0x0, deleted = 0, opaque =
       0x558698dc99d0, node = {le_next = 0x558698c4cca0, le_prev =
       0x558698c4c1d0}}
       #0  0x0000558696581820 in qemu_coroutine_switch
       (from_=from_@entry=0x558698cb3cf0, to_=to_@entry=0x7f421c37eac8,
       action=action@entry=COROUTINE_YIELD) at
       /home/dgilbert/git/qemu/coroutine-ucontext.c:177
       #1  0x0000558696580c00 in qemu_coroutine_yield () at
       /home/dgilbert/git/qemu/qemu-coroutine.c:145
       #2  0x00005586965814f5 in yield_until_fd_readable (fd=9) at
       /home/dgilbert/git/qemu/qemu-coroutine-io.c:90
       #3  0x0000558696523937 in socket_get_buffer (opaque=0x55869a3dc620,
       buf=0x558698c505a0 "", pos=<optimized out>, size=32768) at
       /home/dgilbert/git/qemu/migration/qemu-file-unix.c:101
       #4  0x0000558696521fac in qemu_fill_buffer (f=0x558698c50570) at
       /home/dgilbert/git/qemu/migration/qemu-file.c:227
       #5  0x0000558696522989 in qemu_peek_byte (f=0x558698c50570, offset=0)
           at /home/dgilbert/git/qemu/migration/qemu-file.c:507
       #6  0x0000558696522bf4 in qemu_get_be32 (f=0x558698c50570) at
       /home/dgilbert/git/qemu/migration/qemu-file.c:520
       #7  0x0000558696522bf4 in qemu_get_be32 (f=f@entry=0x558698c50570)
           at /home/dgilbert/git/qemu/migration/qemu-file.c:604
       #8  0x0000558696347e5c in qemu_loadvm_state (f=f@entry=0x558698c50570)
           at /home/dgilbert/git/qemu/migration/savevm.c:1821
       #9  0x000055869651de8c in process_incoming_migration_co
       (opaque=0x558698c50570)
           at /home/dgilbert/git/qemu/migration/migration.c:336
       #10 0x000055869658188a in coroutine_trampoline (i0=<optimized out>,
       i1=<optimized out>)
           at /home/dgilbert/git/qemu/coroutine-ucontext.c:80
       #11 0x00007f420f05df10 in __start_context () at /lib64/libc.so.6
       #12 0x00007ffc40815f50 in  ()
       #13 0x0000000000000000 in  ()
      
        ----
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      c900ef86
    • C
      virtio-blk: switch off scsi-passthrough by default · ed65fd1a
      Cornelia Huck 提交于
      Devices that are compliant with virtio-1 do not support scsi
      passthrough any more (and it has not been a recommended setup
      anyway for quite some time). To avoid having to switch it off
      explicitly in newer qemus that turn on virtio-1 by default, let's
      switch the default to scsi=false for 2.5.
      Signed-off-by: NCornelia Huck <cornelia.huck@de.ibm.com>
      Message-id: 1444991154-79217-4-git-send-email-cornelia.huck@de.ibm.com
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      ed65fd1a
    • C
      ppc/spapr: add 2.4 compat props · 80fd50f9
      Cornelia Huck 提交于
      HW_COMPAT_2_4 will become non-empty: prepare for it.
      Signed-off-by: NCornelia Huck <cornelia.huck@de.ibm.com>
      Message-id: 1444991154-79217-3-git-send-email-cornelia.huck@de.ibm.com
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      80fd50f9
    • C
      s390x: include HW_COMPAT_* props · 54d8ec84
      Cornelia Huck 提交于
      We want to inherit generic hw compat as well.
      Signed-off-by: NCornelia Huck <cornelia.huck@de.ibm.com>
      Acked-by: NChristian Borntraeger <borntraeger@de.ibm.com>
      Message-id: 1444991154-79217-2-git-send-email-cornelia.huck@de.ibm.com
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      54d8ec84
    • P
      qemu-gdb: add $qemu_coroutine_sp and $qemu_coroutine_pc · a201b0ff
      Paolo Bonzini 提交于
      These can be useful to manually get a stack trace of a coroutine inside
      a core dump.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Message-id: 1444636974-19950-4-git-send-email-pbonzini@redhat.com
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      a201b0ff
    • P
      qemu-gdb: extract parts of "qemu coroutine" implementation · 80ab31b2
      Paolo Bonzini 提交于
      Provide useful Python functions to reach and decipher a jmpbuf.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Message-id: 1444636974-19950-3-git-send-email-pbonzini@redhat.com
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      80ab31b2
    • P
      qemu-gdb: allow using glibc_pointer_guard() on core dumps · 1138f246
      Paolo Bonzini 提交于
      get_fs_base() cannot be run on a core dump, because it uses the arch_prctl
      system call.  The fs base is the value that is returned by pthread_self(),
      and it would be nice to just glean it from the "info threads" output:
      
      * 1    Thread 0x7f16a3fff700 (LWP 33642) pthread_cond_wait@@GLIBC_2.3.2 ()
                    ^^^^^^^^^^^^^^
      
      but unfortunately the gdb API does not provide that.  Instead, we can
      look for the "arg" argument of the start_thread function if glibc debug
      information are available.  If not, fall back to the old mechanism.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Message-id: 1444636974-19950-2-git-send-email-pbonzini@redhat.com
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      1138f246
  2. 29 10月, 2015 19 次提交
  3. 28 10月, 2015 6 次提交
    • P
      Merge remote-tracking branch 'remotes/ehabkost/tags/x86-pull-request' into staging · 496feddd
      Peter Maydell 提交于
      target-i386: finally enable "check" mode by default
      
      # gpg: Signature made Wed 28 Oct 2015 14:13:10 GMT using RSA key ID 984DC5A6
      # gpg: Good signature from "Eduardo Habkost <ehabkost@redhat.com>"
      
      * remotes/ehabkost/tags/x86-pull-request:
        target-i386: Enable "check" mode by default
        target-i386: Don't left shift negative constant
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      496feddd
    • P
      Merge remote-tracking branch 'remotes/mcayland/tags/qemu-openbios-signed' into staging · 739680da
      Peter Maydell 提交于
      Update OpenBIOS images
      
      # gpg: Signature made Wed 28 Oct 2015 00:02:46 GMT using RSA key ID AE0F321F
      # gpg: Good signature from "Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>"
      
      * remotes/mcayland/tags/qemu-openbios-signed:
        Update OpenBIOS images
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      739680da
    • M
      Update OpenBIOS images · 637016c2
      Mark Cave-Ayland 提交于
      Update OpenBIOS images to SVN r1353 built from submodule.
      Signed-off-by: NMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
      637016c2
    • E
      target-i386: Enable "check" mode by default · 15e41345
      Eduardo Habkost 提交于
      Current default behavior of QEMU is to silently disable features that
      are not supported by the host when a CPU model is requested in the
      command-line. This means that in addition to risking breaking guest ABI
      by default, we are silent about it.
      
      I would like to enable "enforce" by default, but this can easily break
      existing production systems because of the way libvirt makes assumptions
      about CPU models today (this will change in the future, once QEMU
      provide a proper interface for checking if a CPU model is runnable).
      
      But there's no reason we should be silent about it. So, change
      target-i386 to enable "check" mode by default so at least we have some
      warning printed to stderr (and hopefully logged somewhere) when QEMU
      disables a feature that is not supported by the host system.
      Reviewed-by: NIgor Mammedov <imammedo@redhat.com>
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      15e41345
    • E
      target-i386: Don't left shift negative constant · 712b4243
      Eduardo Habkost 提交于
      Left shift of negative values is undefined behavior. Detected by clang:
        qemu/target-i386/translate.c:2423:26: runtime error:
          left shift of negative value -8
      
      This changes the code to reverse the sign after the left shift.
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      712b4243
    • P
      Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20151027-1' into staging · c012e1b7
      Peter Maydell 提交于
      target-arm queue:
       * more EL2 preparation: handling for stage 2 translations
       * standardize debug macros in i.MX devices
       * improve error message in a corner case for virt board
       * disable live migration of KVM GIC if the kernel can't handle it
       * add SPSR_(ABT|UND|IRQ|FIQ) registers
       * handle non-executable page-straddling Thumb instructions
       * fix a "no 64-bit EL2" assumption in arm_excp_unmasked()
      
      # gpg: Signature made Tue 27 Oct 2015 16:03:31 GMT using RSA key ID 14360CDE
      # gpg: Good signature from "Peter Maydell <peter.maydell@linaro.org>"
      # gpg:                 aka "Peter Maydell <pmaydell@gmail.com>"
      # gpg:                 aka "Peter Maydell <pmaydell@chiark.greenend.org.uk>"
      
      * remotes/pmaydell/tags/pull-target-arm-20151027-1: (27 commits)
        target-arm: Add support for S1 + S2 MMU translations
        target-arm: Route S2 MMU faults to EL2
        target-arm: Add S2 translation to 32bit S1 PTWs
        target-arm: Add S2 translation to 64bit S1 PTWs
        target-arm: Add ARMMMUFaultInfo
        target-arm: Avoid inline for get_phys_addr
        target-arm: Add support for S2 page-table protection bits
        target-arm: Add computation of starting level for S2 PTW
        target-arm: lpae: Rename granule_sz to stride
        target-arm: lpae: Replace tsz with computed inputsize
        target-arm: Add support for AArch32 S2 negative t0sz
        target-arm: lpae: Move declaration of t0sz and t1sz
        target-arm: lpae: Make t0sz and t1sz signed integers
        target-arm: Add HPFAR_EL2
        i.MX: Standardize i.MX GPT debug
        i.MX: Standardize i.MX EPIT debug
        i.MX: Standardize i.MX FEC debug
        i.MX: Standardize i.MX CCM debug
        i.MX: Standardize i.MX AVIC debug
        i.MX: Standardize i.MX I2C debug
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      c012e1b7
  4. 27 10月, 2015 8 次提交