|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH 01/24] XSM: reduce redundancy in hook machinery
On 7/30/26 11:18 AM, Jan Beulich wrote: On 30.07.2026 17:05, Daniel P. Smith wrote:On 7/28/26 9:13 AM, Jan Beulich wrote:Hooks not taking xsm_default_t as first argument could of course be adjusted to take one, at which point they could be covered here as well. Question is why there is this difference in the first place.I have a theory but I am not confident to write it down. I can see if I can confirm with DDG if you really care that much to know the why. Personally having a consistent hook interface convention would provide a simpler pattern for people to follow if they are having to introdcue a new hook.Well, I don't really need to know the reason. If you agree that making things uniform is a good move, I can simply stick a few more patches at the end of this series. Correct me if I am wrong, but we would be introducing an unused parameter in exchange for uniform interfaces that can be generated with machinery reducing hook maintenance overhead. IMHO I feel from a security standpoint this would be a win. Would you disagree?
I agree, my preference is [] for array parameters. But this is a readability vs less fragile machinery. As much as I like to know that the parameter is meant to be an array vs a instance reference, I would prefer more reliability in the machinery. Since you are doing the work, I leave to you to decide level of effort vs the most resilient implementation of the machinery.
I believe in 19 pci_config_permission() 5th parameter gets changed from 1(uint8_t) to true (bool), while type4 is uint16_t. Thanks much for spotting. Your welcome. I would just note there is quite a bit of churn in this patch, most of it is mechanical, but makes it easy for these to slip through.Right. Fortunately this needs doing only once. Yep, just makes review a little more fun. After fixing this typo, Acked-by: Daniel P. Smith <dpsmith@xxxxxxxxxxxxxxxxxxxx>Thanks. Jan
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |