mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 09:17:58 +00:00
HV: Added Initial support for SEP/SOCWATCH profiling
This patch adds support to sep/socwatch profiling Adds 2 new files include/arch/x86/profiling.h and arch/x86/profiling.c which contains most of the implementation for profiling,most of the functions in profiling.c have dummy implementation and will be implemented in next patches a. cpu.c, Initial profiling setup is done as part of bsp_boot_post and cpu_secondary_post flow b. vmcall.c, New ioctl is added for performing profiling related operations in vmcall_vmexit_handler ioctl - HC_PROFILING_OPS function - hcall_profiling_ops() c. common/hypercall.c, hcall_profiling_ops() implementation. d. hv_main.c, In vcpu_thread calling profiling related functions to save vm context e. acrn_hv_defs.h, list all the profiling command types Tracked-On: projectacrn#1409 Acked-by: Eddie Dong <eddie.dong@intel.com> Signed-off-by: Chinthapally, Manisha <manisha.chinthapally@intel.com>
This commit is contained in:
committed by
wenlingz
parent
3010718d4a
commit
8ba333d275
@@ -26,6 +26,7 @@ static struct static_mapping_table irq_static_mappings[NR_STATIC_MAPPINGS] = {
|
||||
{TIMER_IRQ, VECTOR_TIMER},
|
||||
{NOTIFY_IRQ, VECTOR_NOTIFY_VCPU},
|
||||
{POSTED_INTR_NOTIFY_IRQ, VECTOR_POSTED_INTR},
|
||||
{PMI_IRQ, VECTOR_PMI},
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -96,7 +97,7 @@ uint32_t alloc_irq_vector(uint32_t irq)
|
||||
}
|
||||
|
||||
desc = &irq_desc_array[irq];
|
||||
|
||||
|
||||
if (desc->vector != VECTOR_INVALID) {
|
||||
if (vector_to_irq[desc->vector] == irq) {
|
||||
/* statically binded */
|
||||
@@ -121,7 +122,7 @@ uint32_t alloc_irq_vector(uint32_t irq)
|
||||
}
|
||||
}
|
||||
vr = (vr > VECTOR_DYNAMIC_END) ? VECTOR_INVALID : vr;
|
||||
|
||||
|
||||
spinlock_irqrestore_release(&irq_alloc_spinlock, rflags);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user