1. 04 6月, 2018 11 次提交
    • P
      Merge remote-tracking branch 'remotes/famz/tags/docker-pull-request' into staging · cfe67251
      Peter Maydell 提交于
      # gpg: Signature made Mon 04 Jun 2018 08:09:27 BST
      # gpg:                using RSA key CA35624C6A9171C6
      # gpg: Good signature from "Fam Zheng <famz@redhat.com>"
      # Primary key fingerprint: 5003 7CB7 9706 0F76 F021  AD56 CA35 624C 6A91 71C6
      
      * remotes/famz/tags/docker-pull-request:
        docker: Update fedora image to 28
        tests/docker/Makefile.include: handle empty TARGET_LIST
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      cfe67251
    • P
      Merge remote-tracking branch 'remotes/juanquintela/tags/migration/20180604' into staging · b74588a4
      Peter Maydell 提交于
      migration/next for 20180604
      
      # gpg: Signature made Mon 04 Jun 2018 05:14:24 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/20180604:
        migration: not wait RDMA_CM_EVENT_DISCONNECTED event after rdma_disconnect
        migration: remove unnecessary variables len in QIOChannelRDMA
        migration: Don't activate block devices if using -S
        migration: discard non-migratable RAMBlocks
        migration: introduce decompress-error-check
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      b74588a4
    • P
      Merge remote-tracking branch 'remotes/rth/tags/tcg-next-pull-request' into staging · 16367054
      Peter Maydell 提交于
      tcg-next queue
      
      # gpg: Signature made Sat 02 Jun 2018 00:12:42 BST
      # gpg:                using RSA key 64DF38E8AF7E215F
      # gpg: Good signature from "Richard Henderson <richard.henderson@linaro.org>"
      # Primary key fingerprint: 7A48 1E78 868B 4DB6 A85A  05C0 64DF 38E8 AF7E 215F
      
      * remotes/rth/tags/tcg-next-pull-request:
        tcg: Pass tb and index to tcg_gen_exit_tb separately
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      16367054
    • P
      Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging · f67c9b69
      Peter Maydell 提交于
      acpi, vhost, misc: fixes, features
      
      vDPA support, fix to vhost blk RO bit handling, some include path
      cleanups, NFIT ACPI table.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      
      # gpg: Signature made Fri 01 Jun 2018 17:25:19 BST
      # gpg:                using RSA key 281F0DB8D28D5469
      # gpg: Good signature from "Michael S. Tsirkin <mst@kernel.org>"
      # gpg:                 aka "Michael S. Tsirkin <mst@redhat.com>"
      # Primary key fingerprint: 0270 606B 6F3C DF3D 0B17  0970 C350 3912 AFBE 8E67
      #      Subkey fingerprint: 5D09 FD08 71C8 F85B 94CA  8A0D 281F 0DB8 D28D 5469
      
      * remotes/mst/tags/for_upstream: (31 commits)
        vhost-blk: turn on pre-defined RO feature bit
        ACPI testing: test NFIT platform capabilities
        nvdimm, acpi: support NFIT platform capabilities
        tests/.gitignore: add entry for generated file
        arch_init: sort architectures
        ui: use local path for local headers
        qga: use local path for local headers
        colo: use local path for local headers
        migration: use local path for local headers
        usb: use local path for local headers
        sd: fix up include
        vhost-scsi: drop an unused include
        ppc: use local path for local headers
        rocker: drop an unused include
        e1000e: use local path for local headers
        ioapic: fix up includes
        ide: use local path for local headers
        display: use local path for local headers
        trace: use local path for local headers
        migration: drop an unused include
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      f67c9b69
    • F
      docker: Update fedora image to 28 · 63dba573
      Fam Zheng 提交于
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Message-Id: <20180601023557.9770-1-famz@redhat.com>
      63dba573
    • A
      tests/docker/Makefile.include: handle empty TARGET_LIST · 5609c512
      Alex Bennée 提交于
      If the user doesn't specify a TARGET_LIST they get the current
      configuration but with spaces and hilarity ensues. This adds some make
      magic to turn the TARGET_LIST back into a comma separated list.
      Signed-off-by: NAlex Bennée <alex.bennee@linaro.org>
      
      Message-Id: <20180521103504.26432-1-alex.bennee@linaro.org>
      Signed-off-by: NFam Zheng <famz@redhat.com>
      5609c512
    • L
      migration: not wait RDMA_CM_EVENT_DISCONNECTED event after rdma_disconnect · c5e76115
      Lidong Chen 提交于
      When cancel migration during RDMA precopy, the source qemu main thread hangs sometime.
      
      The backtrace is:
          (gdb) bt
          #0  0x00007f249eabd43d in write () from /lib64/libpthread.so.0
          #1  0x00007f24a1ce98e4 in rdma_get_cm_event (channel=0x4675d10, event=0x7ffe2f643dd0) at src/cma.c:2189
          #2  0x00000000007b6166 in qemu_rdma_cleanup (rdma=0x6784000) at migration/rdma.c:2296
          #3  0x00000000007b7cae in qio_channel_rdma_close (ioc=0x3bfcc30, errp=0x0) at migration/rdma.c:2999
          #4  0x00000000008db60e in qio_channel_close (ioc=0x3bfcc30, errp=0x0) at io/channel.c:273
          #5  0x00000000007a8765 in channel_close (opaque=0x3bfcc30) at migration/qemu-file-channel.c:98
          #6  0x00000000007a71f9 in qemu_fclose (f=0x527c000) at migration/qemu-file.c:334
          #7  0x0000000000795b96 in migrate_fd_cleanup (opaque=0x3b46280) at migration/migration.c:1162
          #8  0x000000000093a71b in aio_bh_call (bh=0x3db7a20) at util/async.c:90
          #9  0x000000000093a7b2 in aio_bh_poll (ctx=0x3b121c0) at util/async.c:118
          #10 0x000000000093f2ad in aio_dispatch (ctx=0x3b121c0) at util/aio-posix.c:436
          #11 0x000000000093ab41 in aio_ctx_dispatch (source=0x3b121c0, callback=0x0, user_data=0x0)
              at util/async.c:261
          #12 0x00007f249f73c7aa in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
          #13 0x000000000093dc5e in glib_pollfds_poll () at util/main-loop.c:215
          #14 0x000000000093dd4e in os_host_main_loop_wait (timeout=28000000) at util/main-loop.c:263
          #15 0x000000000093de05 in main_loop_wait (nonblocking=0) at util/main-loop.c:522
          #16 0x00000000005bc6a5 in main_loop () at vl.c:1944
          #17 0x00000000005c39b5 in main (argc=56, argv=0x7ffe2f6443f8, envp=0x3ad0030) at vl.c:4752
      
      It does not get the RDMA_CM_EVENT_DISCONNECTED event after rdma_disconnect sometime.
      
      According to IB Spec once active side send DREQ message, it should wait for DREP message
      and only once it arrived it should trigger a DISCONNECT event. DREP message can be dropped
      due to network issues.
      For that case the spec defines a DREP_timeout state in the CM state machine, if the DREP is
      dropped we should get a timeout and a TIMEWAIT_EXIT event will be trigger.
      Unfortunately the current kernel CM implementation doesn't include the DREP_timeout state
      and in above scenario we will not get DISCONNECT or TIMEWAIT_EXIT events.
      
      So it should not invoke rdma_get_cm_event which may hang forever, and the event channel
      is also destroyed in qemu_rdma_cleanup.
      Signed-off-by: NLidong Chen <lidongchen@tencent.com>
      Reviewed-by: NJuan Quintela <quintela@redhat.com>
      Reviewed-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
      Signed-off-by: NJuan Quintela <quintela@redhat.com>
      c5e76115
    • L
      migration: remove unnecessary variables len in QIOChannelRDMA · f38f6d41
      Lidong Chen 提交于
      Because qio_channel_rdma_writev and qio_channel_rdma_readv maybe invoked
      by different threads concurrently, this patch removes unnecessary variables
      len in QIOChannelRDMA and use local variable instead.
      Signed-off-by: NLidong Chen <lidongchen@tencent.com>
      Reviewed-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      Reviewed-by: NJuan Quintela <quintela@redhat.com>
      Signed-off-by: NJuan Quintela <quintela@redhat.com>
      Signed-off-by: NLidong Chen <jemmy858585@gmail.com>
      f38f6d41
    • D
      migration: Don't activate block devices if using -S · 0f073f44
      Dr. David Alan Gilbert 提交于
      Activating the block devices causes the locks to be taken on
      the backing file.  If we're running with -S and the destination libvirt
      hasn't started the destination with 'cont', it's expecting the locks are
      still untaken.
      
      Don't activate the block devices if we're not going to autostart the VM;
      'cont' already will do that anyway.   This change is tied to the new
      migration capability 'late-block-activate' that defaults to off, keeping
      the old behaviour by default.
      
      bz: https://bugzilla.redhat.com/show_bug.cgi?id=1560854Signed-off-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
      Reviewed-by: NJuan Quintela <quintela@redhat.com>
      Signed-off-by: NJuan Quintela <quintela@redhat.com>
      0f073f44
    • C
      migration: discard non-migratable RAMBlocks · b895de50
      Cédric Le Goater 提交于
      On the POWER9 processor, the XIVE interrupt controller can control
      interrupt sources using MMIO to trigger events, to EOI or to turn off
      the sources. Priority management and interrupt acknowledgment is also
      controlled by MMIO in the presenter sub-engine.
      
      These MMIO regions are exposed to guests in QEMU with a set of 'ram
      device' memory mappings, similarly to VFIO, and the VMAs are populated
      dynamically with the appropriate pages using a fault handler.
      
      But, these regions are an issue for migration. We need to discard the
      associated RAMBlocks from the RAM state on the source VM and let the
      destination VM rebuild the memory mappings on the new host in the
      post_load() operation just before resuming the system.
      
      To achieve this goal, the following introduces a new RAMBlock flag
      RAM_MIGRATABLE which is updated in the vmstate_register_ram() and
      vmstate_unregister_ram() routines. This flag is then used by the
      migration to identify RAMBlocks to discard on the source. Some checks
      are also performed on the destination to make sure nothing invalid was
      sent.
      
      This change impacts the boston, malta and jazz mips boards for which
      migration compatibility is broken.
      Signed-off-by: NCédric Le Goater <clg@kaod.org>
      Reviewed-by: NJuan Quintela <quintela@redhat.com>
      Reviewed-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
      Signed-off-by: NJuan Quintela <quintela@redhat.com>
      b895de50
    • X
      migration: introduce decompress-error-check · f548222c
      Xiao Guangrong 提交于
      QEMU 3.0 enables strict check for compression & decompression to
      make the migration more robust, that depends on the source to fix
      the internal design which triggers the unexpected error conditions
      
      To make it work for migrating old version QEMU to 2.13 QEMU, we
      introduce this parameter to disable the error check on the
      destination which is the default behavior of the machine type
      which is older than 2.13, alternately, the strict check can be
      enabled explicitly as followings:
            -M pc-q35-2.11 -global migration.decompress-error-check=true
      Signed-off-by: NXiao Guangrong <xiaoguangrong@tencent.com>
      Reviewed-by: NJuan Quintela <quintela@redhat.com>
      Signed-off-by: NJuan Quintela <quintela@redhat.com>
      f548222c
  2. 02 6月, 2018 25 次提交
  3. 01 6月, 2018 4 次提交