History | View | Annotate | Download (116.1 kB)
vfio: Fix debug output for int128 values
Memory regions can easily be 2^64 byte long and therefore overflowfor just a bit but that is enough for int128_get64() to assert.
This takes care of debug printing of huge section sizes.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>...
vfio-pci: Implement PCI hot reset
Now that VFIO has a PCI hot reset interface, take advantage of it.There are two modes that we need to consider. The first is when onlyone device within the set of devices affected is actually assigned tothe guest. In this case the other devices are are just held by VFIO...
vfio-pci: Add support for MSI affinity
When MSI is accelerated through KVM the vectors are only programmedwhen the guest first enables MSI support. Subsequent writes to thevector address or data fields are ignored. Unfortunately that meanswe're ignore updates done to adjust SMP affinity of the vectors....
vfio-pci: Test device reset capabilities
Not all resets are created equal. PM reset is not very reliable,especially for GPUs, so we might want to opt for a bus reset if astandard reset will only do a D3hot->D0 transition. We can alsouse this to tell if the standard reset will do a bus reset (if...
vfio-pci: Lazy PCI option ROM loading
During vfio-pci initfn, the device is not always in a state where theoption ROM can be read. In the case of graphics cards, there's oftenno per function reset, which means we have host driver state affectingwhether the option ROM is usable. Ideally we want to move reading the...
vfio-pci: Cleanup error_reports
Remove carriage returns and tweak formatting for error_reports.
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Merge remote-tracking branch 'qemu-kvm/uq/master' into stable-1.5
aio / timers: Switch entire codebase to the new timer API
This is an autogenerated patch using scripts/switch-timer-api.
Switch the entire code base to using the new timer API.
Note this patch may introduce some line length issues.
Signed-off-by: Alex Bligh <alex@alex.org.uk>...
kvm: add KVM_IRQFD_FLAG_RESAMPLE support
Added an EventNotifier* parameter tokvm-all.c:kvm_irqchip_add_irqfd_notifier(), in order to give KVManother eventfd to be used as "resamplefd". See the documentationin the linux kernel sources in Documentation/virtual/kvm/api.txt...
devices: Associate devices to their logical category
The category will be used to sort the devices displayed inthe command line help.
Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com>Message-id: 1375107465-25767-4-git-send-email-marcel.a@redhat.com...
vfio: QEMU-AER: Qemu changes to support AER for VFIO-PCI devices
Add support for error containment when a VFIO device assigned to a KVMguest encounters an error. This is for PCIe devices/drivers that support AERfunctionality. When the host OS is notified of an error in a device either...
vfio-pci: VGA quirk update
Turns out all the suspicions for AMD devices were correct, everywherewe read a BAR address that the address matches the config space offset,there's full access to PCI config space. Attempt to generalize somehelpers to allow quirks to easily be added for mirrors and windows....
hw/m*: pass owner to memory_region_init* functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
vfio: pass device to vfio_mmap_bar and use it to set owner
Cc: Alex Williamson <alex.williamson@redhat.com>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
memory: add ref/unref calls
Add ref/unref calls at the following places:
- places where memory regions are stashed by a listener and used outside the BQL (including in Xen or KVM).
- memory_region_find callsites
- creation of aliases and containers (only the aliased/contained...
memory: add owner argument to initialization functions
memory: make section size a 128-bit integer
So far, the size of all regions passed to listeners could fit in 64 bits,because artificial regions (containers and aliases) are eliminated bythe memory core, leaving only device regions which have reasonable sizes...
vfio: abort if an emulated iommu is used
vfio doesn't support guest iommus yet, indicate it to the userby gently depositing a core on their disk.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>Signed-off-by: Avi Kivity <avi.kivity@gmail.com>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw: move VFIO and ivshmem to hw/misc/