mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
virt/haven: populate VCPU resources
VCPU resources provides virtual CPU's affinity index which can be used to set or change the physical CPU affinity of a VCPU thread. Change-Id: I4889ed29ae71b828676e14d39a2e99eddd304add Signed-off-by: Satya Durga Srinivasu Prabhala <[email protected]>
This commit is contained in:
parent
cff714d423
commit
8bb6422546
3 changed files with 14 additions and 0 deletions
|
|
@ -16,6 +16,7 @@
|
|||
#include <linux/completion.h>
|
||||
#include <linux/mod_devicetable.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/sched.h>
|
||||
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
||||
|
||||
#include <linux/haven/hh_msgq.h>
|
||||
|
|
@ -667,6 +668,9 @@ static int hh_rm_populate_hyp_res(void)
|
|||
ret = hh_msgq_populate_cap_info(label, cap_id,
|
||||
HH_MSGQ_DIRECTION_RX, linux_irq);
|
||||
break;
|
||||
case HH_RM_RES_TYPE_VCPU:
|
||||
ret = hh_vcpu_populate_affinity_info(label, cap_id);
|
||||
break;
|
||||
case HH_RM_RES_TYPE_DB_TX:
|
||||
break;
|
||||
case HH_RM_RES_TYPE_DB_RX:
|
||||
|
|
|
|||
|
|
@ -139,6 +139,7 @@ struct hh_vm_console_write_resp_payload {
|
|||
#define HH_RM_RES_TYPE_DB_RX 1
|
||||
#define HH_RM_RES_TYPE_MQ_TX 2
|
||||
#define HH_RM_RES_TYPE_MQ_RX 3
|
||||
#define HH_RM_RES_TYPE_VCPU 4
|
||||
|
||||
struct hh_vm_get_hyp_res_req_payload {
|
||||
u16 vmid;
|
||||
|
|
|
|||
Loading…
Reference in a new issue