summaryrefslogtreecommitdiffstats
path: root/hw/vfio/pci-quirks.c
Commit message (Expand)AuthorAgeFilesLines
* meson: infrastructure for building emulatorsPaolo Bonzini2020-08-211-1/+1
* error: Eliminate error_propagate() with Coccinelle, part 1Markus Armbruster2020-07-101-3/+1Star
* qapi: Use returned bool to check for failure, Coccinelle partMarkus Armbruster2020-07-101-2/+1Star
* hw/vfio/pci-quirks: Fix broken legacy IGD passthroughThomas Huth2020-06-111-0/+1
* hw/vfio: Add VMD Passthrough QuirkJon Derrick2020-06-111-12/+72
* vfio/nvlink: Remove exec permission to avoid SELinux AVCsLeonardo Bras2020-05-271-2/+2
* qom: Drop parameter @errp of object_property_add() & friendsMarkus Armbruster2020-05-151-3/+3
* hw/vfio: Move the IGD quirk code to a separate fileThomas Huth2020-02-061-611/+3Star
* memory: Access MemoryRegion with endiannessTony Nguyen2019-09-031-2/+3
* hw/vfio: Access MemoryRegion with MemOpTony Nguyen2019-09-031-2/+4
* Include hw/qdev-properties.h lessMarkus Armbruster2019-08-161-0/+1
* Include hw/hw.h exactly where neededMarkus Armbruster2019-08-161-0/+1
* Include qemu/module.h where needed, drop it from qemu-common.hMarkus Armbruster2019-06-121-0/+1
* spapr: Support NVIDIA V100 GPU with NVLink2Alexey Kardashevskiy2019-04-261-0/+131
* pci: Move NVIDIA vendor id to the rest of idsAlexey Kardashevskiy2019-02-221-2/+0Star
* vfio: Clean up error reporting after previous commitMarkus Armbruster2018-10-191-2/+2
* hw/vfio: Use the IEC binary prefix definitionsPhilippe Mathieu-Daudé2018-07-021-4/+5
* vfio/quirks: Enable ioeventfd quirks to be handled by vfio directlyAlex Williamson2018-06-051-7/+46
* vfio/quirks: ioeventfd quirk accelerationAlex Williamson2018-06-051-2/+164
* vfio/quirks: Add quirk reset callbackAlex Williamson2018-06-051-0/+15
* vfio/quirks: Add common quirk alloc helperAlex Williamson2018-06-051-27/+21Star
* vfio/pci: Add option to disable GeForce quirksAlex Williamson2018-02-061-3/+6
* pci: Add INTERFACE_CONVENTIONAL_PCI_DEVICE to Conventional PCI devicesEduardo Habkost2017-10-151-0/+4
* vfio/pci: Add NVIDIA GPUDirect Cliques supportAlex Williamson2017-10-031-0/+110
* vfio/pci: Add virtual capabilities quirk infrastructureAlex Williamson2017-10-031-0/+4
* vfio/pci-quirks: Exclude non-ioport BAR from NVIDIA quirkAlex Williamson2017-04-071-1/+1
* Revert "vfio/pci-quirks.c: Disable stolen memory for igd VFIO"Xiong Zhang2017-03-311-38/+27Star
* vfio/pci-quirks.c: Disable stolen memory for igd VFIOXiongZhang2017-02-221-27/+38
* hw/vfio/pci-quirks: Set category of the "vfio-pci-igd-lpc-bridge" deviceThomas Huth2017-02-101-0/+1
* vfio-pci: Fix GTT wrap-around for Skylake+ IGDAlex Williamson2017-02-101-1/+4
* hw: Fix typos found by codespellStefan Weil2017-01-241-1/+1
* vfio/pci: Fix vfio_rtl8168_quirk_data_read address offsetThorsten Kohfeldt2016-10-171-1/+1
* vfio/pci: Pass an error object to vfio_pci_igd_opregion_initEric Auger2016-10-171-5/+5
* vfio/pci: Pass an error object to vfio_populate_vgaEric Auger2016-10-171-1/+3
* vfio/pci: Fix VGA quirksAlex Williamson2016-06-301-4/+4
* vfio/pci: Add a separate option for IGD OpRegion supportAlex Williamson2016-05-261-2/+2
* vfio/pci: Intel graphics legacy mode assignmentAlex Williamson2016-05-261-1/+642
* vfio/pci: Convert all MemoryRegion to dynamic alloc and consistent functionsAlex Williamson2016-03-111-19/+19
* vfio: Generalize region supportAlex Williamson2016-03-111-12/+12
* hw/vfio: Clean up includesPeter Maydell2016-01-291-0/+1
* vfio/pci-quirks: Only quirk to size of PCI config spaceAlex Williamson2016-01-191-3/+3
* vfio: Use g_new() & friends where that makes obvious senseMarkus Armbruster2015-11-101-8/+8
* vfio/pci: Remove use of g_malloc0_n() from quirksAlex Williamson2015-09-241-8/+8
* vfio/pci: Add emulated PCI IDsAlex Williamson2015-09-231-2/+0Star
* vfio/pci: Cache vendor and device IDAlex Williamson2015-09-231-14/+4Star
* vfio/pci: Move AMD device specific reset to quirksAlex Williamson2015-09-231-0/+168
* vfio/pci: Remove old config window and mirror quirksAlex Williamson2015-09-231-155/+0Star
* vfio/pci: Config mirror quirkAlex Williamson2015-09-231-106/+124
* vfio/pci: Config window quirksAlex Williamson2015-09-231-88/+270
* vfio/pci: Rework RTL8168 quirkAlex Williamson2015-09-231-76/+101
/td>Markus Armbruster2016-01-131-2/+2 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We can have at most one ISA bus. If you try to create another one, isa_bus_new() complains to stderr and returns null. isa_bus_new() is called in two contexts, machine's init() and device's realize() methods. Since complaining to stderr is not proper in the latter context, convert isa_bus_new() to Error. Machine's init(): * mips_jazz_init(), called from the init() methods of machines "magnum" and "pica" * mips_r4k_init(), the init() method of machine "mips" * pc_init1() called from the init() methods of non-q35 PC machines * typhoon_init(), called from clipper_init(), the init() method of machine "clipper" These callers always create the first ISA bus, hence isa_bus_new() can't fail. Simply pass &error_abort. Device's realize(): * i82378_realize(), of PCI device "i82378" * ich9_lpc_realize(), of PCI device "ICH9-LPC" * pci_ebus_realize(), of PCI device "ebus" * piix3_realize(), of PCI device "pci-piix3", abstract parent of "PIIX3" and "PIIX3-xen" * piix4_realize(), of PCI device "PIIX4" * vt82c686b_realize(), of PCI device "VT82C686B" Propagate the error. Note that these devices are typically created only by machine init() methods with qdev_init_nofail() or similar. If we screwed up and created an ISA bus before that call, we now give up right away. Before, we'd hobble on, and typically die in isa_bus_irqs(). Similar if someone finds a way to hot-plug one of these critters. Cc: Richard Henderson <rth@twiddle.net> Cc: "Michael S. Tsirkin" <mst@redhat.com> Cc: "Hervé Poussineau" <hpoussin@reactos.org> Cc: Aurelien Jarno <aurelien@aurel32.net> Cc: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Signed-off-by: Markus Armbruster <armbru@pond.sub.org> Reviewed-by: Marcel Apfelbaum <marcel@redhat.com> Reviewed-by: Hervé Poussineau <hpoussin@reactos.org> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Message-Id: <1450370121-5768-11-git-send-email-armbru@redhat.com> * virtio-vga: add '-vga virtio' supportGerd Hoffmann2015-06-121-0/+3 | | | | | | | | | | | Some convinience fluff: Add support for '-vga virtio', also add virtio-vga to the list of vga cards so '-device virtio-vga' will turn off the default vga. Written by Dave Airlie and Gerd Hoffmann. Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> * Move parallel_hds_isa_init to hw/isa/isa-bus.cMiroslav Rezanina2015-06-051-0/+26 | | | | | | | | | | | | | | | Disabling CONFIG_PARALLEL cause removing parallel_hds_isa_init defined in parallel.c. This function is called during initialization of some boards so disabling CONFIG_PARALLEL cause build failure. This patch moves parallel_hds_isa_init to hw/isa/isa-bus.c so it is included in case of disabled CONFIG_PARALLEL. Build is successful but qemu will abort with "Unknown device" error when function is called. Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com> Message-Id: <1431509970-32154-1-git-send-email-mrezanin@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> * isa: remove isa_mem_base variableHervé Poussineau2015-02-131-1/+0Star | | | | | | | Now that isa_mem_base variable is always 0, we can remove its usage. Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> Signed-off-by: Leon Alrae <leon.alrae@imgtec.com> * isa: add memory space parameter to isa_bus_newHervé Poussineau2015-02-131-3/+8 | | | | | | | | | | Currently, keep current behaviour by always using get_system_memory(). Also use QOM casts when possible. Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Leon Alrae <leon.alrae@imgtec.com> * isa-bus: don't use 'Yoda conditions'Gonglei2014-08-151-1/+1 | | | | | | | | imitate nearby code about using '!value' or 'value == NULL' Signed-off-by: Gonglei <arei.gonglei@huawei.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> * PortioList: Store PortioList in device stateKirill Batuzov2014-05-051-3/+8 | | | | | | | | | | | | | | | | | | | | PortioList is an abstraction used for construction of MemoryRegionPortioList from MemoryRegionPortio. It can be used later to unmap created memory regions. It also requires proper cleanup because some of the memory inside is allocated dynamically. By moving PortioList ot device state we make it possible to cleanup later and avoid leaking memory. This change spans several target platforms. The following testcases cover all changed lines: qemu-system-ppc -M prep qemu-system-i386 -vga qxl qemu-system-i386 -M isapc -soundhw adlib -device ib700,id=watchdog0,bus=isa.0 Signed-off-by: Kirill Batuzov <batuzovk@ispras.ru> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de> * sysbus: Set cannot_instantiate_with_device_add_yetMarkus Armbruster2013-12-23