1. 06 11月, 2015 3 次提交
    • E
      target-i386: Remove ABM from qemu64 CPU model · 71195672
      Eduardo Habkost 提交于
      ABM is not available on Sandy Bridge and older, and we want to make the
      default CPU runnable in most hosts, so it won't be enabled by default in
      KVM mode.
      
      We should eventually have all features supported by TCG enabled by
      default in TCG mode, but as we don't have a good mechanism today to
      ensure we have different defaults in KVM and TCG mode, disable ABM in
      the qemu64 CPU model entirely.
      Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      71195672
    • E
      target-i386: Remove SSE4a from qemu64 CPU model · 0909ad24
      Eduardo Habkost 提交于
      SSE4a is not available in any Intel CPU, and we want to make the default
      CPU runnable in most hosts, so it doesn't make sense to enable it by
      default in KVM mode.
      
      We should eventually have all features supported by TCG enabled by
      default in TCG mode, but as we don't have a good mechanism today to
      ensure we have different defaults in KVM and TCG mode, disable SSE4a in
      the qemu64 CPU model entirely.
      Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      0909ad24
    • E
      target-i386: Set "check=off" by default on pc-*-2.4 and older · 3e684822
      Eduardo Habkost 提交于
      The default CPU model (qemu64) have some issues today: it enables some
      features (ABM and SSE4a) that are not present in many host CPUs. That
      means many hosts (but not all of them) had those features silently
      disabled in the default configuration in QEMU 2.4 and older.
      
      With the new "check=on" default, this causes warnings to be printed in
      the default configuration, because of the lack of SSE4A on all Intel
      hosts, and the lack of ABM on Sandy Bridge and older hosts:
      
        $ qemu-system-x86_64 -machine pc,accel=kvm
        warning: host doesn't support requested feature: CPUID.80000001H:ECX.abm [bit 5]
        warning: host doesn't support requested feature: CPUID.80000001H:ECX.sse4a [bit 6]
      
      Those issues will be fixed in pc-*-2.5 and newer. But as we can't change
      the guest ABI in pc-*-2.4, disable "check" mode by default in pc-*-2.4
      and older so we don't print spurious warnings.
      Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      3e684822
  2. 05 11月, 2015 8 次提交
    • P
      Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging · 496c1b19
      Peter Maydell 提交于
      * Guest ABI fixes for PC machines (hw_version)
      * Fixes for recent Perl
      * John Snow's configure fixes
      * file-backed RAM improvements (Igor, Pavel)
      * -Werror=clobbered fixes (Stefan)
      * Kill -d ioport
      * Fix qemu-system-s390x
      * Performance improvement for kvmclock migration
      
      # gpg: Signature made Thu 05 Nov 2015 13:42:27 GMT using RSA key ID 78C7AE83
      # gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org>"
      # gpg:                 aka "Paolo Bonzini <pbonzini@redhat.com>"
      
      * remotes/bonzini/tags/for-upstream:
        iscsi: Translate scsi sense into error code
        Revert "Introduce cpu_clean_all_dirty"
        kvmclock: add a new function to update env->tsc.
        configure: disable FORTIFY_SOURCE under clang
        backends/hostmem-file: Allow to specify full pathname for backing file
        configure: disallow ccache during compile tests
        cpu-exec: Fix compiler warning (-Werror=clobbered)
        memory: call begin, log_start and commit when registering a new listener
        megasas: Use qemu_hw_version() instead of QEMU_VERSION
        osdep: Rename qemu_{get, set}_version() to qemu_{, set_}hw_version()
        pc: Set hw_version on all machine classes
        qemu-log: remove -d ioport
        ioport: do not use CPU_LOG_IOPORT
        target-i386: fix pcmpxstrx equal-ordered (strstr) mode
        scripts/text2pod.pl: Escape left brace
        file_ram_alloc: propagate error to caller instead of terminating QEMU
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      496c1b19
    • F
      iscsi: Translate scsi sense into error code · e01dd3da
      Fam Zheng 提交于
      Previously we return -EIO blindly when anything goes wrong. Add a helper
      function to parse sense fields and try to make the return code more
      meaningful.
      
      This also fixes the default werror configuration (enospc) when we're
      using qcow2 on an iscsi lun. The old -EIO not being treated as out of
      space error failed to trigger vm stop.
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Message-Id: <1446699609-11376-1-git-send-email-famz@redhat.com>
      [libiscsi 1.9 compatibility - Paolo]
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      e01dd3da
    • P
      Merge remote-tracking branch 'remotes/mdroth/tags/qga-pull-2015-11-04-tag' into staging · 8835b9df
      Peter Maydell 提交于
      qemu-ga patch queue
      
      * fix file handle cleanup on w32
      * use non-blocking mode for file handles on w32 to avoid
        hangs on guest-file-read/guest-file-write to pipes
      
      # gpg: Signature made Wed 04 Nov 2015 19:36:16 GMT using RSA key ID F108B584
      # gpg: Good signature from "Michael Roth <flukshun@gmail.com>"
      # gpg:                 aka "Michael Roth <mdroth@utexas.edu>"
      # gpg:                 aka "Michael Roth <mdroth@linux.vnet.ibm.com>"
      
      * remotes/mdroth/tags/qga-pull-2015-11-04-tag:
        qga: set file descriptor in qmp_guest_file_open non-blocking on Win32
        qga: fixed CloseHandle in qmp_guest_file_open
        qga: drop hand-made guest_file_toggle_flags helper
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      8835b9df
    • L
      Revert "Introduce cpu_clean_all_dirty" · 6388acc8
      Liang Li 提交于
      This reverts commit de9d61e8.
      
      Now 'cpu_clean_all_dirty' is useless, we can revert the related code.
      
      Conflicts:
      	include/sysemu/kvm.h
      Signed-off-by: NLiang Li <liang.z.li@intel.com>
      Message-Id: <1446695464-27116-3-git-send-email-liang.z.li@intel.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      6388acc8
    • L
      kvmclock: add a new function to update env->tsc. · 0fd7e098
      Liang Li 提交于
      The commit 317b0a6d fixed an issue which caused by the outdated
      env->tsc value, but the fix lead to 'cpu_synchronize_all_states()'
      called twice during live migration. The 'cpu_synchronize_all_states()'
      takes about 130us for a VM which has 4 vcpus, it's a bit expensive.
      
      Synchronize the whole CPU context just for updating env->tsc is too
      wasting, this patch use a new function to update the env->tsc.
      Comparing to 'cpu_synchronize_all_states()', it only takes about 20us.
      Signed-off-by: NLiang Li <liang.z.li@intel.com>
      Message-Id: <1446695464-27116-2-git-send-email-liang.z.li@intel.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      0fd7e098
    • J
      configure: disable FORTIFY_SOURCE under clang · b553a042
      John Snow 提交于
      Some versions of clang may have difficulty compiling glibc headers when
      -D_FORTIFY_SOURCE is used. For example, Clang++ 3.5.0-9.fc22 cannot
      compile glibc's stdio headers when -D_FORTIFY_SOURCE=2 is used. This
      manifests currently as build failures with clang and any arm target.
      
      According to LLVM dev Richard Smith, clang does not target or support
      FORTIFY_SOURCE + glibc, and it should not be relied on.
      "It's still an unsupported combination, and while it might compile, some
      of the checks are unlikely to work because they require a frontend
      inliner to be useful"
      
      See: http://lists.llvm.org/pipermail/cfe-dev/2015-November/045846.html
      
      Conclusion: disable fortify-source if we appear to be using clang instead
      of testing for compile success or failure, which may be incidental or not
      indicative of proper support of the feature.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-Id: <1446583422-10153-1-git-send-email-jsnow@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      b553a042
    • P
      Merge remote-tracking branch 'remotes/juanquintela/tags/migration/20151104' into staging · 6c5f30ca
      Peter Maydell 提交于
      migration/next for 20151104
      
      # gpg: Signature made Wed 04 Nov 2015 12:45:19 GMT using RSA key ID 5872D723
      # gpg: Good signature from "Juan Quintela <quintela@redhat.com>"
      # gpg:                 aka "Juan Quintela <quintela@trasno.org>"
      
      * remotes/juanquintela/tags/migration/20151104:
        migration: fix analyze-migration.py script
        migration: code clean up
        migration: rename cancel to cleanup in SaveVMHandles
        migration: rename qemu_savevm_state_cancel
        migration: defer migration_end & blk_mig_cleanup
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      6c5f30ca
    • P
      Merge remote-tracking branch 'remotes/armbru/tags/pull-error-2015-11-03' into staging · 2b5a79f1
      Peter Maydell 提交于
      vl.c: Error message rework
      
      # gpg: Signature made Tue 03 Nov 2015 08:40:50 GMT using RSA key ID EB918653
      # gpg: Good signature from "Markus Armbruster <armbru@redhat.com>"
      # gpg:                 aka "Markus Armbruster <armbru@pond.sub.org>"
      
      * remotes/armbru/tags/pull-error-2015-11-03:
        vl.c: Use "%s support is disabled" error messages consistently
        vl.c: Improve warnings on use of deprecated options
        vl.c: Touch up error messages
        vl.c: Remove unnecessary uppercase in error messages
        vl.c: Use "warning:" prefix consistently on warnings
        vl.c: Remove periods and exclamation points from error messages
        vl.c: Replace fprintf(stderr) with error_report()
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      2b5a79f1
  3. 04 11月, 2015 18 次提交
  4. 03 11月, 2015 11 次提交