I am facing an issue. I am doing a xc_domain_memory_populate_physmap inside the following function in xc_hvm_build.c (xen - 3.4.1)
" static void build_hvm_info(int xc_handle, uint32_t dom, void *hvm_info_page, uint64_t mem_size, uint64_t e820rc)
{
.
.
.
if (xc_domain_memory_populate_physmap(xc_handle, dom,
(e820rc_size >> XC_PAGE_SHIFT), /*nr_extents */
0, /*extent_order */
XENMEMF_raid_cache, /* mem_flags */
&page_array[0x00]))
.
.
.
"
I need to know how many hypercalls will it generate ?
Or How many times will it hit the following Switch Case
"
long do_memory_op(unsigned long cmd, XEN_GUEST_HANDLE(void) arg)
{
.
.
case XENMEM_populate_physmap:
.
.
}