Host-Guest Interaction

Host-Guest Interaction#

AMD SMI: Host-Guest Interaction
Host-Guest Interaction

Functions

amdsmi_status_t amdsmi_get_guest_data (amdsmi_vf_handle_t vf_handle, amdsmi_guest_data_t *info)
 Returns guest OS information of the queried VF. The fw_info field from the amdsmi_guest_data structure is deprecated and will be empty. To get the vf fw info, amdsmi_get_vf_fw_info API should be used. More...
 
amdsmi_status_t amdsmi_get_vf_fw_info (amdsmi_vf_handle_t vf_handle, amdsmi_fw_info_t *info)
 Returns the firmware versions running on a VF. In case the VM is not started on the VF, empty list will be returned and num_fw_info will be set to zero. More...
 
amdsmi_status_t amdsmi_get_partition_profile_info (amdsmi_processor_handle processor_handle, amdsmi_profile_info_t *profile_info)
 Return the list of supported profiles on the given GPU device. More...
 

Detailed Description

Function Documentation

◆ amdsmi_get_guest_data()

amdsmi_status_t amdsmi_get_guest_data ( amdsmi_vf_handle_t  vf_handle,
amdsmi_guest_data_t info 
)

Returns guest OS information of the queried VF. The fw_info field from the amdsmi_guest_data structure is deprecated and will be empty. To get the vf fw info, amdsmi_get_vf_fw_info API should be used.

Parameters
[in]vf_handleHandle of the VF to query.
[out]inforeference to the guest_data structure. Must be allocated by user.
Returns
amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail

◆ amdsmi_get_vf_fw_info()

amdsmi_status_t amdsmi_get_vf_fw_info ( amdsmi_vf_handle_t  vf_handle,
amdsmi_fw_info_t info 
)

Returns the firmware versions running on a VF. In case the VM is not started on the VF, empty list will be returned and num_fw_info will be set to zero.

Parameters
[in]vf_handleVF handle of a processor for which to query
[out]infoReference to the fw info. Must be allocated by user.
Returns
amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail

◆ amdsmi_get_partition_profile_info()

amdsmi_status_t amdsmi_get_partition_profile_info ( amdsmi_processor_handle  processor_handle,
amdsmi_profile_info_t profile_info 
)

Return the list of supported profiles on the given GPU device.

Parameters
[in]processor_handlePF of a processor for which to query
[out]profile_inforeference to the profile info struct. Must be allocated by user.
Returns
amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail