1. 13 8月, 2015 1 次提交
  2. 07 7月, 2015 1 次提交
  3. 12 5月, 2015 6 次提交
  4. 02 4月, 2015 1 次提交
  5. 16 3月, 2015 1 次提交
  6. 11 12月, 2014 1 次提交
  7. 06 5月, 2014 1 次提交
  8. 15 3月, 2014 1 次提交
  9. 27 2月, 2014 2 次提交
    • C
      hw: arm_gic_kvm: Add KVM VGIC save/restore logic · 855011be
      Christoffer Dall 提交于
      Save and restore the ARM KVM VGIC state from the kernel.  We rely on
      QEMU to marshal the GICState data structure and therefore simply
      synchronize the kernel state with the QEMU emulated state in both
      directions.
      
      We take some care on the restore path to check the VGIC has been
      configured with enough IRQs and CPU interfaces that we can properly
      restore the state, and for separate set/clear registers we first fully
      clear the registers and then set the required bits.
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NChristoffer Dall <christoffer.dall@linaro.org>
      Message-id: 1392687921-26921-1-git-send-email-christoffer.dall@linaro.org
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      855011be
    • C
      arm: vgic device control api support · 1da41cc1
      Christoffer Dall 提交于
      Support creating the ARM vgic device through the device control API and
      setting the base address for the distributor and cpu interfaces in KVM
      VMs using this API.
      
      Because the older KVM_CREATE_IRQCHIP interface needs the irq chip to be
      created prior to creating the VCPUs, we first test if we can use the
      device control API in kvm_arch_irqchip_create (using the test flag from
      the device control API).  If we cannot, it means we have to fall back to
      KVM_CREATE_IRQCHIP and use the older ioctl at this point in time.  If
      however, we can use the device control API, we don't do anything and
      wait until the arm_gic_kvm driver initializes and let that use the
      device control API.
      Signed-off-by: NChristoffer Dall <christoffer.dall@linaro.org>
      Message-id: 1392687720-26806-5-git-send-email-christoffer.dall@linaro.org
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      1da41cc1
  10. 23 12月, 2013 2 次提交
    • M
      sysbus: Set cannot_instantiate_with_device_add_yet · 837d3716
      Markus Armbruster 提交于
      device_add plugs devices into suitable bus.  For "real" buses, that
      actually connects the device.  For sysbus, the connections need to be
      made separately, and device_add can't do that.  The device would be
      left unconnected, and could not possibly work.
      
      Quite a few, but not all sysbus devices already set
      cannot_instantiate_with_device_add_yet in their class init function.
      
      Set it in their abstract base's class init function
      sysbus_device_class_init(), and remove the now redundant assignments
      from device class init functions.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NMarcel Apfelbaum <marcel.a@redhat.com>
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      837d3716
    • M
      qdev: Replace no_user by cannot_instantiate_with_device_add_yet · efec3dd6
      Markus Armbruster 提交于
      In an ideal world, machines can be built by wiring devices together
      with configuration, not code.  Unfortunately, that's not the world we
      live in right now.  We still have quite a few devices that need to be
      wired up by code.  If you try to device_add such a device, it'll fail
      in sometimes mysterious ways.  If you're lucky, you get an
      unmysterious immediate crash.
      
      To protect users from such badness, DeviceClass member no_user used to
      make device models unavailable with -device / device_add, but that
      regressed in commit 18b6dade.  The device model is still omitted from
      help, but is available anyway.
      
      Attempts to fix the regression have been rejected with the argument
      that the purpose of no_user isn't clear, and it's prone to misuse.
      
      This commit clarifies no_user's purpose.  Anthony suggested to rename
      it cannot_instantiate_with_device_add_yet_due_to_internal_bugs, which
      I shorten somewhat to keep checkpatch happy.  While there, make it
      bool.
      
      Every use of cannot_instantiate_with_device_add_yet gets a FIXME
      comment asking for rationale.  The next few commits will clean them
      all up, either by providing a rationale, or by getting rid of the use.
      
      With that done, the regression fix is hopefully acceptable.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NMarcel Apfelbaum <marcel.a@redhat.com>
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      efec3dd6
  11. 04 7月, 2013 2 次提交
  12. 09 4月, 2013 2 次提交
  13. 05 3月, 2013 1 次提交