|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v3 08/23] xen/arm: vsmmuv3: Add support for registers emulation
Hi Milan, On 09/06/2026 00:06, Milan Djokic wrote: +#define DWORDS_BYTES 8 +#define ARM_SMMU_IIDR_VAL 0x12I am not sure which implementer this is referring to. But how do you plan to handle errata? Are we sure they can always be handled by Xen?This is currently a dummy value used to avoid triggering guest driver errata/quirk paths. I will replace it with a more meaningful value. Using the Arm implementer ID with the remaining fields cleared should be sufficient.I am not sure to understand why would that value be unused. Do you have more details?I think that the IIDR is always used by the guest driver during initialization to identify the implementer/product revision and enable any required workarounds.If that is the usage you are referring to, then using a generic IIDR value would prevent the guest driver from activating any implementer- specific workaround paths.My expectation is that errata handling should remain in Xen rather than the guest.I am not fully convinced you will be able to apply all the errata in the hypervisor. At least with close to no cost.Yes, this is potentially problematic. However, at the moment I am not sure what the alternative would be, as I think that guest-side errata handling could be applied incorrectly due to the emulation layer. I think the risk is limited. But we could always check whether Xen is running in the errata handler. Anyway, I guess we could leave this for now. But this would want to a be a TODO as I think we want to address it before the stage-1 SMMU is (security) supported. [...]
Wouldn't this allow 32-bit format? Even if we decide to disallow it what would prevent the guest to use it (we can't rely on the guest to follow the IDR)? Are we preventing configure the stage-1 SMMU for 32-bit domain? -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |