|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v3] EFI/runtime: switch to xv[mz]alloc_array()
On 7/23/25 09:39, Jan Beulich wrote: Use the more "modern" form, thus doing away with effectively open-coding xmalloc_array() at the same time. While there is a difference in generated code, as xmalloc_bytes() forces SMP_CACHE_BYTES alignment, if code really cared about such higher than default alignment, it should request so explicitly. While I don't object to the change itself, I think this description is a bit over simplification of the change. If the allocation is under PAGE_SIZE, then they are equivalent, but if it is over the page size there are a few more differences than just cache alignment. It completely changes the underlying allocator. I personally also find it a bit of a stretch to call xmalloc_bytes(size) an open coded version of xmalloc_array(char, size). Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> --- v3: Use xv[mz]alloc_array(). --- a/xen/common/efi/runtime.c +++ b/xen/common/efi/runtime.c @@ -6,6 +6,7 @@ #include <xen/irq.h> #include <xen/sections.h> #include <xen/time.h> +#include <xen/xvmalloc.h>DEFINE_XEN_GUEST_HANDLE(CHAR16); @@ -500,23 +501,23 @@ int efi_runtime_call(struct xenpf_efi_ru With a stronger description of the change, Acked-by: Daniel P. Smith <dpsmith@xxxxxxxxxxxxxxxxxxxx>
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |