Re: [PATCH v2 4/5] xen/arm: Implement standard PV time interface as per ARM DEN 0057A

2025-07-07 Thread Jan Beulich
On 05.07.2025 16:27, Koichiro Den wrote: > --- a/xen/include/xen/macros.h > +++ b/xen/include/xen/macros.h > @@ -5,6 +5,7 @@ > #define ROUNDDOWN(x, a) ((x) & ~((a) - 1)) > > #define IS_ALIGNED(val, align) (!((val) & ((align) - 1))) > +#define IS_POWER_OF_TWO(val) ((val) && !((val) & ((val) -

[PATCH v2 4/5] xen/arm: Implement standard PV time interface as per ARM DEN 0057A

2025-07-05 Thread Koichiro Den
The VCPUOP_register_runstate_memory_area hypercall is still actively used, e.g., in the Linux arm64 codebase. When KPTI is enabled, the area was not registered from the beginning due to the VA not always being valid. In such cases, Linux falls back to using the standard PV time interface (ARM DEN 0