1. 20 Jun, 2016 1 commit
  2. 17 Jun, 2016 5 commits
  3. 16 Jun, 2016 1 commit
  4. 14 Jun, 2016 4 commits
  5. 07 Jun, 2016 1 commit
  6. 06 Jun, 2016 5 commits
  7. 19 May, 2016 7 commits
  8. 13 May, 2016 3 commits
  9. 12 May, 2016 7 commits
  10. 04 Apr, 2016 3 commits
  11. 30 Mar, 2016 3 commits
    • Peter Xu's avatar
      arm: implement query-gic-capabilities · db31e49a
      Peter Xu authored
      For emulated GIC capabilities, currently only gicv2 is supported. We
      need to add gicv3 in when emulated gicv3 ready. For KVM accelerated ARM
      VM, we detect the capability bits by creating a scratch VM.
      Signed-off-by: 's avatarPeter Xu <peterx@redhat.com>
      Acked-by: 's avatarSergey Fedorov <serge.fdrv@gmail.com>
      Message-id: 1458788142-17509-5-git-send-email-peterx@redhat.com
      Reviewed-by: 's avatarPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: 's avatarPeter Maydell <peter.maydell@linaro.org>
      db31e49a
    • Peter Xu's avatar
      arm: enhance kvm_arm_create_scratch_host_vcpu · 2f340e9c
      Peter Xu authored
      Support passing NULL for the first parameter (with the same effect
      as passing an empty array) and for the third parameter (meaning
      that we should not attempt to init the vcpu).
      Signed-off-by: 's avatarPeter Xu <peterx@redhat.com>
      Acked-by: 's avatarSergey Fedorov <serge.fdrv@gmail.com>
      Message-id: 1458788142-17509-3-git-send-email-peterx@redhat.com
      [PMM: tweaked commit message, comment]
      Reviewed-by: 's avatarPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: 's avatarPeter Maydell <peter.maydell@linaro.org>
      2f340e9c
    • Peter Xu's avatar
      arm: qmp: add query-gic-capabilities interface · ae50a770
      Peter Xu authored
      This patch add "query-gic-capabilities" but does not implement it. The
      command is ARM-only. The command will return a list of GICCapability
      structs that describes all GIC versions that current QEMU and system
      support.
      
      Libvirt is possibly the first consumer of this new command.
      
      Before this patch, a libvirt user can successfully configure all kinds
      of GIC devices for ARM guests, no matter whether current QEMU/kernel
      supports them. If the specified GIC version/type is not supported, the
      user will get an ambiguous "QEMU boot failure" error when trying to start
      the VM. This is not user-friendly.
      
      With this patch, libvirt should be able to query which type (and which
      version) of GIC device is supported. Using this information, libvirt
      can warn the user during configuration of guests when specified GIC
      device type is not supported. Or better, we can just list those versions
      that we support, and filter out the unsupported ones.
      
      For example, if we got the query result:
      
      {"return": [{"emulated": false, "version": 3, "kernel": true},
                  {"emulated": true, "version": 2, "kernel": false}]}
      
      then it means that we support emulated GIC version 2 using:
      
        qemu-system-aarch64 -M virt,accel=tcg,gic-version=2 ...
      
      or KVM-accelerated GIC version 3 using:
      
        qemu-system-aarch64 -M virt,accel=kvm,gic-version=3 ...
      
      If we specify other explicit GIC versions rather than the above, QEMU
      will not be able to boot.
      
      The community is working on a more generic way to query these kinds of
      information about valid values of machine properties. However, due to
      the importance of supporting this specific use case, weecided to first
      implement this ad-hoc one; then when the generic method is ready, we
      can move on to that one smoothly.
      Signed-off-by: 's avatarPeter Xu <peterx@redhat.com>
      Reviewed-by: 's avatarEric Blake <eblake@redhat.com>
      Message-id: 1458788142-17509-2-git-send-email-peterx@redhat.com
      [PMM: tweaked commit message a bit; monitor.o is CONFIG_SOFTMMU only]
      Signed-off-by: 's avatarPeter Maydell <peter.maydell@linaro.org>
      ae50a770