|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 1/7] introduce time managment in xtf
On 04/07/2018 10:39 PM, Andrew Cooper wrot>>>>> However, both of your patches have (different) barrier issues, and different (mis)uses of the shared memory clocks, which will need to be addressed. One general comment for the full series is to not bother trying to make time 32bits in a 32bit build. XTF is an entirely self-contained binary, and I don't much care for legacy behaviours for legacy sake.Alright, so I took a look at all of this. So, if I understood it well, you want me to drop all the `uint32_t` part to only have 64 bits. But are you sure that it works the same on 32bits architecture ?At the end of the day, all you are passing is units of nanoseconds of larger. The parameter passing won't be identical between 32 or 64bit builds, but everything else will be fine.Also, I have another question. I don't see any place where I have memory barrier issues, but I am certainely missing something. Can you elaborate on this one ?Your code does: Thank you very much for replying ! I completely missed this function, I do really apologize about it ! Effectively, there is serious issues here. As far as I can remember, I inspired myself by another OS code to write this function (as I didn't know really much how the time thing was working in Xen). Thanks for writing this piece of code, I think I will use it and add some ACCESS_ONCE on my reads of the different variables in the shared memory (version, system_time etc..). Anyway, I already got rid of the 32 bits part, so that even 32 bits architectures are using 64 bits integer (by making sure to use the `divmod64` function 🙂) for the division and modulos. I will change this part of the code this night or maybe tomorrow and send you another version of the patch ! -- Paul _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |