acrn-hypervisor/hypervisor/common
Min Lim 9e917057e9 profiling: split profiling_vmexit_handler into two functions
This patch fixes incorrect vm_id captured when sampling PMU data. Currently,
the vm_id gets attributed to ACRN hypervisor, rather than actual guest vm_id.

The issue is identified that the existing code captures the guest vm info
after vmexit_hander function is completed, in which the profiling module
points its context to VMM. When the vmexit happens by PMI, the guest context
should be captured so that the attribution to proper guest vm can happen.

This change will also allow to capture more accurate TSC when vmexit happens.

Tracked-On: #2043
Signed-off-by: Min Lim <min.yeol.lim@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2018-12-14 08:54:30 +08:00
..
hv_main.c profiling: split profiling_vmexit_handler into two functions 2018-12-14 08:54:30 +08:00
hypercall.c hv: use int32_t replace int 2018-12-12 13:08:10 +08:00
io_request.c doc: always use 'None' for functions not returning a value 2018-11-30 14:55:17 +08:00
ptdev.c hv:Rename ptdev to ptirq for some APIs 2018-11-30 13:27:49 +08:00
schedule.c hv: use int32_t replace int 2018-12-12 13:08:10 +08:00
softirq.c hv: remove the theoretic infinite loop 2018-12-05 13:17:38 +08:00
stack_protector.c HV:common:fix "expression is not Boolean" 2018-06-20 14:19:47 +08:00
static_checks.c hv: use int32_t replace int 2018-12-12 13:08:10 +08:00
trusty_hypercall.c hv: fix integer violations 2018-11-14 12:46:34 +08:00
vm_load.c hv: replace strcpy_s with strncpy_s 2018-12-13 09:08:32 +08:00