1. 15 6月, 2016 2 次提交
  2. 24 5月, 2016 1 次提交
  3. 21 5月, 2016 1 次提交
  4. 23 3月, 2016 1 次提交
  5. 17 3月, 2016 1 次提交
    • E
      machine: Use type_init() to register machine classes · 0e6aac87
      Eduardo Habkost 提交于
      Change all machine_init() users that simply call type_register*()
      to use type_init().
      
      Cc: Evgeny Voevodin <e.voevodin@samsung.com>
      Cc: Maksim Kozlov <m.kozlov@samsung.com>
      Cc: Igor Mitsyanko <i.mitsyanko@gmail.com>
      Cc: Dmitry Solodkiy <d.solodkiy@samsung.com>
      Cc: Peter Maydell <peter.maydell@linaro.org>
      Cc: Rob Herring <robh@kernel.org>
      Cc: Andrzej Zaborowski <balrogg@gmail.com>
      Cc: Michael Walle <michael@walle.cc>
      Cc: "Hervé Poussineau" <hpoussin@reactos.org>
      Cc: Aurelien Jarno <aurelien@aurel32.net>
      Cc: Leon Alrae <leon.alrae@imgtec.com>
      Cc: Alexander Graf <agraf@suse.de>
      Cc: David Gibson <david@gibson.dropbear.id.au>
      Cc: Blue Swirl <blauwirbel@gmail.com>
      Cc: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
      Cc: Max Filippov <jcmvbkbc@gmail.com>
      Cc: "Michael S. Tsirkin" <mst@redhat.com>
      Acked-by: NMarcel Apfelbaum <marcel@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Acked-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      0e6aac87
  6. 11 3月, 2016 3 次提交
  7. 08 3月, 2016 1 次提交
  8. 07 2月, 2016 10 次提交
  9. 22 1月, 2016 1 次提交
  10. 21 1月, 2016 1 次提交
    • H
      target-i386: Add support to migrate vcpu's TSC rate · 36f96c4b
      Haozhong Zhang 提交于
      This patch enables migrating vcpu's TSC rate. If KVM on the
      destination machine supports TSC scaling, guest programs will
      observe a consistent TSC rate across the migration.
      
      If TSC scaling is not supported on the destination machine, the
      migration will not be aborted and QEMU on the destination will
      not set vcpu's TSC rate to the migrated value.
      
      If vcpu's TSC rate specified by CPU option 'tsc-freq' on the
      destination machine is inconsistent with the migrated TSC rate,
      the migration will be aborted.
      
      For backwards compatibility, the migration of vcpu's TSC rate is
      disabled on pc-*-2.5 and older machine types.
      Signed-off-by: NHaozhong Zhang <haozhong.zhang@intel.com>
      Reviewed-by: NEduardo Habkost <ehabkost@redhat.com>
      [ehabkost: Rewrote comment at kvm_arch_put_registers()]
      [ehabkost: Moved compat code to pc-2.5]
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      36f96c4b
  11. 11 1月, 2016 1 次提交
  12. 10 1月, 2016 1 次提交
  13. 23 12月, 2015 3 次提交
  14. 22 12月, 2015 7 次提交
  15. 18 12月, 2015 1 次提交
    • P
      kvm: x86: add support for KVM_CAP_SPLIT_IRQCHIP · 15eafc2e
      Paolo Bonzini 提交于
      This patch adds support for split IRQ chip mode. When
      KVM_CAP_SPLIT_IRQCHIP is enabled:
      
          1.) The PIC, PIT, and IOAPIC are implemented in userspace while
          the LAPIC is implemented by KVM.
      
          2.) The software IOAPIC delivers interrupts to the KVM LAPIC via
          kvm_set_irq. Interrupt delivery is configured via the MSI routing
          table, for which routes are reserved in target-i386/kvm.c then
          configured in hw/intc/ioapic.c
      
          3.) KVM delivers IOAPIC EOIs via a new exit KVM_EXIT_IOAPIC_EOI,
          which is handled in target-i386/kvm.c and relayed to the software
          IOAPIC via ioapic_eoi_broadcast.
      Signed-off-by: NMatt Gingell <gingell@google.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      15eafc2e
  16. 18 11月, 2015 1 次提交
    • E
      target-i386: Disable rdtscp on Opteron_G* CPU models · 33b5e8c0
      Eduardo Habkost 提交于
      KVM can't virtualize rdtscp on AMD CPUs yet, so there's no point
      in enabling it by default on AMD CPU models, as all we are
      getting are confused users because of the "host doesn't support
      requested feature" warnings.
      
      Disable rdtscp on Opteron_G* models, but keep compatibility on
      pc-*-2.4 and older (just in case there are people are doing funny
      stuff using AMD CPU models on Intel hosts).
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      33b5e8c0
  17. 06 11月, 2015 4 次提交
    • E
      target-i386: Remove POPCNT from qemu64 and qemu32 CPU models · 6aa91e4a
      Eduardo Habkost 提交于
      POPCNT is not available on Penryn and older and on Opteron_G2 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 POPCNT in
      the qemu64 and qemu32 CPU models entirely.
      Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      6aa91e4a
    • 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