]> git.ipfire.org Git - thirdparty/qemu.git/commit
ppc/spapr: init lrdr-capapcity phys with ram size if maxmem not provided
authorHarsh Prateek Bora <harshpb@linux.ibm.com>
Tue, 6 May 2025 04:29:03 +0000 (00:29 -0400)
committerHarsh Prateek Bora <harshpb@linux.ibm.com>
Sun, 28 Sep 2025 18:15:28 +0000 (23:45 +0530)
commit6285eebd3a5fea018eb51d696b51079f44dd1eb3
tree648925c2aeebd9dbffb2ac959b37260c9a34fc07
parentf5738aedc21790bd07dbead6b6272a605d5c1138
ppc/spapr: init lrdr-capapcity phys with ram size if maxmem not provided

lrdr-capacity contains phys field which communicates the maximum address
in bytes and therefore, the most memory that can be allocated to this
partition. This is usually populated when maxmem is provided alongwith
memory size on qemu command line. However since maxmem is an optional
param, this leads to bits being set to 0 in absence of maxmem param.
Fix this by initializing the respective bits as per total mem size in
such case.

Reported-by: Gaurav Batra <gbatra@us.ibm.com>
Tested-by: David Christensen <drc@linux.ibm.com>
Signed-off-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Reviewed-by: Shivaprasad G Bhat <sbhat@linux.ibm.com>
Link: https://lore.kernel.org/r/20250506042903.76250-1-harshpb@linux.ibm.com
Message-ID: <20250506042903.76250-1-harshpb@linux.ibm.com>
hw/ppc/spapr.c