int hv_call_notify_port_ring_empty(u32 sint_index);
int hv_map_stats_page(enum hv_stats_object_type type,
const union hv_stats_object_identity *identity,
- void **addr);
-int hv_unmap_stats_page(enum hv_stats_object_type type, void *page_addr,
+ struct hv_stats_page **addr);
+int hv_unmap_stats_page(enum hv_stats_object_type type,
+ struct hv_stats_page *page_addr,
const union hv_stats_object_identity *identity);
int hv_call_modify_spa_host_access(u64 partition_id, struct page **pages,
u64 page_struct_count, u32 host_access,
* caller should check for this case and instead fallback to the SELF area
* alone.
*/
-static int hv_call_map_stats_page(enum hv_stats_object_type type,
- const union hv_stats_object_identity *identity,
- void **addr)
+static int
+hv_call_map_stats_page(enum hv_stats_object_type type,
+ const union hv_stats_object_identity *identity,
+ struct hv_stats_page **addr)
{
unsigned long flags;
struct hv_input_map_stats_page *input;
int hv_map_stats_page(enum hv_stats_object_type type,
const union hv_stats_object_identity *identity,
- void **addr)
+ struct hv_stats_page **addr)
{
int ret;
struct page *allocated_page = NULL;
return hv_result_to_errno(status);
}
-int hv_unmap_stats_page(enum hv_stats_object_type type, void *page_addr,
+int hv_unmap_stats_page(enum hv_stats_object_type type,
+ struct hv_stats_page *page_addr,
const union hv_stats_object_identity *identity)
{
int ret;
}
static void mshv_vp_stats_unmap(u64 partition_id, u32 vp_index,
- void *stats_pages[])
+ struct hv_stats_page *stats_pages[])
{
union hv_stats_object_identity identity = {
.vp.partition_id = partition_id,
}
static int mshv_vp_stats_map(u64 partition_id, u32 vp_index,
- void *stats_pages[])
+ struct hv_stats_page *stats_pages[])
{
union hv_stats_object_identity identity = {
.vp.partition_id = partition_id,
struct mshv_create_vp args;
struct mshv_vp *vp;
struct page *intercept_msg_page, *register_page, *ghcb_page;
- void *stats_pages[2];
+ struct hv_stats_page *stats_pages[2];
long ret;
if (copy_from_user(&args, arg, sizeof(args)))
if (hv_scheduler_type == HV_SCHEDULER_TYPE_ROOT)
mshv_vp_stats_unmap(partition->pt_id, vp->vp_index,
- (void **)vp->vp_stats_pages);
+ vp->vp_stats_pages);
if (vp->vp_register_page) {
(void)hv_unmap_vp_state_page(partition->pt_id,