1. 08 8月, 2017 6 次提交
  2. 07 8月, 2017 3 次提交
  3. 04 8月, 2017 8 次提交
    • P
      Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20170803' into staging · e59b1c5f
      Peter Maydell 提交于
      Queued misc tcg patches
      
      # gpg: Signature made Thu 03 Aug 2017 19:07:18 BST
      # gpg:                using RSA key 0xAD1270CC4DD0279B
      # gpg: Good signature from "Richard Henderson <rth7680@gmail.com>"
      # gpg:                 aka "Richard Henderson <rth@twiddle.net>"
      # Primary key fingerprint: 9CB1 8DDA F8E8 49AD 2AFC  16A4 AD12 70CC 4DD0 279B
      
      * remotes/rth/tags/pull-tcg-20170803:
        tcg: Increase minimum alignment from tcg_malloc to 8
        target/s390x: Fix CSST for 16-byte store
        tcg/arm: Fix runtime overalignment test
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      e59b1c5f
    • P
      Merge remote-tracking branch 'remotes/ehabkost/tags/machine-pull-request' into staging · ac44ed2a
      Peter Maydell 提交于
      cpu: crash fix (don't allow negative core id)
      
      # gpg: Signature made Thu 03 Aug 2017 18:57:41 BST
      # gpg:                using RSA key 0x2807936F984DC5A6
      # 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/machine-pull-request:
        cpu: don't allow negative core id
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      ac44ed2a
    • P
      Merge remote-tracking branch 'remotes/yongbok/tags/mips-20170803' into staging · c233a35d
      Peter Maydell 提交于
      MIPS patches 2017-08-03
      
      Changes:
      KVM T&E segment support for TCG
      malta: leave space for the bootmap after the initrd
      Apply CP0.PageMask before writing into TLB entry
      Fix fallout from indirect branch optimisation
      
      # gpg: Signature made Thu 03 Aug 2017 15:32:59 BST
      # gpg:                using RSA key 0x2238EB86D5F797C2
      # gpg: Good signature from "Yongbok Kim <yongbok.kim@imgtec.com>"
      # gpg: WARNING: This key is not certified with sufficiently trusted signatures!
      # gpg:          It is not certain that the signature belongs to the owner.
      # Primary key fingerprint: 8600 4CF5 3415 A5D9 4CFA  2B5C 2238 EB86 D5F7 97C2
      
      * remotes/yongbok/tags/mips-20170803:
        target/mips: Fix RDHWR CC with icount
        target/mips: Drop redundant gen_io_start/stop()
        target/mips: Use BS_EXCP where interrupts are expected
        target-mips: apply CP0.PageMask before writing into TLB entry
        mips: Add KVM T&E segment support for TCG
        mips: Improve segment defs for KVM T&E guests
        mips/malta: leave space for the bootmap after the initrd
        target-mips: Don't stop on [d]mtc0 DESAVE/KScratch
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      c233a35d
    • P
      Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging · 8377e9f6
      Peter Maydell 提交于
      virtio: fix for rc2
      
      Looks like the constant stream of additions of vhost-user devices is a
      problem for some people who are concerned about external connections
      from qemu. A per-device flag seems like an overkill, but a single
      configure flag seems like a sane way to support that, and it looks like
      we need to do it before the release.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      
      # gpg: Signature made Thu 03 Aug 2017 13:57:57 BST
      # gpg:                using RSA key 0x281F0DB8D28D5469
      # 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:
        build-sys: add --disable-vhost-user
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      8377e9f6
    • P
      Merge remote-tracking branch 'remotes/thibault/tags/samuel-thibault' into staging · 413ff8be
      Peter Maydell 提交于
      slirp updates
      
      # gpg: Signature made Wed 02 Aug 2017 23:27:41 BST
      # gpg:                using RSA key 0x9E511E01C737F075
      # gpg: Good signature from "Samuel Thibault <samuel.thibault@aquilenet.fr>"
      # gpg:                 aka "Samuel Thibault <sthibault@debian.org>"
      # gpg:                 aka "Samuel Thibault <samuel.thibault@gnu.org>"
      # gpg:                 aka "Samuel Thibault <samuel.thibault@inria.fr>"
      # gpg:                 aka "Samuel Thibault <samuel.thibault@labri.fr>"
      # gpg:                 aka "Samuel Thibault <samuel.thibault@ens-lyon.org>"
      # gpg:                 aka "Samuel Thibault <samuel.thibault@u-bordeaux.fr>"
      # gpg: WARNING: This key is not certified with sufficiently trusted signatures!
      # gpg:          It is not certain that the signature belongs to the owner.
      # Primary key fingerprint: 900C B024 B679 31D4 0F82  304B D017 8C76 7D06 9EE6
      #      Subkey fingerprint: 9A37 3D36 64A8 DC62 DA0A  34FD 9E51 1E01 C737 F075
      
      * remotes/thibault/tags/samuel-thibault:
        slirp: check len against dhcp options array end
        slirp: fill error when failing to initialize user network
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      413ff8be
    • R
      tcg: Increase minimum alignment from tcg_malloc to 8 · 13aaef67
      Richard Henderson 提交于
      For a 64-bit ILP32 host, aligning to sizeof(long) is not enough.
      Guess the minimum for any host is 8, as that covers uint64_t.
      Qemu doesn't use a host long double or host vectors, except in
      extremely limited circumstances.
      
      Fixes a bus error for a sparc v8plus host.
      Signed-off-by: NRichard Henderson <rth@twiddle.net>
      13aaef67
    • R
      target/s390x: Fix CSST for 16-byte store · de4e05d1
      Richard Henderson 提交于
      Found by Coverity (CID 1378273).
      Reviewed-by: NPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Reported-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NRichard Henderson <rth@twiddle.net>
      de4e05d1
    • R
      tcg/arm: Fix runtime overalignment test · ca671de8
      Richard Henderson 提交于
      Patch 85aa8081 changed the IF emitting the TST instruction,
      but failed to change the ?: converting CMP to CMPEQ, so the
      result of the TST is ignored.
      Signed-off-by: NRichard Henderson <rth@twiddle.net>
      ca671de8
  4. 03 8月, 2017 12 次提交
  5. 02 8月, 2017 11 次提交
    • P
      Update version for v2.10.0-rc1 release · aaaec6ac
      Peter Maydell 提交于
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      aaaec6ac
    • T
      tests/hmp: Fix typo in the 'chardev-send-break' test · bbcee372
      Thomas Huth 提交于
      testchardev2 is not a valid chardev id here. Use testchardev1
      instead which has been created with chardev-add right before
      the 'chardev-send-break' line.
      And while we're at it, add the test-hmp.c file to the MAINTAINERS
      file, too.
      Signed-off-by: NThomas Huth <thuth@redhat.com>
      Reviewed-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
      Message-id: 1501149097-19071-1-git-send-email-thuth@redhat.com
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      bbcee372
    • P
      Merge remote-tracking branch 'remotes/dgilbert/tags/pull-migration-20170802a' into staging · b21c2751
      Peter Maydell 提交于
      Migration pull 2017-08-02
      
      Just minor fixes for 2.10
      
      # gpg: Signature made Wed 02 Aug 2017 14:55:21 BST
      # gpg:                using RSA key 0x0516331EBC5BFDE7
      # gpg: Good signature from "Dr. David Alan Gilbert (RH2) <dgilbert@redhat.com>"
      # gpg: WARNING: This key is not certified with a trusted signature!
      # gpg:          There is no indication that the signature belongs to the owner.
      # Primary key fingerprint: 45F5 C71B 4A0C B7FB 977A  9FA9 0516 331E BC5B FDE7
      
      * remotes/dgilbert/tags/pull-migration-20170802a:
        io: fix qio_channel_socket_accept err handling
        migration: fix comment disorder in RAMState
        migration: fix small leaks
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      b21c2751
    • P
      io: fix qio_channel_socket_accept err handling · 8bd9c4e6
      Peter Xu 提交于
      When accept failed, we should setup errp with the reason. More
      importantly, the caller may assume errp be non-NULL when error happens,
      and not setting the errp may crash QEMU.
      
      At the same time, move the trace_qio_channel_socket_accept_fail() after
      the if check on EINTR. Two reasons:
      
      1. when EINTR happened, it's not really a fault (we should just try
         again), so we should not log with an "accept failure".
      
      2. trace_*() functions may overwrite errno, then the old errno will be
         missing. We need to either check errno before trace_*() calls, or
         reserve the errno.
      Signed-off-by: NPeter Xu <peterx@redhat.com>
      Message-Id: <1501666880-10159-3-git-send-email-peterx@redhat.com>
      Reviewed-by: NDaniel P. Berrange <berrange@redhat.com>
      Signed-off-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
      8bd9c4e6
    • P
      migration: fix comment disorder in RAMState · 2dfaf12e
      Peter Xu 提交于
      Comments for "migration_dirty_pages" and "bitmap_mutex" are switched.
      Fix it.
      Reviewed-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
      Reviewed-by: NJuan Quintela <quintela@redhat.com>
      Signed-off-by: NPeter Xu <peterx@redhat.com>
      Message-Id: <1501666880-10159-2-git-send-email-peterx@redhat.com>
      Signed-off-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
      2dfaf12e
    • M
      migration: fix small leaks · b91bf5e4
      Marc-André Lureau 提交于
      Spotted thanks to valgrind and tests/device-introspect-test:
      
      ==11711== 1 bytes in 1 blocks are definitely lost in loss record 6 of 14,537
      ==11711==    at 0x4C2EB6B: malloc (vg_replace_malloc.c:299)
      ==11711==    by 0x1E0CDBD8: g_malloc (gmem.c:94)
      ==11711==    by 0x1E0E696E: g_strdup (gstrfuncs.c:363)
      ==11711==    by 0x695693: migration_instance_init (migration.c:2226)
      ==11711==    by 0x717C4B: object_init_with_type (object.c:344)
      ==11711==    by 0x717E80: object_initialize_with_type (object.c:375)
      ==11711==    by 0x7182EB: object_new_with_type (object.c:483)
      ==11711==    by 0x718328: object_new (object.c:493)
      ==11711==    by 0x4B8A29: qmp_device_list_properties (qmp.c:542)
      ==11711==    by 0x4A9561: qmp_marshal_device_list_properties (qmp-marshal.c:1425)
      ==11711==    by 0x819D4A: do_qmp_dispatch (qmp-dispatch.c:104)
      ==11711==    by 0x819E82: qmp_dispatch (qmp-dispatch.c:131)
      Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Message-Id: <20170801160419.14180-1-marcandre.lureau@redhat.com>
      Reviewed-by: NPeter Xu <peterx@redhat.com>
      Reviewed-by: NJuan Quintela <quintela@redhat.com>
      Signed-off-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
      b91bf5e4
    • P
      Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging · d3d183a6
      Peter Maydell 提交于
      pc, acpi, virtio: fixes, test speedup for rc1
      
      Some fixes all over the place. Notably vhost-user gained a new message
      to set endian-ness. Borderline for 2.10 but seems to be the only way to
      fix legacy guests.  Also pc tests are run on kvm now. Not a fix at all
      but doesn't touch qemu itself, so I merged it since I had to run these a
      lot and I just got tired of waiting for these to finish.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      
      # gpg: Signature made Tue 01 Aug 2017 22:36:47 BST
      # gpg:                using RSA key 0x281F0DB8D28D5469
      # gpg: Good signature from "Michael S. Tsirkin <mst@kernel.org>"
      # gpg:                 aka "Michael S. Tsirkin <mst@redhat.com>"
      # gpg: WARNING: This key is not certified with a trusted signature!
      # gpg:          There is no indication that the signature belongs to the owner.
      # 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:
        pc: acpi: force FADT rev1 for 440fx based machine types
        pc: make 'pc.rom' readonly when machine has PCI enabled
        vhost-user: fix watcher need be removed when vhost-user hotplug
        tests/bios-tables-test: Compiler warning fix
        accel: cleanup error output
        intel_iommu: use access_flags for iotlb
        intel_iommu: fix iova for pt
        vhost-user: fix legacy cross-endian configurations
        vhost: fix a memory leak
        tests: switch pxe and vm gen id tests to use kvm
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      d3d183a6
    • I
      pc: acpi: force FADT rev1 for 440fx based machine types · 3a3fcc75
      Igor Mammedov 提交于
      w2k used to boot on QEMU until revision of FADT has
      been bumped to rev3
      (commit 77af8a2b hw/i386: Use Rev3 FADT (ACPI 2.0) instead of Rev1 to improve guest OS support.)
      
      Keep PC machine at rev1 to remain compatible and Q35
      at rev3 where w2k isn't supported anyway so OSX could
      run as well.
      Signed-off-by: NIgor Mammedov <imammedo@redhat.com>
      Tested-by: NJohn Arbuckle <programmingkidx@gmail.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      3a3fcc75
    • I
      pc: make 'pc.rom' readonly when machine has PCI enabled · 208fa0e4
      Igor Mammedov 提交于
      looking at bios ROM mapping in QEMU it seems that only isapc
      (i.e. not PCI enabled machine) requires ROM being mapped as
      RW in other cases BIOS is mapped as RO. Do the same for option
      ROM 'pc.rom' when machine has PCI enabled.
      
      As useful side-effect pc.rom MemoryRegion stops being
      put in vhost memory map (filtered out by vhost_section()),
      which reduces number of entries by 1.
      
      Coincidentally it fixes migration failure reported in
      
      "[PATCH V2]  vhost: fix a migration failed because of vhost region merge"
      
      where following destination CLI with /sys/module/vhost/parameters/max_mem_regions = 8
      
      export DIMMSCOUNT=6
      QEMU -enable-kvm \
           -netdev type=tap,id=guest0,vhost=on,script=no,vhostforce \
           -device virtio-net-pci,netdev=guest0 \
           -m 256,slots=256,maxmem=2G \
           `i=0; while [ $i -lt $DIMMSCOUNT ]; do echo \
               "-object memory-backend-ram,id=m$i,size=128M \
                -device pc-dimm,id=d$i,memdev=m$i"; i=$(($i + 1)); \
           done`
      
      will fail to startup with error:
      
       "-device pc-dimm,id=d5,memdev=m5: a used vhost backend has no free memory slots left"
      
      while it's possible to add the 6th DIMM during hotplug
      on source.
      
      Issue is caused by the fact that number of entries in vhost map
      is bigger on 1 entry, when -device is processed, than
      after guest boots up, and that offending entry belongs to
      'pc.rom', it's not like vhost intends to do IO in ROM range
      so making it RO hides region from vhost and makes number
      of entries in vhost memory map at -device/machine_done time
      match number of entries after guest boots.
      Signed-off-by: NIgor Mammedov <imammedo@redhat.com>
      Reported-by: NPeng Hao <peng.hao2@zte.com.cn>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      208fa0e4
    • Y
      vhost-user: fix watcher need be removed when vhost-user hotplug · 41d4e5ec
      Yunjian Wang 提交于
      "nc" is freed after hotplug vhost-user, but the watcher is not removed.
      The QEMU crash when the watcher access the "nc" when socket disconnects.
      
          Program received signal SIGSEGV, Segmentation fault.
          #0  object_get_class (obj=obj@entry=0x2) at qom/object.c:750
          #1  0x00007f9bb4180da1 in qemu_chr_fe_disconnect (be=<optimized out>) at chardev/char-fe.c:372
          #2  0x00007f9bb40d1100 in net_vhost_user_watch (chan=<optimized out>, cond=<optimized out>, opaque=<optimized out>) at net/vhost-user.c:188
          #3  0x00007f9baf97f99a in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
          #4  0x00007f9bb41d7ebc in glib_pollfds_poll () at util/main-loop.c:213
          #5  os_host_main_loop_wait (timeout=<optimized out>) at util/main-loop.c:261
          #6  main_loop_wait (nonblocking=nonblocking@entry=0) at util/main-loop.c:515
          #7  0x00007f9bb3e266a7 in main_loop () at vl.c:1917
          #8  main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at vl.c:4786
      Signed-off-by: NYunjian Wang <wangyunjian@huawei.com>
      Reviewed-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      41d4e5ec
    • D
      tests/bios-tables-test: Compiler warning fix · 91c38e08
      Dr. David Alan Gilbert 提交于
      gcc 7.1.1 in fedora 26 moans about the:
         tables = g_new0(uint32_t, tables_nr)
      
      because it can't convince itself that tables_nr is positive.
      This is fallout from g_assert_cmpint no longer necessarily being
      no-return;  replace it with a plain g_assert.
      Signed-off-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Reviewed-by: NMarcel Apfelbaum <marcel@redhat.com>
      91c38e08