Called during Kernel setup.
The single output parameter, logical partition id, is later used as a parameter to call other Hypervisor functions.
result = lv1_get_logical_partition_id(/*OUT*/ &lp_id );
| Outputs | |
|---|---|
| Register | Description |
| R3 | result: 0 = LV1_SUCCESS |
| R4 | lp_id - logical partition id |
Notes:
When called from kernel module init function, lp_id always seems to be 2.
The “read_node” function contained in “repository.c” is passed a parameter, lpar_id (logical partition id). If lpar_id is equal to PS3_LPAR_ID_CURRENT (0) then lv1_get_logical_partition_id is called to retrieve the current logical partition id. Any other value for lpar_id is passed directly to the following HV calls, though the only other value in use appears to be PS3_LPAR_ID_PME (1)