1. 17 3月, 2015 1 次提交
  2. 11 3月, 2015 1 次提交
    • M
      target-i386: Clean up misuse of qdev_init() in realize method · 6e8e2651
      Markus Armbruster 提交于
      x86_cpu_apic_realize() calls qdev_init() to realize the APIC.
      qdev_init()'s error handling has unwanted side effects: it unparents
      the device, and it calls qerror_report_err().
      
      qerror_report_err() is always inappropriate in realize methods,
      because it doesn't return the Error object.  It either reports the
      error to stderr or the human monitor, or it stores it in the QMP
      monitor, where it makes the QMP command fail even though the realize
      method succeeded.
      
      Fortunately, qdev_init() can't actually fail here, because realize
      can't fail for any of the three possible APIC device models.
      
      Clean up by cutting out the qdev_init() middle-man: set property
      "realized" directly.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NIgor Mammedov <imammedo@redhat.com>
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      6e8e2651
  3. 10 3月, 2015 7 次提交
  4. 03 3月, 2015 1 次提交
  5. 26 2月, 2015 10 次提交
  6. 18 2月, 2015 1 次提交
  7. 26 1月, 2015 1 次提交
  8. 15 12月, 2014 6 次提交
  9. 24 11月, 2014 1 次提交
    • P
      apic: avoid getting out of halted state on masked PIC interrupts · 60e68042
      Paolo Bonzini 提交于
      After the next patch, if a masked PIC interrupts causes CPU_INTERRUPT_POLL
      to be set, the CPU will spuriously get out of halted state.  While this
      is technically valid, we should avoid that.
      
      Make CPU_INTERRUPT_POLL run apic_update_irq in the right thread and then
      look at CPU_INTERRUPT_HARD.  If CPU_INTERRUPT_HARD does not get set,
      do not report the CPU as having work.
      
      Also move the handling of software-disabled APIC from apic_update_irq
      to apic_irq_pending, and always trigger CPU_INTERRUPT_POLL.  This will
      be important once we will add a case that resets CPU_INTERRUPT_HARD
      from apic_update_irq.  We want to run it even if we go through
      CPU_INTERRUPT_POLL, and even if the local APIC is software disabled.
      Reported-by: NRichard Bilson <rbilson@qnx.com>
      Tested-by: NRichard Bilson <rbilson@qnx.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      60e68042
  10. 11 11月, 2014 1 次提交
  11. 04 11月, 2014 5 次提交
  12. 02 11月, 2014 1 次提交
  13. 25 10月, 2014 1 次提交
  14. 23 10月, 2014 1 次提交
  15. 26 9月, 2014 2 次提交