From 921d71ac53fd1e700298841813efd10e482d5699 Mon Sep 17 00:00:00 2001 From: Sai Harshini Nimmala Date: Tue, 22 Sep 2020 13:42:23 -0700 Subject: [PATCH] haven: hcall: Add Virtual PM group get state API The state information of the Virtual PM group can be obtained through this API. Change-Id: I0a00e8bfe38f7908ed20bc105f66149097e6532b Signed-off-by: Sai Harshini Nimmala --- include/linux/haven/hcall.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/linux/haven/hcall.h b/include/linux/haven/hcall.h index 2dc128f03021..41a3fba9a7b2 100644 --- a/include/linux/haven/hcall.h +++ b/include/linux/haven/hcall.h @@ -283,6 +283,20 @@ static inline int hh_hcall_vcpu_affinity_set(hh_capid_t vcpu_capid, return ret; } +static inline int hh_hcall_vpm_group_get_state(u64 vpmg_capid, + uint64_t *vpmg_state) +{ + int ret; + struct hh_hcall_resp _resp = {0}; + + ret = _hh_hcall(0x6045, + (struct hh_hcall_args){ vpmg_capid, 0 }, + &_resp); + *vpmg_state = _resp.resp1; + + return ret; +} + static inline int hh_hcall_trace_update_class_flags( uint64_t set_flags, uint64_t clear_flags, uint64_t *new_flags)