On Mon, Nov 09, 2026 at 11:47:27AM +0800, Tao Tang wrote: > > > > IIRC, we found that in the tf-rmm branch supporting device > > > > assignment. > > > > > > > > While it does not hurt, that's why I never sent patches before > > > > because > > > > that's indeed a custom thing, that works for a custom software stack > > > > that was (is?) not yet finalized. > > > > > > > > That said, it should not hurt to add it, since it's just an extra > > > > capability. > > > > > > > > @Jim: Feel free to complete my answer with links to the code and a > > > > spec, > > > > if there is one to share now. I'm sure Mathieu Poirier has all this > > > > info > > > > also. > > > > > > > > > Michael, Tao, what are your view on this? > I agree with Philippe that we should avoid changing the guest-visible > behaviour of the existing ICH9 model. > > Regarding the NVMe limitation Pierrick mentioned, I found a related > discussion in the original Arm CCA Device Assignment RFC, where Arto pointed > out that skipping an entire BAR containing MSI-X Table/PBA could also skip > other MMIO regions in the same BAR. [1] > > More recently, Ankit posted a PCI/TSM patch that parses individual MMIO > ranges from the TDISP Interface Report rather than treating an entire BAR as > a single region.[2] > > I'm not entirely sure whether the MSI-X/BAR layout issue discussed in the > first thread is exactly the limitation Pierrick encountered, or whether the > recent PCI/TSM patchset fully addresses it. The changes look relevant, > particularly the handling of individual MMIO ranges within the same BAR, but > I may have missed some related changes in the CCA software stack. I think > some further testing with NVMe and the current software stack would help > clarify this. > > Given that QEMU NVMe already supports SPDM over DOE, if NVMe works for the > complete device assignment flow, reusing it might be simpler than > introducing another storage device model. Otherwise, I would favour a > separate PCIe AHCI model as Philippe implemented. > > [1] > https://lore.kernel.org/all/[email protected]/ > > [2] https://lore.kernel.org/all/[email protected]/
Yes, it's fairly obvious now that we shouldn't change the existing ICH9 model. We could potentially subclass the ICH9 model and create a new device, however that device would not be modelling any real hardware and I don't know what QEMU's appetite for more test devices would be. I think for the time being we can keep our testing device as a local change; there are plenty of other changes to be made for RME-DA which do directly correspond to a real spec. Thanks again for the reviews and feedback. Jim
