1. 06 9月, 2016 1 次提交
  2. 05 9月, 2016 1 次提交
    • D
      s390x/kvm: 2 byte software breakpoint support · b60fae32
      David Hildenbrand 提交于
      Diag 501 (4 bytes) was used until now for software breakpoints on s390.
      As instructions on s390 might be 2 bytes long, temporarily overwriting them
      with 4 bytes is evil and can result in very strange guest behaviour.
      
      We make use of invalid instruction 0x0000 as new sw breakpoint instruction.
      We have to enable interception of that instruction in KVM using a
      capability.
      
      If no software breakpoint has been inserted at the reported position, an
      operation exception has to be injected into the guest. Otherwise a
      breakpoint has been hit and the pc has to be rewound.
      
      If KVM doesn't yet support interception of instruction 0x0000 the
      existing mechanism exploiting diag 501 is used. To keep overhead low,
      interception of instruction 0x0000 will only be enabled if sw breakpoints
      are really used.
      Reviewed-by: NChristian Borntraeger <borntraeger@de.ibm.com>
      Signed-off-by: NDavid Hildenbrand <dahi@linux.vnet.ibm.com>
      Signed-off-by: NCornelia Huck <cornelia.huck@de.ibm.com>
      b60fae32
  3. 22 7月, 2016 1 次提交
    • P
      kvm-irqchip: i386: add hook for add/remove virq · 38d87493
      Peter Xu 提交于
      Adding two hooks to be notified when adding/removing msi routes. There
      are two kinds of MSI routes:
      
      - in kvm_irqchip_add_irq_route(): before assigning IRQFD. Used by
        vhost, vfio, etc.
      
      - in kvm_irqchip_send_msi(): when sending direct MSI message, if
        direct MSI not allowed, we will first create one MSI route entry
        in the kernel, then trigger it.
      
      This patch only hooks the first one (irqfd case). We do not need to
      take care for the 2nd one, since it's only used by QEMU userspace
      (kvm-apic) and the messages will always do in-time translation when
      triggered. While we need to note them down for the 1st one, so that we
      can notify the kernel when cache invalidation happens.
      
      Also, we do not hook IOAPIC msi routes (we have explicit notifier for
      IOAPIC to keep its cache updated). We only need to care about irqfd
      users.
      Signed-off-by: NPeter Xu <peterx@redhat.com>
      Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      38d87493
  4. 11 7月, 2016 1 次提交
  5. 17 6月, 2016 1 次提交
  6. 14 6月, 2016 1 次提交
  7. 19 5月, 2016 1 次提交
  8. 17 5月, 2016 1 次提交
  9. 01 3月, 2016 2 次提交
  10. 29 1月, 2016 1 次提交
  11. 22 1月, 2016 1 次提交
  12. 12 11月, 2015 1 次提交
  13. 21 10月, 2015 2 次提交
  14. 20 10月, 2015 2 次提交
  15. 19 10月, 2015 1 次提交
    • P
      kvm: Pass PCI device pointer to MSI routing functions · dc9f06ca
      Pavel Fedin 提交于
      In-kernel ITS emulation on ARM64 will require to supply requester IDs.
      These IDs can now be retrieved from the device pointer using new
      pci_requester_id() function.
      
      This patch adds pci_dev pointer to KVM GSI routing functions and makes
      callers passing it.
      
      x86 architecture does not use requester IDs, but hw/i386/kvm/pci-assign.c
      also made passing PCI device pointer instead of NULL for consistency with
      the rest of the code.
      Signed-off-by: NPavel Fedin <p.fedin@samsung.com>
      Message-Id: <ce081423ba2394a4efc30f30708fca07656bc500.1444916432.git.p.fedin@samsung.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      dc9f06ca
  16. 11 9月, 2015 1 次提交
  17. 08 9月, 2015 1 次提交
  18. 01 7月, 2015 1 次提交
    • J
      kvm: First step to push iothread lock out of inner run loop · 4b8523ee
      Jan Kiszka 提交于
      This opens the path to get rid of the iothread lock on vmexits in KVM
      mode. On x86, the in-kernel irqchips has to be used because we otherwise
      need to synchronize APIC and other per-cpu state accesses that could be
      changed concurrently.
      
      Regarding pre/post-run callbacks, s390x and ARM should be fine without
      specific locking as the callbacks are empty. MIPS and POWER require
      locking for the pre-run callback.
      
      For the handle_exit callback, it is non-empty in x86, POWER and s390.
      Some POWER cases could do without the locking, but it is left in
      place for now.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Message-Id: <1434646046-27150-7-git-send-email-pbonzini@redhat.com>
      4b8523ee
  19. 23 6月, 2015 2 次提交
  20. 11 6月, 2015 1 次提交
  21. 04 6月, 2015 1 次提交
  22. 02 6月, 2015 1 次提交
  23. 27 5月, 2015 4 次提交
  24. 08 5月, 2015 2 次提交
  25. 30 4月, 2015 4 次提交
  26. 16 3月, 2015 3 次提交
  27. 12 3月, 2015 1 次提交