HvMapEventLogBuffer function
The HvMapEventLogBuffer function returns the buffer's guest physical address (GPA) pages and maps them as read-only into the guest's address space.
Syntax
HV_STATUS HvMapEventLogBuffer( _In_ HV_EVENTLOG_TYPE Type, _In_ HV_EVENT BufferIndex, _Out_ PHV_GPA_PAGE_NUMBER GpaPages );
Parameters
- Type [in]
-
An HV_EVENTLOG_TYPE value that specifies the type of the event log buffer group whose pages are mapped.
- BufferIndex [in]
-
An HV_EVENTLOG_BUFFER_INDEX value that specifies the index of the buffer within the buffer group that is associated with the event log type that the Type parameter specifies.
- GpaPages [out]
-
A pointer to an array of HV_GPA_PAGE_NUMBER variables for the GPA pages that HvMapEventLogBuffer returns and that constitute the event log buffer. All buffers for a specific event log group are the same size. The size is established by the guest by using the HvInitializeEventLogBufferGroup function. HV_GPA_PAGE_NUMBER is defined as an unsigned 64-bit (UINT64) value.
Return value
HvMapEventLogBuffer returns one of the following values. In addition to these values, HvMapEventLogBuffer can also return one of the values that are specified in Common Hypercall Status Codes.
Return code | Description |
---|---|
|
HvMapEventLogBuffer successfully mapped a single event log buffer. |
|
The caller is not the root partition. |
|
One of the following invalid parameter conditions exists:
|
|
One of the following conditions exists:
|
|
Insufficient memory exists for the call to succeed. |
Remarks
The HvMapEventLogBuffer hypercall is used to read-only map the GPA pages of the specified event log buffer into the guest's address space and to return the list of GPA pages that constitute the buffer. Buffers that are successfully mapped are placed onto the free buffer list, which makes them available for the hypervisor to use for event logging.
HvMapEventLogBuffer has the following restrictions:
-
The caller must be the root partition.
Native Interface
HvMapEventLogBuffer | |
---|---|
Call Code = 0x0064 | |
Input Parameters | |
0 |
Type (4 bytes) BufferIndex (4 bytes) |
Output Parameters | |
0 |
|
Requirements
Version | HvMapEventLogBuffer is available in version 1.0 and later versions of the hypervisor. |
---|---|
Header |
|
IRQL | Any level |
See also
Send comments about this topic to Microsoft
Build date: 11/16/2013