initial ballooning amount on HVM+PoD
Quoted 16 lines · ----- [email protected] wrote:
Quoted 2 lines
Quoted 2 lines
I previously had a patch to use
memblock_phys_mem_size(), but whenI saw
Quoted 1 line
Quoted 1 line
Boris switch to
get_num_physpages()I thought that would be OK,but I
Quoted 1 line
Quoted 1 line
didn't look into it very hard. Without checking I suspect they
return
Quoted 1 line
Quoted 1 line
pretty much the same think and so
memblock_phys_mem_sizewill havethe
Quoted 1 line
Quoted 1 line
same issue you observed (which I confess I haven't yet gone back
and
Quoted 4 lines
Quoted 1 line
understood).
If there's no reserved memory in that range, I guess ARM might be fine as is.
Quoted 7 lines
Hrm I'm not sure what a DTB /memreserve/ statement turns into wrt the memblock stuff and whether it is included in
phys_mem_size-- I think that stuff is still WIP upstream (i.e. the kernel currently ignores such
things, IIRC there was a fix but it was broken and reverted to try again
and then I've lost track).
FWIW, when I was looking at this code I also first thought of using memblock but IIRC I wasn't convinced that we always have CONFIG_HAVE_MEMBLOCK set so I ended up with physmem_size().
-boris
Quoted 27 lines · Boris Ostrovsky
Quoted 16 lines · ----- [email protected] wrote:
Quoted 2 lines
Quoted 2 lines
I previously had a patch to use
memblock_phys_mem_size(), but whenI saw
Quoted 1 line
Quoted 1 line
Boris switch to
get_num_physpages()I thought that would be OK,but I
Quoted 1 line
Quoted 1 line
didn't look into it very hard. Without checking I suspect they
return
Quoted 1 line
Quoted 1 line
pretty much the same think and so
memblock_phys_mem_sizewill havethe
Quoted 1 line
Quoted 1 line
same issue you observed (which I confess I haven't yet gone back
and
Quoted 4 lines
Quoted 1 line
understood).
If there's no reserved memory in that range, I guess ARM might be fine as is.
Quoted 7 lines
Hrm I'm not sure what a DTB /memreserve/ statement turns into wrt the memblock stuff and whether it is included in
phys_mem_size-- I think that stuff is still WIP upstream (i.e. the kernel currently ignores such
things, IIRC there was a fix but it was broken and reverted to try again
and then I've lost track).
Quoted 3 lines
FWIW, when I was looking at this code I also first thought of using memblock but IIRC I wasn't convinced that we always have
CONFIG_HAVE_MEMBLOCKset so I ended up withphysmem_size().
FWIW it's select'd by CONFIG_X86 and CONFIG_ARM and overall by about half of all architectures. So I suppose it depends where your threshold for caring about future architecture ports lies...
Ian.