On 8/28/2025 5:43 PM, Nuno Das Neves wrote: > From: Purna Pavan Chandra Aekkaladevi <paekkalad...@linux.microsoft.com> > > This hypercall can be used to fetch extended properties of a > partition. Extended properties are properties with values larger than > a u64. Some of these also need additional input arguments. > > Add helper function for using the hypercall in the mshv_root driver. > > Signed-off-by: Purna Pavan Chandra Aekkaladevi > <paekkalad...@linux.microsoft.com> > Signed-off-by: Nuno Das Neves <nunodasne...@linux.microsoft.com> > --- > drivers/hv/mshv_root.h | 2 ++ > drivers/hv/mshv_root_hv_call.c | 31 ++++++++++++++++++++++++++ > include/hyperv/hvgdk_mini.h | 1 + > include/hyperv/hvhdk.h | 40 ++++++++++++++++++++++++++++++++++ > include/hyperv/hvhdk_mini.h | 26 ++++++++++++++++++++++ > 5 files changed, 100 insertions(+) > > diff --git a/drivers/hv/mshv_root.h b/drivers/hv/mshv_root.h > index e3931b0f1269..4aeb03bea6b6 100644 > --- a/drivers/hv/mshv_root.h > +++ b/drivers/hv/mshv_root.h > @@ -303,6 +303,8 @@ int hv_call_unmap_stat_page(enum hv_stats_object_type > type, > int hv_call_modify_spa_host_access(u64 partition_id, struct page **pages, > u64 page_struct_count, u32 host_access, > u32 flags, u8 acquire); > +int hv_call_get_partition_property_ex(u64 partition_id, u64 property_code, > u64 arg, > + void *property_value, size_t > property_value_sz); > > extern struct mshv_root mshv_root; > extern enum hv_scheduler_type hv_scheduler_type; > diff --git a/drivers/hv/mshv_root_hv_call.c b/drivers/hv/mshv_root_hv_call.c > index 1c38576a673c..7589b1ff3515 100644 > --- a/drivers/hv/mshv_root_hv_call.c > +++ b/drivers/hv/mshv_root_hv_call.c > @@ -590,6 +590,37 @@ int hv_call_unmap_vp_state_page(u64 partition_id, u32 > vp_index, u32 type, > return hv_result_to_errno(status); > } > > +int > +hv_call_get_partition_property_ex(u64 partition_id, u64 property_code, u64 > arg,
One line like in patch 2.. <snip> Thanks, Easwar (he/him)