1. 19 7月, 2012 3 次提交
    • A
      msi/msix: added API to set MSI message address and data · 932d4a42
      Alexey Kardashevskiy 提交于
      Added (msi|msix)_set_message() function for whoever might
      want to use them.
      
      Currently msi_notify()/msix_notify() write to these vectors to
      signal the guest about an interrupt so the correct values have to
      written there by the guest or QEMU.
      
      For example, POWER guest never initializes MSI/MSIX vectors, instead
      it uses RTAS hypercalls. So in order to support MSIX for virtio-pci on
      POWER we have to initialize MSI/MSIX message from QEMU.
      Signed-off-by: NAlexey Kardashevskiy <aik@ozlabs.ru>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      932d4a42
    • J
      pci: Add INTx routing notifier · 0ae16251
      Jan Kiszka 提交于
      This per-device notifier shall be triggered by any interrupt router
      along the path of a device's legacy interrupt signal on routing changes.
      For simplicity reasons and as this is a slow path anyway, no further
      details on the routing changes are provided. Instead, the callback is
      expected to use pci_device_route_intx_to_irq to check the effect of the
      change.
      
      Will be used by KVM PCI device assignment and VFIO.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      0ae16251
    • M
      pci: Add pci_device_route_intx_to_irq · 3afa9bb4
      Michael S. Tsirkin 提交于
      Device assigned on KVM needs to know the mode
      (enabled/inverted/disabled) and the IRQ number that a given device
      triggers in the attached interrupt controller.
      
      Add a PCI IRQ path discovery function that walks from a given device to
      the host bridge, and gets this information.  For
      this purpose, a host bridge callback function is introduced:
      route_intx_to_irq. It is so far only implemented by the PIIX3, other
      host bridges can be added later on as required.
      
      Will be used for KVM PCI device assignment and VFIO.
      
      Based on patch by Jan Kiszka, with minor tweaks.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      3afa9bb4
  2. 04 7月, 2012 2 次提交
  3. 18 6月, 2012 10 次提交
  4. 12 6月, 2012 2 次提交
  5. 07 6月, 2012 10 次提交
  6. 04 6月, 2012 2 次提交
  7. 03 6月, 2012 2 次提交
    • A
      Merge remote-tracking branch 'qemu-kvm/uq/master' into staging · 74f4d227
      Anthony Liguori 提交于
      * qemu-kvm/uq/master:
        virtio/vhost: Add support for KVM in-kernel MSI injection
        msix: Add msix_nr_vectors_allocated
        kvm: Enable use of kvm_irqchip_in_kernel in hwlib code
        kvm: Introduce kvm_irqchip_add/remove_irqfd
        kvm: Make kvm_irqchip_commit_routes an internal service
        kvm: Publicize kvm_irqchip_release_virq
        kvm: Introduce kvm_irqchip_add_msi_route
        kvm: Rename kvm_irqchip_add_route to kvm_irqchip_add_irq_route
        msix: Introduce vector notifiers
        msix: Invoke msix_handle_mask_update on msix_mask_all
        msix: Factor out msix_get_message
        kvm: update vmxcap for EPT A/D, INVPCID, RDRAND, VMFUNC
        kvm: Enable in-kernel irqchip support by default
        kvm: Add support for direct MSI injections
        kvm: Update kernel headers
        kvm: x86: Wire up MSI support for in-kernel irqchip
        pc: Enable MSI support at APIC level
        kvm: Introduce basic MSI support for in-kernel irqchips
        Introduce MSIMessage structure
        kvm: Refactor KVMState::max_gsi to gsi_count
      74f4d227
    • A
      Merge remote-tracking branch 'kwolf/for-anthony' into staging · 2eb02f28
      Anthony Liguori 提交于
      * kwolf/for-anthony:
        ahci: SATA FIS is 20 bytes, not 0x20
        virtio-blk: Fix geometry sector calculation
        block: prevent snapshot mode $TMPDIR symlink attack
        sheepdog: fix return value of do_load_save_vm_state
        virtio: Fix compiler warning for non Linux hosts
      2eb02f28
  8. 01 6月, 2012 2 次提交
  9. 31 5月, 2012 3 次提交
  10. 30 5月, 2012 4 次提交