1. 18 5月, 2018 2 次提交
    • P
      ui: add x_keymap.o to modules · 68898bc8
      Paolo Bonzini 提交于
      x_keymap.o is common to the SDL and GTK+ modules, and it causes the
      QEMU binary to link to the X11 libraries.  Add it separately to the
      modules to keep the main QEMU binary smaller.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Message-id: 1526560782-18732-1-git-send-email-pbonzini@redhat.com
      
      [ kraxel: fix lm32 target build (milkymist-tmu2) ]
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      68898bc8
    • M
      console: Avoid segfault in screendump · 08d9864f
      Michal Privoznik 提交于
      After f771c544 it is possible to select device and
      head which to take screendump from. And even though we check if
      provided head number falls within range, it may still happen that
      the console has no surface yet leading to SIGSEGV:
      
        qemu.git $ ./x86_64-softmmu/qemu-system-x86_64 \
          -qmp stdio \
          -device virtio-vga,id=video0,max_outputs=4
      
        {"execute":"qmp_capabilities"}
        {"execute":"screendump", "arguments":{"filename":"/tmp/screen.ppm", "device":"video0", "head":1}}
        Segmentation fault
      
       #0  0x00005628249dda88 in ppm_save (filename=0x56282826cbc0 "/tmp/screen.ppm", ds=0x0, errp=0x7fff52a6fae0) at ui/console.c:304
       #1  0x00005628249ddd9b in qmp_screendump (filename=0x56282826cbc0 "/tmp/screen.ppm", has_device=true, device=0x5628276902d0 "video0", has_head=true, head=1, errp=0x7fff52a6fae0) at ui/console.c:375
       #2  0x00005628247740df in qmp_marshal_screendump (args=0x562828265e00, ret=0x7fff52a6fb68, errp=0x7fff52a6fb60) at qapi/qapi-commands-ui.c:110
      
      Here, @ds from frame #0 (or @surface from frame #1) is
      dereferenced at the very beginning of ppm_save(). And because
      it's NULL crash happens.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NThomas Huth <thuth@redhat.com>
      Message-id: cb05bb1909daa6ba62145c0194aafa05a14ed3d1.1526569138.git.mprivozn@redhat.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      08d9864f
  2. 17 5月, 2018 7 次提交
    • P
      Merge remote-tracking branch 'remotes/cody/tags/block-pull-request' into staging · a4207e3b
      Peter Maydell 提交于
      # gpg: Signature made Wed 16 May 2018 18:38:15 BST
      # gpg:                using RSA key BDBE7B27C0DE3057
      # gpg: Good signature from "Jeffrey Cody <jcody@redhat.com>"
      # gpg:                 aka "Jeffrey Cody <jeff@codyprime.org>"
      # gpg:                 aka "Jeffrey Cody <codyprime@gmail.com>"
      # Primary key fingerprint: 9957 4B4D 3474 90E7 9D98  D624 BDBE 7B27 C0DE 3057
      
      * remotes/cody/tags/block-pull-request:
        nfs: Remove processed options from QDict
        nfs: Fix error path in nfs_options_qdict_to_qapi()
        blockjob: do not cancel timer in resume
        qemu-iotests: reduce chance of races in 185
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      a4207e3b
    • P
      Merge remote-tracking branch 'remotes/juanquintela/tags/migration/20180515' into staging · eb7514ae
      Peter Maydell 提交于
      migration/next for 20180515
      
      # gpg: Signature made Tue 15 May 2018 22:54:38 BST
      # gpg:                using RSA key F487EF185872D723
      # gpg: Good signature from "Juan Quintela <quintela@redhat.com>"
      # gpg:                 aka "Juan Quintela <quintela@trasno.org>"
      # Primary key fingerprint: 1899 FF8E DEBF 58CC EE03  4B82 F487 EF18 5872 D723
      
      * remotes/juanquintela/tags/migration/20180515: (40 commits)
        Migration+TLS: Fix crash due to double cleanup
        migration: Textual fixups for blocktime
        migration: update index field when delete or qsort RDMALocalBlock
        migration: update docs
        migration/hmp: add migrate_pause command
        migration/qmp: add command migrate-pause
        migration: introduce lock for to_dst_file
        hmp/migration: add migrate_recover command
        qmp/migration: new command migrate-recover
        migration: init dst in migration_object_init too
        migration: final handshake for the resume
        migration: setup ramstate for resume
        migration: synchronize dirty bitmap for resume
        migration: introduce SaveVMHandlers.resume_prepare
        migration: new message MIG_RP_MSG_RESUME_ACK
        migration: new cmd MIG_CMD_POSTCOPY_RESUME
        migration: new message MIG_RP_MSG_RECV_BITMAP
        migration: new cmd MIG_CMD_RECV_BITMAP
        migration: wakeup dst ram-load-thread for recover
        migration: new state "postcopy-recover"
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      eb7514ae
    • P
      Merge remote-tracking branch 'remotes/ehabkost/tags/x86-next-pull-request' into staging · 61126a8b
      Peter Maydell 提交于
      x86 queue, 2018-05-15
      
      * KnightsMill CPU model
      * CLDEMOTE(Demote Cache Line) cpu feature
      * pc-i440fx-2.13 and pc-q35-2.13 machine-types
      * Add model-specific cache information to EPYC CPU model
      
      # gpg: Signature made Tue 15 May 2018 22:53:12 BST
      # gpg:                using RSA key 2807936F984DC5A6
      # gpg: Good signature from "Eduardo Habkost <ehabkost@redhat.com>"
      # Primary key fingerprint: 5A32 2FD5 ABC4 D3DB ACCF  D1AA 2807 936F 984D C5A6
      
      * remotes/ehabkost/tags/x86-next-pull-request:
        i386: Add new property to control cache info
        pc: add 2.13 machine types
        i386: Initialize cache information for EPYC family processors
        i386: Add cache information in X86CPUDefinition
        i386: Helpers to encode cache information consistently
        x86/cpu: Enable CLDEMOTE(Demote Cache Line) cpu feature
        i386: add KnightsMill cpu model
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      61126a8b
    • K
      nfs: Remove processed options from QDict · c82be42c
      Kevin Wolf 提交于
      Commit c22a0345 QAPIfied option parsing in the NFS block driver, but
      forgot to remove all the options we processed. Therefore, we get an
      error in bdrv_open_inherit(), which thinks the remaining options are
      invalid. Trying to open an NFS image will result in an error like this:
      
          Block protocol 'nfs' doesn't support the option 'server.host'
      
      Remove all options from the QDict to make the NFS driver work again.
      
      Cc: qemu-stable@nongnu.org
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Message-id: 20180516160816.26259-1-kwolf@redhat.com
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NJeff Cody <jcody@redhat.com>
      Signed-off-by: NJeff Cody <jcody@redhat.com>
      c82be42c
    • K
      nfs: Fix error path in nfs_options_qdict_to_qapi() · 54b7af43
      Kevin Wolf 提交于
      Don't throw away local_err, but propagate it to errp.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Message-id: 20180516161034.27440-1-kwolf@redhat.com
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NJeff Cody <jcody@redhat.com>
      Signed-off-by: NJeff Cody <jcody@redhat.com>
      54b7af43
    • S
      blockjob: do not cancel timer in resume · 4c7e813c
      Stefan Hajnoczi 提交于
      Currently the timer is cancelled and the block job is entered by
      block_job_resume().  This behavior causes drain to run extra blockjob
      iterations when the job was sleeping due to the ratelimit.
      
      This patch leaves the job asleep when block_job_resume() is called.
      Jobs can still be forcibly woken up using block_job_enter(), which is
      used to cancel jobs.
      
      After this patch drain no longer runs extra blockjob iterations.  This
      is the expected behavior that qemu-iotests 185 used to rely on.  We
      temporarily changed the 185 test output to make it pass for the QEMU
      2.12 release but now it's time to address this issue.
      
      Cc: QingFeng Hao <haoqf@linux.vnet.ibm.com>
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NQingFeng Hao <haoqf@linux.vnet.ibm.com>
      Message-id: 20180508135436.30140-3-stefanha@redhat.com
      Reviewed-by: NJeff Cody <jcody@redhat.com>
      Signed-off-by: NJeff Cody <jcody@redhat.com>
      4c7e813c
    • S
      qemu-iotests: reduce chance of races in 185 · ddf2d98a
      Stefan Hajnoczi 提交于
      Commit 8565c3ab ("qemu-iotests: fix
      185") identified a race condition in a sub-test.
      
      Similar issues also affect the other sub-tests.  If disk I/O completes
      quickly, it races with the QMP 'quit' command.  This causes spurious
      test failures because QMP events are emitted in an unpredictable order.
      
      This test relies on QEMU internals and there is no QMP API for getting
      deterministic behavior needed to make this test 100% reliable.  At the
      same time, the test is useful and it would be a shame to remove it.
      
      Add sleep 0.5 to reduce the chance of races.  This is not a real fix but
      appears to reduce spurious failures in practice.
      
      Cc: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Message-id: 20180508135436.30140-2-stefanha@redhat.com
      Reviewed-by: NJeff Cody <jcody@redhat.com>
      Signed-off-by: NJeff Cody <jcody@redhat.com>
      ddf2d98a
  3. 16 5月, 2018 31 次提交