From fa2c926449f80c4db48ced90a7d01749166ee9fe Mon Sep 17 00:00:00 2001 From: Sai Harshini Nimmala Date: Mon, 26 Oct 2020 10:00:23 -0700 Subject: [PATCH] soc/qcom/hyp_core_ctl: Add new VM resource type Virtual PM Group resource type has been added to the list of hypervisor resource types that can be queried for by a VM. This addition is in preparation for the hyp core ctl driver to store and utilize the information related to VPM group such as cap_id and VPM group state in relevant hypervisor features. Change-Id: I4ec9b4dca5f095980b8ce9134c7cac695562f101 Signed-off-by: Sai Harshini Nimmala --- drivers/virt/haven/hh_rm_core.c | 2 ++ drivers/virt/haven/hh_rm_drv_private.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/virt/haven/hh_rm_core.c b/drivers/virt/haven/hh_rm_core.c index bd177bd77c25..2759953731d2 100644 --- a/drivers/virt/haven/hh_rm_core.c +++ b/drivers/virt/haven/hh_rm_core.c @@ -805,6 +805,8 @@ int hh_rm_populate_hyp_res(hh_vmid_t vmid) ret = hh_dbl_populate_cap_info(label, cap_id, HH_MSGQ_DIRECTION_RX, linux_irq); break; + case HH_RM_RES_TYPE_VPMGRP: + break; default: pr_err("%s: Unknown resource type: %u\n", __func__, res_entries[i].res_type); diff --git a/drivers/virt/haven/hh_rm_drv_private.h b/drivers/virt/haven/hh_rm_drv_private.h index 688e301b5779..ab314beaeb16 100644 --- a/drivers/virt/haven/hh_rm_drv_private.h +++ b/drivers/virt/haven/hh_rm_drv_private.h @@ -133,6 +133,7 @@ struct hh_vm_console_write_req_payload { #define HH_RM_RES_TYPE_MQ_TX 2 #define HH_RM_RES_TYPE_MQ_RX 3 #define HH_RM_RES_TYPE_VCPU 4 +#define HH_RM_RES_TYPE_VPMGRP 5 struct hh_vm_get_hyp_res_req_payload { hh_vmid_t vmid;