Skip to contentSkip to conversation

xc_dom_alloc_segment() zero-filling its output

DISCUSSION Jan Beulich 1 participant 1 message Sep 20, 2021

lore
Share & tools
lore
#0 lore raw

Hello,

originally I was puzzled to find that libxenguest's setting up of struct hvm_start_info didn't have any explicit clearing of reserved fields. Turns out the memory gets zeroed right after allocation. Isn't this a waste of bandwidth particularly when considering the kernel, initrd, or P2M segments, which may be large and which are going to get filled with actual (non-zero) data anyway?

Thanks, Jan