public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Question about RISCV IOMMU irqbypass patch series
@ 2026-01-07 10:01 Xu Lu
  2026-01-07 17:51 ` Andrew Jones
  0 siblings, 1 reply; 3+ messages in thread
From: Xu Lu @ 2026-01-07 10:01 UTC (permalink / raw)
  To: Andrew Jones
  Cc: Jason Gunthorpe, Zong Li, Tomasz Jeznach, joro, Will Deacon,
	Robin Murphy, Anup Patel, atish.patra, Thomas Gleixner,
	alex.williamson, Paul Walmsley, Palmer Dabbelt, Alexandre Ghiti,
	iommu, kvm-riscv, kvm, linux-riscv, LKML

Hi Andrew,

Thanks for your brilliant job on the RISCV IOMMU irqbypass patch
series[1]. I have rebased it on v6.18 and successfully passed through
a nvme device to VM. But I still have some questions about it.

1. It seems "irqdomain->host_data->domain" can be NULL for blocking or
identity domain. So it's better to check whether it's NULL in
riscv_iommu_ir_irq_domain_alloc_irqs or
riscv_iommu_ir_irq_domain_free_irqs functions. Otherwise page fault
can happen.

2. It seems you are using the first stage iommu page table even for
gpa->spa, what if a VM needs an vIOMMU? Or did I miss something?

[1] https://lore.kernel.org/all/20250920203851.2205115-20-ajones@ventanamicro.com/

Best regards,
Xu Lu

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

end of thread, other threads:[~2026-01-08  2:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-07 10:01 Question about RISCV IOMMU irqbypass patch series Xu Lu
2026-01-07 17:51 ` Andrew Jones
2026-01-08  2:42   ` [External] " Xu Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox