1. 17 8月, 2018 2 次提交
  2. 30 7月, 2018 1 次提交
  3. 23 7月, 2018 1 次提交
  4. 07 7月, 2018 1 次提交
    • G
      i386: fix '-cpu ?' output for host cpu type · 02693cc4
      Greg Kurz 提交于
      Since commit d6dcc558, '-cpu ?' shows the description of the
      X86_CPU_TYPE_NAME("max") for the host CPU model:
      
      Enables all features supported by the accelerator in the current host
      
      instead of the expected:
      
      KVM processor with all supported host features
      
      or
      
      HVF processor with all supported host features
      
      This is caused by the early use of kvm_enabled() and hvf_enabled() in
      a class_init function. Since the accelerator isn't configured yet, both
      helpers return false unconditionally.
      
      A QEMU binary will only be compiled with one of these accelerators, not
      both. The appropriate description can thus be decided at build time.
      Signed-off-by: NGreg Kurz <groug@kaod.org>
      Message-Id: <153055056654.212317.4697363278304826913.stgit@bahia.lan>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      02693cc4
  5. 02 7月, 2018 3 次提交
  6. 29 6月, 2018 1 次提交
  7. 23 6月, 2018 11 次提交
  8. 09 6月, 2018 2 次提交
  9. 23 5月, 2018 1 次提交
  10. 22 5月, 2018 2 次提交
  11. 15 5月, 2018 6 次提交
  12. 11 5月, 2018 1 次提交
  13. 17 4月, 2018 1 次提交
  14. 09 4月, 2018 1 次提交
    • R
      i386/hyperv: add hv-frequencies cpu property · 9445597b
      Roman Kagan 提交于
      In order to guarantee compatibility on migration, QEMU should have
      complete control over the features it announces to the guest via CPUID.
      
      However, the availability of Hyper-V frequency MSRs
      (HV_X64_MSR_TSC_FREQUENCY and HV_X64_MSR_APIC_FREQUENCY) depends solely
      on the support for them in the underlying KVM.
      
      Introduce "hv-frequencies" cpu property (off by default) which gives
      QEMU full control over whether these MSRs are announced.
      
      While at this, drop the redundant check of the cpu tsc frequency, and
      decouple this feature from hv-time.
      Signed-off-by: NRoman Kagan <rkagan@virtuozzo.com>
      Reviewed-by: NEduardo Habkost <ehabkost@redhat.com>
      Message-Id: <20180330170209.20627-2-rkagan@virtuozzo.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      9445597b
  15. 20 3月, 2018 3 次提交
    • L
      i386: Disable Intel PT if packets IP payloads have LIP values · c078ca96
      Luwei Kang 提交于
      Intel processor trace should be disabled when
      CPUID.(EAX=14H,ECX=0H).ECX.[bit31] is set.
      Generated packets which contain IP payloads will have LIP
      values when this bit is set, or IP payloads will have RIP
      values.
      Currently, The information of CPUID 14H is constant to make
      live migration safty and this bit is always 0 in guest even
      if host support LIP values.
      Guest sees the bit is 0 will expect IP payloads with RIP
      values, but the host CPU will generate IP payloads with
      LIP values if this bit is set in HW.
      To make sure the value of IP payloads correctly, Intel PT
      should be disabled when bit[31] is set.
      Signed-off-by: NLuwei Kang <luwei.kang@intel.com>
      Message-Id: <1520969191-18162-1-git-send-email-luwei.kang@intel.com>
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      c078ca96
    • M
      qapi: Replace qobject_to_X(o) by qobject_to(X, o) · 7dc847eb
      Max Reitz 提交于
      This patch was generated using the following Coccinelle script:
      
      @@
      expression Obj;
      @@
      (
      - qobject_to_qnum(Obj)
      + qobject_to(QNum, Obj)
      |
      - qobject_to_qstring(Obj)
      + qobject_to(QString, Obj)
      |
      - qobject_to_qdict(Obj)
      + qobject_to(QDict, Obj)
      |
      - qobject_to_qlist(Obj)
      + qobject_to(QList, Obj)
      |
      - qobject_to_qbool(Obj)
      + qobject_to(QBool, Obj)
      )
      
      and a bit of manual fix-up for overly long lines and three places in
      tests/check-qjson.c that Coccinelle did not find.
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      Reviewed-by: NAlberto Garcia <berto@igalia.com>
      Message-Id: <20180224154033.29559-4-mreitz@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      [eblake: swap order from qobject_to(o, X), rebase to master, also a fix
      to latent false-positive compiler complaint about hw/i386/acpi-build.c]
      Signed-off-by: NEric Blake <eblake@redhat.com>
      7dc847eb
    • I
      cpu: drop unnecessary NULL check and cpu_common_class_by_name() · 99193d8f
      Igor Mammedov 提交于
      both do nothing as for the first all callers
         parse_cpu_model() and qmp_query_cpu_model_()
      should provide non NULL value, so just abort if it's not so.
      
      While at it drop cpu_common_class_by_name() which is not need
      any more as every target has CPUClass::class_by_name callback
      by now, though abort in case a new arch will forget to define one.
      Signed-off-by: NIgor Mammedov <imammedo@redhat.com>
      Message-Id: <1518013857-4372-1-git-send-email-imammedo@redhat.com>
      Reviewed-by: NEduardo Habkost <ehabkost@redhat.com>
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      99193d8f
  16. 14 3月, 2018 1 次提交
  17. 13 3月, 2018 2 次提交