qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* QEMU PCI subsystem: what code is responsible for making accesses to non-mapped addresses read as -1?
@ 2021-03-19 12:35 Peter Maydell
  2021-03-19 14:14 ` Philippe Mathieu-Daudé
  2021-03-20 18:58 ` Michael S. Tsirkin
  0 siblings, 2 replies; 6+ messages in thread
From: Peter Maydell @ 2021-03-19 12:35 UTC (permalink / raw)
  To: QEMU Developers, Michael S. Tsirkin, Marcel Apfelbaum

I'm looking at a bug reported against the QEMU arm virt board's pci-gpex
PCI controller: https://bugs.launchpad.net/qemu/+bug/1918917
where an attempt to write to an address within the PCI IO window
where the guest hasn't mapped a BAR causes a CPU exception rather than
(what I believe is) the PCI-required behaviour of writes-ignored, reads
return -1.

What in the QEMU PCI code is responsible for giving the PCI-spec
behaviour for accesses to the PCI IO and memory windows where there
is no BAR? I was expecting the generic PCI code to map a background
memory region over the whole window to do this, but it looks like it
doesn't...

thanks
-- PMM


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-03-20 21:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-19 12:35 QEMU PCI subsystem: what code is responsible for making accesses to non-mapped addresses read as -1? Peter Maydell
2021-03-19 14:14 ` Philippe Mathieu-Daudé
2021-03-19 21:13   ` Laszlo Ersek
2021-03-20 18:58 ` Michael S. Tsirkin
2021-03-20 20:40   ` Peter Maydell
2021-03-20 21:50     ` Michael S. Tsirkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).