acrn-hypervisor/hypervisor/include/debug
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
..
console.h HV: find and hide serial PCI dev from service OS 2018-12-03 13:20:35 +08:00
dump.h hv: clean up function definitions in dump.h 2018-11-28 14:57:49 +08:00
logmsg.h hv: fixes related to unused API and uninitialized variable 2018-12-04 16:49:49 +08:00
npk_log.h hv: clean up function definitions in npk_log.h 2018-11-28 14:57:49 +08:00
profiling.h profiling: split profiling_vmexit_handler into two functions 2018-12-14 08:54:30 +08:00
profiling_internal.h hv: use uint8_t replace "unsigned char" 2018-12-12 13:08:10 +08:00
sbuf.h hv: use int32_t replace int 2018-12-12 13:08:10 +08:00
trace.h hv: clean up function definitions in trace.h 2018-11-28 14:57:49 +08:00
vuart.h hv: clean up function definitions in vuart.h 2018-11-28 14:57:49 +08:00