HV Syscalls: Difference between revisions
Jump to navigation
Jump to search
Line 917: | Line 917: | ||
|- | |- | ||
! Function !! Notes !! 3.55 offset !! 3.41 offset !! 3.15 offset !! 3.10 offset !! 3.01 offset !! 2.76 offset | ! Function !! Notes !! 3.55 offset !! 3.41 offset !! 3.15 offset !! 3.10 offset !! 3.01 offset !! 2.76 offset | ||
|- | |||
| HV Syscall Table || Offset oh HV Syscall Table from base HV addr. e.g. if you map HV to HV_LV2_BASE_ADDR the Table would be at HV_LV2_BASE_ADDR+0x0036588. || 0x0036588 || || || || || | |||
|- | |- | ||
| set_lv1_hvcall_table || This function sets pointer to HV Call Table and the size of HV Call Table in HSPRG context of a LPAR. || 0x002C2B4C || 0x002C02B4 || 0x002C1F04 || || || | | set_lv1_hvcall_table || This function sets pointer to HV Call Table and the size of HV Call Table in HSPRG context of a LPAR. || 0x002C2B4C || 0x002C02B4 || 0x002C1F04 || || || |
Revision as of 15:50, 26 November 2011
LV1/hvcall index
This page is used as an indexpage of the hypercalls listed @ HV Syscall Reference
HV Syscalls
Unofficial Hypercalls added
Number | Function - Added by | Notes |
---|---|---|
16 | Peek - graf | |
20 | Poke - graf |
HV Calls Table Offset
(preliminary table, please help to fill in/expand)
- The address of HV table is stored at -0x6FC8(HSPRG0).
- The address of HV table size is stored at -0x6FD0(HSPRG0).
Function | Notes | 3.55 offset | 3.41 offset | 3.15 offset | 3.10 offset | 3.01 offset | 2.76 offset |
---|---|---|---|---|---|---|---|
HV Syscall Table | Offset oh HV Syscall Table from base HV addr. e.g. if you map HV to HV_LV2_BASE_ADDR the Table would be at HV_LV2_BASE_ADDR+0x0036588. | 0x0036588 | |||||
set_lv1_hvcall_table | This function sets pointer to HV Call Table and the size of HV Call Table in HSPRG context of a LPAR. | 0x002C2B4C | 0x002C02B4 | 0x002C1F04 | |||
set_lv1_hvcall_table_entry_invalid | This function initializes an entry in HV Call Table to the Invalid HV Call function. | 0x002C2B70 | 0x002C02D8 | 0x002C1F28 | |||
lv1_mm_call function table | Each entry is a pointer to a function TOC entry. Size = 256 | 0x00366088 | 0x00362308 | 0x00364208 | |||
lv1_map_htab | 0x002D595C | ||||||
lv1_unmap_htab | 0x002D56B8 | ||||||
lv1_allocate_memory | 0x002D72F0 | ||||||
lv1_release_memory | 0x002D66A4 | ||||||
lv1_query_logical_partition_address_region_info | 0x002C9B24 | ||||||
lv1_create_repository_node | 0x002DD014 | ||||||
lv1_get_repository_node_value | 0x002DD260 | ||||||
lv1_undocumented_function_231 | 0x0030B560 |
HV Return Values
Status | Code |
---|---|
LV1_SUCCESS | 0 |
not used | -1 |
LV1_RESOURCE_SHORTAGE | -2 |
LV1_NO_PRIVILEGE | -3 |
LV1_DENIED_BY_POLICY | -4 |
LV1_ACCESS_VIOLATION | -5 |
LV1_NO_ENTRY | -6 |
LV1_DUPLICATE_ENTRY | -7 |
LV1_TYPE_MISMATCH | -8 |
LV1_BUSY | -9 |
LV1_EMPTY | -10 |
LV1_WRONG_STATE | -11 |
not used | -12 |
LV1_NO_MATCH | -13 |
LV1_ALREADY_CONNECTED | -14 |
LV1_UNSUPPORTED_PARAMETER_VALUE | -15 |
LV1_CONDITION_NOT_SATISFIED | -16 |
LV1_ILLEGAL_PARAMETER_VALUE | -17 |
LV1_BAD_OPTION | -18 |
LV1_IMPLEMENTATION_LIMITATION | -19 |
LV1_NOT_IMPLEMENTED | -20 |
LV1_INVALID_CLASS_ID | -21 |
LV1_CONSTRAINT_NOT_SATISFIED | -22 |
LV1_ALIGNMENT_ERROR | -23 |
LV1_INTERNAL_ERROR | -32768 |