[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PULL 15/54] build: convert pci.mak to Kconfig
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PULL 15/54] build: convert pci.mak to Kconfig |
Date: |
Thu, 14 Mar 2019 18:34:19 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 |
On 14/03/19 14:03, David Abdurachmanov wrote:
> Would it be enough to modify ./default-configs/riscv32-softmmu.mak by
> adding:
>
> CONFIG_PCIE_PORT=n
The missing dependency is for any board that doesn't support MSI, not
just RISC-V.
Note that technically what we do with msi_nonbroken makes no sense from
the PCI point of view. An "MSI" is just a memory write so there is no
such thing as a device that doesn't work because the board doesn't
support MSI; it should be up to the OS not to configure MSI unless it
knows the interrupt controller can be set up as a destination for MSIs.
The driver in the OS then can choose to use level-triggered interrupts
(INTX) instead, or it can refuse to load. At least, this is how QEMU
*should* work.
However, we started doing this msi_nonbroken thing, and therefore, since
we can model it correctly with Kconfig and obtain the same results as
pre-Kconfig, it's a better way to do it.
Paolo
- [Qemu-devel] [PULL 11/54] kconfig: introduce CONFIG_TEST_DEVICES, (continued)
- [Qemu-devel] [PULL 11/54] kconfig: introduce CONFIG_TEST_DEVICES, Paolo Bonzini, 2019/03/04
- [Qemu-devel] [PULL 13/54] hw/pci/Makefile.objs: make pcie configurable, Paolo Bonzini, 2019/03/04
- [Qemu-devel] [PULL 08/54] kconfig: introduce kconfig files, Paolo Bonzini, 2019/03/04
- [Qemu-devel] [PULL 16/54] build: convert sound.mak to Kconfig, Paolo Bonzini, 2019/03/04
- [Qemu-devel] [PULL 17/54] scsi: express dependencies with Kconfig, Paolo Bonzini, 2019/03/04
- [Qemu-devel] [PULL 15/54] build: convert pci.mak to Kconfig, Paolo Bonzini, 2019/03/04
- Re: [Qemu-devel] [PULL 15/54] build: convert pci.mak to Kconfig, Paolo Bonzini, 2019/03/14
[Qemu-devel] [PULL 18/54] build: convert usb.mak to Kconfig, Paolo Bonzini, 2019/03/04
[Qemu-devel] [PULL 19/54] i386: express dependencies with Kconfig, Paolo Bonzini, 2019/03/04
[Qemu-devel] [PULL 21/54] ptimer: express dependencies with Kconfig, Paolo Bonzini, 2019/03/04
[Qemu-devel] [PULL 20/54] i2c: express dependencies with Kconfig, Paolo Bonzini, 2019/03/04
[Qemu-devel] [PULL 23/54] hyperv: express dependencies with kconfig, Paolo Bonzini, 2019/03/04
[Qemu-devel] [PULL 24/54] vfio: express vfio dependencies with Kconfig, Paolo Bonzini, 2019/03/04
[Qemu-devel] [PULL 22/54] display: express dependencies with kconfig, Paolo Bonzini, 2019/03/04
[Qemu-devel] [PULL 25/54] virtio: express virtio dependencies with Kconfig, Paolo Bonzini, 2019/03/04