1. 15 8月, 2014 1 次提交
  2. 07 5月, 2014 1 次提交
  3. 27 4月, 2014 1 次提交
  4. 27 3月, 2014 1 次提交
  5. 11 2月, 2014 1 次提交
  6. 25 12月, 2013 2 次提交
  7. 23 8月, 2013 1 次提交
  8. 04 7月, 2013 2 次提交
  9. 02 6月, 2013 1 次提交
  10. 01 5月, 2013 1 次提交
  11. 09 4月, 2013 2 次提交
  12. 12 3月, 2013 2 次提交
  13. 01 3月, 2013 1 次提交
    • P
      hw: include hw header files with full paths · 83c9f4ca
      Paolo Bonzini 提交于
      Done with this script:
      
      cd hw
      for i in `find . -name '*.h' | sed 's/^..//'`; do
        echo '\,^#.*include.*["<]'$i'[">], s,'$i',hw/&,'
      done | sed -i -f - `find . -type f`
      
      This is so that paths remain valid as files are moved.
      
      Instead, files in hw/dataplane are referenced with the relative path.
      We know they are not going to move to include/, and they are the only
      include files that are in subdirectories _and_ move.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      83c9f4ca
  14. 11 1月, 2013 1 次提交
    • A
      Make all static TypeInfos const · 8c43a6f0
      Andreas Färber 提交于
      Since 39bffca2 (qdev: register all
      types natively through QEMU Object Model), TypeInfo as used in
      the common, non-iterative pattern is no longer amended with information
      and should therefore be const.
      
      Fix the documented QOM examples:
      
       sed -i 's/static TypeInfo/static const TypeInfo/g' include/qom/object.h
      
      Since frequently the wrong examples are being copied by contributors of
      new devices, fix all types in the tree:
      
       sed -i 's/^static TypeInfo/static const TypeInfo/g' */*.c
       sed -i 's/^static TypeInfo/static const TypeInfo/g' */*/*.c
      
      This also avoids to piggy-back these changes onto real functional
      changes or other refactorings.
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      8c43a6f0
  15. 19 12月, 2012 1 次提交
  16. 17 12月, 2012 1 次提交
  17. 31 10月, 2012 3 次提交
  18. 23 10月, 2012 1 次提交
    • A
      Rename target_phys_addr_t to hwaddr · a8170e5e
      Avi Kivity 提交于
      target_phys_addr_t is unwieldly, violates the C standard (_t suffixes are
      reserved) and its purpose doesn't match the name (most target_phys_addr_t
      addresses are not target specific).  Replace it with a finger-friendly,
      standards conformant hwaddr.
      
      Outstanding patchsets can be fixed up with the command
      
        git rebase -i --exec 'find -name "*.[ch]"
                              | xargs s/target_phys_addr_t/hwaddr/g' origin
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      a8170e5e
  19. 10 7月, 2012 3 次提交
  20. 22 6月, 2012 1 次提交
  21. 17 5月, 2012 1 次提交
  22. 18 2月, 2012 1 次提交
    • J
      kvmvapic: Introduce TPR access optimization for Windows guests · e5ad936b
      Jan Kiszka 提交于
      This enables acceleration for MMIO-based TPR registers accesses of
      32-bit Windows guest systems. It is mostly useful with KVM enabled,
      either on older Intel CPUs (without flexpriority feature, can also be
      manually disabled for testing) or any current AMD processor.
      
      The approach introduced here is derived from the original version of
      qemu-kvm. It was refactored, documented, and extended by support for
      user space APIC emulation, both with and without KVM acceleration. The
      VMState format was kept compatible, so was the ABI to the option ROM
      that implements the guest-side para-virtualized driver service. This
      enables seamless migration from qemu-kvm to upstream or, one day,
      between KVM and TCG mode.
      
      The basic concept goes like this:
       - VAPIC PV interface consisting of I/O port 0x7e and (for KVM in-kernel
         irqchip) a vmcall hypercall is registered
       - VAPIC option ROM is loaded into guest
       - option ROM activates TPR MMIO access reporting via port 0x7e
       - TPR accesses are trapped and patched in the guest to call into option
         ROM instead, VAPIC support is enabled
       - option ROM TPR helpers track state in memory and invoke hypercall to
         poll for pending IRQs if required
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      e5ad936b
  23. 15 2月, 2012 1 次提交
  24. 04 2月, 2012 1 次提交
    • A
      qdev: register all types natively through QEMU Object Model · 39bffca2
      Anthony Liguori 提交于
      This was done in a mostly automated fashion.  I did it in three steps and then
      rebased it into a single step which avoids repeatedly touching every file in
      the tree.
      
      The first step was a sed-based addition of the parent type to the subclass
      registration functions.
      
      The second step was another sed-based removal of subclass registration functions
      while also adding virtual functions from the base class into a class_init
      function as appropriate.
      
      Finally, a python script was used to convert the DeviceInfo structures and
      qdev_register_subclass functions to TypeInfo structures, class_init functions,
      and type_register_static calls.
      
      We are almost fully converted to QOM after this commit.
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      39bffca2
  25. 28 1月, 2012 1 次提交
  26. 19 1月, 2012 5 次提交
    • J
      apic: Open-code timer save/restore · 7a380ca3
      Jan Kiszka 提交于
      To enable migration between accelerated and non-accelerated APIC models,
      we will need to handle the timer saving and restoring specially and can
      no longer rely on the automatics of VMSTATE_TIMER. Specifically,
      accelerated model will not start any QEMUTimer.
      
      This patch therefore factors out the generic bits into apic_next_timer
      and use a post-load callback to implemented model-specific logic.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      7a380ca3
    • J
      apic: Factor out base class for KVM reuse · dae01685
      Jan Kiszka 提交于
      The KVM in-kernel APIC model will reuse parts of the user space model
      while providing the same frontend view to guest and most management
      interfaces.
      
      Factor out an APIC base class to encapsulate those parts that will be
      shared by user space and KVM model. This class offers callback hooks for
      init, base/tpr setting, and the external NMI delivery that will be
      set via APICCommonInfo structure and implemented specifically in the
      subclasses.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      dae01685
    • J
      apic: Introduce apic_report_irq_delivered · 343270ea
      Jan Kiszka 提交于
      The in-kernel i8259 and IOAPIC backends for KVM will need this, so
      encapsulate the shared bits.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      343270ea
    • J
      apic: Inject external NMI events via LINT1 · 02c09195
      Jan Kiszka 提交于
      On real hardware, NMI button events are injected via the LINT1 line of
      the APICs. E.g. kdump expect this wiring and gets upset if the per-APIC
      LINT1 mask is not respected, i.e. if NMIs are injected to VCPUs that
      should not receive them. Change the APIC emulation code to reflect this.
      
      Based on qemu-kvm patch by Lai Jiangshan.
      
      CC: Lai Jiangshan <laijs@cn.fujitsu.com>
      Reported-by: NKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      02c09195
    • J
      apic: Stop timer on reset · ab388a98
      Jan Kiszka 提交于
      All LVTs are masked on reset, so the timer becomes ineffective. Letting
      it tick nevertheless is harmless, but will at least create a spurious
      trace event.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      ab388a98
  27. 28 11月, 2011 1 次提交
  28. 16 10月, 2011 1 次提交
    • J
      pc: Fix and clean up PIC-to-APIC IRQ path · d96e1737
      Jan Kiszka 提交于
      The master PIC is connected to the LINTIN0 of the APICs. As the APIC
      currently does not track the state of that line, we have to ask the PIC
      to reinject its IRQ after the CPU picked up an event from the APIC.
      
      This introduces pic_get_output to read the master PIC IRQ line state
      without changing it. The APIC uses this function to decide if a PIC IRQ
      should be reinjected on apic_update_irq. This reflects better how the
      real hardware works.
      
      The patch fixes some failures of the kvm unit tests apic and eventinj by
      allowing to enable the proper CPU IRQ deassertion when the guest masks
      some pending IRQs at PIC level.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      d96e1737