1. 07 7月, 2015 3 次提交
  2. 02 6月, 2015 1 次提交
  3. 30 4月, 2015 1 次提交
  4. 16 3月, 2015 1 次提交
  5. 12 3月, 2015 1 次提交
  6. 12 1月, 2015 1 次提交
  7. 15 12月, 2014 1 次提交
    • E
      KVM_CAP_IRQFD and KVM_CAP_IRQFD_RESAMPLE checks · f41389ae
      Eric Auger 提交于
      Compute kvm_irqfds_allowed by checking the KVM_CAP_IRQFD extension.
      Remove direct settings in architecture specific files.
      
      Add a new kvm_resamplefds_allowed variable, initialized by
      checking the KVM_CAP_IRQFD_RESAMPLE extension. Add a corresponding
      kvm_resamplefds_enabled() function.
      
      A special notice for s390 where KVM_CAP_IRQFD was not immediatly
      advirtised when irqfd capability was introduced in the kernel.
      KVM_CAP_IRQ_ROUTING was advertised instead.
      
      This was fixed in "KVM: s390: announce irqfd capability",
      ebc3226202d5956a5963185222982d435378b899 whereas irqfd support
      was brought in 84223598778ba08041f4297fda485df83414d57e,
      "KVM: s390: irq routing for adapter interrupts".  Both commits
      first appear in 3.15 so there should not be any kernel
      version impacted by this QEMU modification.
      Signed-off-by: NEric Auger <eric.auger@linaro.org>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      f41389ae
  8. 23 11月, 2014 1 次提交
  9. 04 10月, 2014 1 次提交
  10. 16 9月, 2014 1 次提交
  11. 08 9月, 2014 1 次提交
  12. 19 6月, 2014 1 次提交
  13. 18 6月, 2014 1 次提交
    • J
      kvm: Allow arch to set sigmask length · aed6efb9
      James Hogan 提交于
      MIPS/Linux is unusual in having 128 signals rather than just 64 like
      most other architectures. This means its sigmask is 16 bytes instead of
      8, so allow arches to override the sigmask->len value passed to the
      KVM_SET_SIGNAL_MASK ioctl in kvm_set_signal_mask() by calling
      kvm_set_sigmask_len() from kvm_arch_init(). Otherwise default to 8
      bytes.
      Signed-off-by: NJames Hogan <james.hogan@imgtec.com>
      Cc: Aurelien Jarno <aurelien@aurel32.net>
      Cc: Sanjay Lal <sanjayl@kymasys.com>
      Cc: Gleb Natapov <gleb@redhat.com>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Peter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      aed6efb9
  14. 20 5月, 2014 2 次提交
  15. 13 5月, 2014 2 次提交
  16. 06 5月, 2014 1 次提交
  17. 30 4月, 2014 1 次提交
  18. 13 3月, 2014 1 次提交
  19. 05 3月, 2014 2 次提交
    • A
      kvm: Add a new machine option kvm-type · 135a129a
      Aneesh Kumar K.V 提交于
      Targets like ppc64 support different types of KVM, one which use
      hypervisor mode and the other which doesn't. Add a new machine
      option kvm-type that helps in selecting the respective ones
      We also add a new QEMUMachine callback get_vm_type that helps
      in mapping the string representation of kvm type specified.
      Signed-off-by: NAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
      [agraf: spelling fixes, use error_report(), use qemumachine.h]
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      135a129a
    • A
      KVM: Split QEMUMachine typedef into separate header · 9c06a1f7
      Alexander Graf 提交于
      Older gcc versions (such as the one in SLES11) get confused when you declare
      a typedef on the same struct twice.
      
      To work around that limitation, let's extract the QEMUMachine typedef into a
      separate header file that is guarded by preprocessor duplicate include checks.
      
      This fixes the following type of compile errors for me:
      
        In file included from vl.c:125:
        include/hw/xen/xen.h:39: error: redefinition of typedef "QEMUMachine"
        include/sysemu/kvm.h:155: error: previous declaration of "QEMUMachine" was here
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      9c06a1f7
  20. 27 2月, 2014 2 次提交
  21. 20 9月, 2013 2 次提交
    • A
      kvm irqfd: support direct msimessage to irq translation · 76fe21de
      Alexey Kardashevskiy 提交于
      On PPC64 systems MSI Messages are translated to system IRQ in a PCI
      host bridge. This is already supported for emulated MSI/MSIX but
      not for irqfd where the current QEMU allocates IRQ numbers from
      irqchip and maps MSIMessages to IRQ in the host kernel.
      
      This adds a new direct mapping flag which tells
      the kvm_irqchip_add_msi_route() function that a new VIRQ
      should not be allocated, instead the value from MSIMessage::data
      should be used. It is up to the platform code to make sure that
      this contains a valid IRQ number as sPAPR does in spapr_pci.c.
      Signed-off-by: NAlexey Kardashevskiy <aik@ozlabs.ru>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      76fe21de
    • J
      cpu: Move cpu state syncs up into cpu_dump_state() · 97577fd4
      James Hogan 提交于
      The x86 and ppc targets call cpu_synchronize_state() from their
      *_cpu_dump_state() callbacks to ensure that up to date state is dumped
      when KVM is enabled (for example when a KVM internal error occurs).
      
      Move this call up into the generic cpu_dump_state() function so that
      other KVM targets (namely MIPS) can take advantage of it.
      
      This requires kvm_cpu_synchronize_state() and cpu_synchronize_state() to
      be moved out of the #ifdef NEED_CPU_H in <sysemu/kvm.h> so that they're
      accessible to qom/cpu.c.
      Signed-off-by: NJames Hogan <james.hogan@imgtec.com>
      Cc: Andreas Färber <afaerber@suse.de>
      Cc: Alexander Graf <agraf@suse.de>
      Cc: Gleb Natapov <gleb@redhat.com>
      Cc: qemu-ppc@nongnu.org
      Cc: kvm@vger.kernel.org
      Signed-off-by: NGleb Natapov <gleb@redhat.com>
      97577fd4
  22. 13 9月, 2013 1 次提交
  23. 10 8月, 2013 1 次提交
  24. 27 7月, 2013 1 次提交
  25. 23 7月, 2013 1 次提交
  26. 10 7月, 2013 2 次提交
  27. 01 7月, 2013 3 次提交
    • A
      KVM: PIC: Only commit irq routing when necessary · cb925cf9
      Alexander Graf 提交于
      The current logic updates KVM's view of our interrupt map every time we
      change it. While this is nice and bullet proof, it slows things down
      badly for me. QEMU spends about 3 seconds on every start telling KVM what
      news it has on its routing maps.
      
      Instead, let's just synchronize the whole irq routing map as a whole when
      we're done constructing it. For things that change during runtime, we can
      still update the routing table on demand.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      cb925cf9
    • A
      KVM: Export kvm_init_irq_routing · 7b774593
      Alexander Graf 提交于
      On PPC, we can have different types of interrupt controllers, so we really
      only know that we are going to use one when we created it.
      
      Export kvm_init_irq_routing() to common code, so that we don't have to call
      kvm_irqchip_create().
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      7b774593
    • A
      KVM: Don't assume that mpstate exists with in-kernel PIC always · 215e79c0
      Alexander Graf 提交于
      On PPC, we don't support MP state. So far it's not necessary and I'm
      not convinced yet that we really need to support it ever.
      
      However, the current idle logic in QEMU assumes that an in-kernel PIC
      also means we support MP state. This assumption is not true anymore.
      
      Let's split up the two cases into two different variables. That way
      PPC can expose an in-kernel PIC, while not implementing MP state.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      CC: Jan Kiszka <jan.kiszka@siemens.com>
      215e79c0
  28. 28 6月, 2013 3 次提交