Closed jhauser-us closed 2 years ago
Requiring an IOMMU to return 0 as the read value imposes a significant burden on the IOMMU construction to have a read data return path to the I/O bridge and for the I/O bridge to have a completion buffer to hold data that can be filled by either the IOMMU returned data or data returned from the memory subsystem.
I'm willing to change the text to say that the IOMMU should preferably return zero (first choice), else it should abort the read (second choice).
But I think you're being insufficiently creative in thinking about possible implementations. The response message that returns zero for the read doesn't have to be generated by the IOMMU itself, or even by the I/O bridge. The IOMMU could signal back to the I/O bridge that zero should be returned---which takes at most one extra wire between the two components---and the I/O bridge might respond to that by, for example, redirecting the original read request to a known page of read-only zeros in the machine's address space, if that's the easiest way to handle it. Given that the transaction is known to be a read, the physical address of any IMSIC interrupt file will do.
Thanks. Having those two options suffices.
... Not just naturally aligned 32-bit writes.
Signed-off-by: John Hauser 31252952+jhauser-us@users.noreply.github.com