1. 15 3月, 2017 5 次提交
    • P
      Merge remote-tracking branch 'remotes/ehabkost/tags/machine-pull-request' into staging · 926e3683
      Peter Maydell 提交于
      Fix global property and -cpu handling bug
      
      This bug fix was supposed to be applied just after 2.8.0 was
      released, but it slipped through the cracks. Sending it now for
      the next -rc.
      
      # gpg: Signature made Tue 14 Mar 2017 20:04:50 GMT
      # 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:
        machine: Convert abstract typename on compat_props to subclass names
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      926e3683
    • E
      machine: Convert abstract typename on compat_props to subclass names · 0bcba41f
      Eduardo Habkost 提交于
      Original problem description by Greg Kurz:
      
      > Since commit "9a4c0e22 hw/virtio-pci: fix virtio
      > behaviour", passing -device virtio-blk-pci.disable-modern=off
      > has no effect on 2.6 machine types because the internal
      > virtio-pci.disable-modern=on compat property always prevail.
      
      The same bug also affects other abstract type names mentioned on
      compat_props by machine-types: apic-common, i386-cpu, pci-device,
      powerpc64-cpu, s390-skeys, spapr-pci-host-bridge, usb-device,
      virtio-pci, x86_64-cpu.
      
      The right fix for this problem is to make sure compat_props and
      -global options are always applied in the order they are
      registered, instead of reordering them based on the type
      hierarchy. But changing the ordering rules of -global is risky
      and might break existing configurations, so we shouldn't do that
      on a stable branch.
      
      This is a temporary hack that will work around the bug when
      registering compat_props properties: if we find an abstract class
      on compat_props, register properties for all its non-abstract
      subtypes instead. This will make sure -global won't be overridden
      by compat_props, while keeping the existing ordering rules on
      -global options.
      
      Note that there's one case that won't be fixed by this hack:
      "-global spapr-pci-vfio-host-bridge.<option>=<value>" won't be
      able to override compat_props, because spapr-pci-host-bridge is
      not an abstract class.
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      Message-Id: <1481575745-26120-1-git-send-email-ehabkost@redhat.com>
      Reviewed-by: NCornelia Huck <cornelia.huck@de.ibm.com>
      Reviewed-by: NHalil Pasic <pasic@linux.vnet.ibm.com>
      Reviewed-by: NGreg Kurz <groug@kaod.org>
      Tested-by: NGreg Kurz <groug@kaod.org>
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      0bcba41f
    • P
      Update version for v2.9.0-rc0 release · d84f714e
      Peter Maydell 提交于
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      d84f714e
    • P
      Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging · 64c358a3
      Peter Maydell 提交于
      * "x" monitor command fix for KVM (Christian)
      * MemoryRegion name documentation (David)
      * mem-prealloc optimization (Jitendra)
      * -icount/MTTCG fixes (me)
      * "info mtree" niceness (Peter)
      * NBD drop_sync buffer overflow (Vladimir/Eric)
      * small cleanups and bugfixes (Li, Lin, Suramya, Thomas)
      * fix for "-device kvmclock" w/TCG (Eduardo)
      * debug output before crashing on KVM_{GET,SET}_MSRS (Eduardo)
      
      # gpg: Signature made Tue 14 Mar 2017 13:42:05 GMT
      # gpg:                using RSA key 0xBFFBD25F78C7AE83
      # gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org>"
      # gpg:                 aka "Paolo Bonzini <pbonzini@redhat.com>"
      # Primary key fingerprint: 46F5 9FBD 57D6 12E7 BFD4  E2F7 7E15 100C CD36 69B1
      #      Subkey fingerprint: F133 3857 4B66 2389 866C  7682 BFFB D25F 78C7 AE83
      
      * remotes/bonzini/tags/for-upstream:
        nbd/client: fix drop_sync [CVE-2017-2630]
        memory: info mtree check mr range overflow
        icount: process QEMU_CLOCK_VIRTUAL timers in vCPU thread
        main-loop: remove now unnecessary optimization
        cpus: define QEMUTimerListNotifyCB for QEMU system emulation
        qemu-timer: do not include sysemu/cpus.h from util/qemu-timer.h
        qemu-timer: fix off-by-one
        target/nios2: take BQL around interrupt check
        scsi: mptsas: fix the wrong reading size in fetch request
        util: Removed unneeded header from path.c
        configure: add the missing help output for optional features
        scripts/dump-guest-memory.py: fix int128_get64 on recent gcc
        kvmclock: Don't crash QEMU if KVM is disabled
        kvm: Print MSR information if KVM_{GET,SET}_MSRS failed
        exec: add cpu_synchronize_state to cpu_memory_rw_debug
        mem-prealloc: reduce large guest start-up and migration time.
        docs: Add a note about mixing bootindex with "-boot order"
        memory_region: Fix name comments
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      64c358a3
    • P
      hw/misc/imx6_src: Don't crash trying to reset missing CPUs · 5e2fb7c5
      Peter Maydell 提交于
      Commit 4881658a introduced a call to arm_get_cpu_by_id(),
      and Coverity noticed that we weren't checking that it didn't
      return NULL (CID 1371652).
      
      Normally this won't happen (because all 4 CPUs are expected
      to exist), but it's possible the user requested fewer CPUs
      on the command line. Handle this possibility by silently
      doing nothing, which is the same behaviour as before commit
      4881658a and also how we handle the other CPU operations
      (since we ignore the INVALID_PARAM returns from arm_set_cpu_on()
      and friends).
      
      There is a slight behavioural difference to the pre-4881658a
      situation: the "reset this core" bit will remain set rather
      than not being permitted to be set. The imx6 datasheet is
      unclear about the behaviour in this odd corner case, so we
      opt for the simpler code rather than complicated logic to
      maintain identical behaviour.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1488542374-1256-1-git-send-email-peter.maydell@linaro.org
      Reviewed-by: NAlex Bennée <alex.bennee@linaro.org>
      5e2fb7c5
  2. 14 3月, 2017 32 次提交
  3. 13 3月, 2017 3 次提交
    • P
      Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging · 5bac3c39
      Peter Maydell 提交于
      Block layer fixes for 2.9.0-rc1
      
      # gpg: Signature made Mon 13 Mar 2017 11:53:16 GMT
      # gpg:                using RSA key 0x7F09B272C88F2FD6
      # gpg: Good signature from "Kevin Wolf <kwolf@redhat.com>"
      # Primary key fingerprint: DC3D EB15 9A9A F95D 3D74  56FE 7F09 B272 C88F 2FD6
      
      * remotes/kevin/tags/for-upstream:
        commit: Implement .bdrv_refresh_filename
        mirror: Implement .bdrv_refresh_filename
        block: Refresh filename after changing backing file
        commit: Implement bdrv_commit_top.bdrv_co_get_block_status
        block: Request block status from *file for BDRV_BLOCK_RAW
        block: Remove check_new_perm from bdrv_replace_child()
        migration: Document handling of bdrv_is_allocated() errors
        vvfat: React to bdrv_is_allocated() errors
        backup: React to bdrv_is_allocated() errors
        block: Drop unmaintained 'archipelago' driver
        file-posix: Consider max_segments for BlockLimits.max_transfer
        backup: allow target without .bdrv_get_info
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      5bac3c39
    • P
      Merge remote-tracking branch 'remotes/ehabkost/tags/x86-pull-request' into staging · f962709c
      Peter Maydell 提交于
      x86: Haswell TSX blacklist fix for 2.9
      
      # gpg: Signature made Fri 10 Mar 2017 18:45:08 GMT
      # 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/x86-pull-request:
        i386: Change stepping of Haswell to non-blacklisted value
        i386/kvm: Blacklist TSX on known broken hosts
        i386: host_vendor_fms() helper function
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      f962709c
    • K
      commit: Implement .bdrv_refresh_filename · dcbf37ce
      Kevin Wolf 提交于
      We want query-block to return the right filename, even if a commit job
      put a bdrv_commit_top on top of the actual image format driver. Let
      bdrv_commit_top.bdrv_refresh_filename get the filename from its backing
      file.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      dcbf37ce