|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v2 33/39] xen/riscv: dump old interrupt file to memory
On 9/23/26 5:15 PM, Baptiste Le Duc wrote: At the old interrupt file, dump to memory all the eip and eie arrays).Typo `)` Will drop `)`. After this step is done, the old interrupt file is no longer in use so old intrrupt file VGEIN could be released. Restoring of old interrupt file state will be done in follow-up patch.There are cases where it is needed to specify on which cpu it is necessary to VGEIN should be released so update vgein_release() toThe sentence miss a verb, here is a proposal: ``` There are cases where the cpu on which the VGEIN is released needs to be specified, so update vgein_release() to deal with that. ``` I think it could be dropped at all as vgein_release() stub is just introduced here and not updated. Moreover, could you explain me the cases you are talking about? It's not clear by reading the commit message in the first place. For example, during migration of vCPU, vCPU->processor points to new CPU where it will be run but we still have to free VGEIN on the prev. ->processor. deal with that. It is just convenient way to temporary store h/w interrupt file. Also it could be used not only for ... Moreover, mrif, as described in aia spec (8.3 Memory-resident interrupt files), seems to be only usable with IOMMU that Xen doesn't support. ... IOMMU but also to support more guest interrupts file implemented by IMSIC (basically what I am calling as software interrupt file). Without memory-resident interrupt files, the number of virtual RISC-V harts that can directly receive MSIs from devices is limited by the total number of guest interrupt files implemented by all IMSICs in the system, because all MSIs to RISC-V harts must go through IMSICs. For a single RISC-V hart, the number of guest interrupt files is the GEILEN parameter defined by the Privileged Architecture, which can be at most 31 for RV32 and 63 for RV64. If you want to have something in memory that could store some interrupt file info, we should take another name to not be confusing. It seems like it is okay to use memory residential interrupt file (mrif) here based on KVM's code who are using mrif for the same purpose I described above. In short, MRIF is a joint virtualization technology shared between the IOMMU and the hypervisor. The IOMMU uses the MRIF as a memory target to land incoming hardware MSIs, while the hypervisor manages these MRIFs in RAM as software data structures to support an effectively unlimited number of vCPUs that don't currently hold a physical IMSIC guest file slot. ~ Oleksii
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |