1. 14 9月, 2016 2 次提交
  2. 22 7月, 2016 3 次提交
  3. 07 6月, 2016 1 次提交
  4. 30 5月, 2016 1 次提交
  5. 27 5月, 2016 1 次提交
    • G
      PPC/KVM: early validation of vcpu id · 41264b38
      Greg Kurz 提交于
      The KVM API restricts vcpu ids to be < KVM_CAP_MAX_VCPUS. On PowerPC
      targets, depending on the number of threads per core in the host and
      in the guest, some topologies do generate higher vcpu ids actually.
      When this happens, QEMU bails out with the following error:
      
      kvm_init_vcpu failed: Invalid argument
      
      The KVM_CREATE_VCPU ioctl has several EINVAL return paths, so it is
      not possible to fully disambiguate.
      
      This patch adds a check in the code that computes vcpu ids, so that
      we can detect the error earlier, and print a friendlier message instead
      of calling KVM_CREATE_VCPU with an obviously bogus vcpu id.
      Signed-off-by: NGreg Kurz <gkurz@linux.vnet.ibm.com>
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      41264b38
  6. 19 5月, 2016 1 次提交
  7. 31 3月, 2016 1 次提交
  8. 23 2月, 2016 1 次提交
    • P
      include: Clean up includes · 90ce6e26
      Peter Maydell 提交于
      Clean up includes so that osdep.h is included first and headers
      which it implies are not included manually.
      
      This commit was created with scripts/clean-includes.
      
      NB: If this commit breaks compilation for your out-of-tree
      patchseries or fork, then you need to make sure you add
      #include "qemu/osdep.h" to any new .c files that you have.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      90ce6e26
  9. 18 12月, 2015 2 次提交
  10. 17 12月, 2015 1 次提交
  11. 12 11月, 2015 1 次提交
  12. 05 11月, 2015 1 次提交
  13. 19 10月, 2015 3 次提交
  14. 13 10月, 2015 1 次提交
  15. 24 9月, 2015 1 次提交
    • P
      intc/gic: Extract some reusable vGIC code · 4b3cfe72
      Pavel Fedin 提交于
      Some functions previously used only by vGICv2 are useful also for vGICv3
      implementation. Untie them from GICState and make accessible from within
      other modules:
      - kvm_arm_gic_set_irq()
      - kvm_gic_supports_attr() - moved to common code and renamed to
        kvm_device_check_attr()
      - kvm_gic_access() - turned into GIC-independent kvm_device_access().
        Data pointer changed to void * because some GICv3 registers are
        64-bit wide
      
      Some of these changes are not used right now, but they will be helpful for
      implementing live migration.
      
      Actually kvm_dist_get() and kvm_dist_put() could also be made reusable, but
      they would require two extra parameters (s->dev_fd and s->num_cpu) as well as
      lots of typecasts of 's' to DeviceState * and back to GICState *. This makes
      the code very ugly so i decided to stop at this point. I tried also an
      approach with making a base class for all possible GICs, but it would contain
      only three variables (dev_fd, cpu_num and irq_num), and accessing them through
      the rest of the code would be again tedious (either ugly casts or qemu-style
      separate object pointer). So i disliked it too.
      Signed-off-by: NPavel Fedin <p.fedin@samsung.com>
      Tested-by: NAshok kumar <ashoks@broadcom.com>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: 2ef56d1dd64ffb75ed02a10dcdaf605e5b8ff4f8.1441784344.git.p.fedin@samsung.com
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      4b3cfe72
  16. 07 7月, 2015 3 次提交
  17. 02 6月, 2015 1 次提交
  18. 30 4月, 2015 1 次提交
  19. 16 3月, 2015 1 次提交
  20. 12 3月, 2015 1 次提交
  21. 12 1月, 2015 1 次提交
  22. 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
  23. 23 11月, 2014 1 次提交
  24. 04 10月, 2014 1 次提交
  25. 16 9月, 2014 1 次提交
  26. 08 9月, 2014 1 次提交
  27. 19 6月, 2014 1 次提交
  28. 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
  29. 20 5月, 2014 2 次提交
  30. 13 5月, 2014 2 次提交