Re: [PATCH] virtio: kconfig: memory devices are PCI only

2024-09-06 Thread David Hildenbrand
On 06.09.24 10:18, Paolo Bonzini wrote: On Fri, Sep 6, 2024 at 9:40 AM David Hildenbrand wrote: On 06.09.24 09:37, Paolo Bonzini wrote: Virtio memory devices rely on PCI BARs to expose the contents of memory. Because of this they cannot be used with virtio-mmio or virtio-ccw. In fact Guess

Re: [PATCH] virtio: kconfig: memory devices are PCI only

2024-09-06 Thread Paolo Bonzini
On Fri, Sep 6, 2024 at 9:40 AM David Hildenbrand wrote: > On 06.09.24 09:37, Paolo Bonzini wrote: > > Virtio memory devices rely on PCI BARs to expose the contents of memory. > > Because of this they cannot be used with virtio-mmio or virtio-ccw. In fact > > Guess what I am working on at this ver

Re: [PATCH] virtio: kconfig: memory devices are PCI only

2024-09-06 Thread David Hildenbrand
Cc: David Hildenbrand Reported-by: Michael Tokarev Signed-off-by: Paolo Bonzini --- hw/virtio/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/virtio/Kconfig b/hw/virtio/Kconfig index aa63ff7fd41..7c554d230d8 100644 --- a/hw/virtio/Kconfig +++ b/hw/virtio

Re: [PATCH] virtio: kconfig: memory devices are PCI only

2024-09-06 Thread David Hildenbrand
On 06.09.24 09:37, Paolo Bonzini wrote: Virtio memory devices rely on PCI BARs to expose the contents of memory. Because of this they cannot be used with virtio-mmio or virtio-ccw. In fact Guess what I am working on at this very the moment ;) the code that is common to virtio-mem and virtio-

[PATCH] virtio: kconfig: memory devices are PCI only

2024-09-06 Thread Paolo Bonzini
Virtio memory devices rely on PCI BARs to expose the contents of memory. Because of this they cannot be used with virtio-mmio or virtio-ccw. In fact the code that is common to virtio-mem and virtio-pmem, which is in hw/virtio/virtio-md-pci.c, is only included if CONFIG_VIRTIO_PCI is set. Reproduc