acrn-hypervisor/hypervisor/release
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
..
Makefile hv: enhance Makefile to compile debug/release into 2 libraries 2018-11-23 08:47:34 +08:00
console.c HV: find and hide serial PCI dev from service OS 2018-12-03 13:20:35 +08:00
dump.c hv: clean up function definitions in dump.h 2018-11-28 14:57:49 +08:00
hypercall.c hv: hypercall: clean up HV_DEBUG usage 2018-11-20 10:01:50 +08:00
logmsg.c hv: fixes related to unused API and uninitialized variable 2018-12-04 16:49:49 +08:00
npk_log.c hv: clean up function definitions in npk_log.h 2018-11-28 14:57:49 +08:00
profiling.c profiling: split profiling_vmexit_handler into two functions 2018-12-14 08:54:30 +08:00
trace.c hv: clean up function definitions in trace.h 2018-11-28 14:57:49 +08:00
vuart.c hv: clean up function definitions in vuart.h 2018-11-28 14:57:49 +08:00