mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-26 23:36:51 +00:00
hv:rename data structure intr_ctx
rename intr_ctx to intr_excp_ctx Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
parent
88b8ce8362
commit
8384ed2564
@ -277,7 +277,7 @@ int interrupt_window_vmexit_handler(struct vcpu *vcpu)
|
|||||||
int external_interrupt_vmexit_handler(struct vcpu *vcpu)
|
int external_interrupt_vmexit_handler(struct vcpu *vcpu)
|
||||||
{
|
{
|
||||||
uint32_t intr_info;
|
uint32_t intr_info;
|
||||||
struct intr_ctx ctx;
|
struct intr_excp_ctx ctx;
|
||||||
|
|
||||||
intr_info = exec_vmread(VMX_EXIT_INT_INFO);
|
intr_info = exec_vmread(VMX_EXIT_INT_INFO);
|
||||||
if ((!(intr_info & VMX_INT_INFO_VALID)) ||
|
if ((!(intr_info & VMX_INT_INFO_VALID)) ||
|
||||||
|
@ -427,7 +427,7 @@ int init_default_irqs(unsigned int cpu_id)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void dispatch_exception(struct intr_ctx *ctx)
|
void dispatch_exception(struct intr_excp_ctx *ctx)
|
||||||
{
|
{
|
||||||
unsigned int cpu_id = get_cpu_id();
|
unsigned int cpu_id = get_cpu_id();
|
||||||
|
|
||||||
@ -456,7 +456,7 @@ void handle_spurious_interrupt(int vector)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* do_IRQ() */
|
/* do_IRQ() */
|
||||||
void dispatch_interrupt(struct intr_ctx *ctx)
|
void dispatch_interrupt(struct intr_excp_ctx *ctx)
|
||||||
{
|
{
|
||||||
int vr = ctx->vector;
|
int vr = ctx->vector;
|
||||||
int irq = vector_to_irq[vr];
|
int irq = vector_to_irq[vr];
|
||||||
|
@ -293,7 +293,7 @@ void __assert(uint32_t line, const char *file, char *txt)
|
|||||||
} while (1);
|
} while (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void dump_exception(struct intr_ctx *ctx, uint32_t cpu_id)
|
void dump_exception(struct intr_excp_ctx *ctx, uint32_t cpu_id)
|
||||||
{
|
{
|
||||||
const char *name = "Not defined";
|
const char *name = "Not defined";
|
||||||
static int nested = 1;
|
static int nested = 1;
|
||||||
@ -340,7 +340,7 @@ void dump_exception(struct intr_ctx *ctx, uint32_t cpu_id)
|
|||||||
printf("===========================\n");
|
printf("===========================\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void dump_interrupt(struct intr_ctx *ctx)
|
void dump_interrupt(struct intr_excp_ctx *ctx)
|
||||||
{
|
{
|
||||||
printf("\n\n==========================================");
|
printf("\n\n==========================================");
|
||||||
printf("======================================\n=\n");
|
printf("======================================\n=\n");
|
||||||
|
@ -94,7 +94,7 @@ struct irq_routing_entry {
|
|||||||
/*
|
/*
|
||||||
* Definition of the stack frame layout
|
* Definition of the stack frame layout
|
||||||
*/
|
*/
|
||||||
struct intr_ctx {
|
struct intr_excp_ctx {
|
||||||
uint64_t r12;
|
uint64_t r12;
|
||||||
uint64_t r13;
|
uint64_t r13;
|
||||||
uint64_t r14;
|
uint64_t r14;
|
||||||
@ -141,7 +141,7 @@ void update_irq_handler(int irq, irq_handler_t func);
|
|||||||
|
|
||||||
int init_default_irqs(unsigned int cpu);
|
int init_default_irqs(unsigned int cpu);
|
||||||
|
|
||||||
void dispatch_interrupt(struct intr_ctx *ctx);
|
void dispatch_interrupt(struct intr_excp_ctx *ctx);
|
||||||
|
|
||||||
struct dev_handler_node*
|
struct dev_handler_node*
|
||||||
pri_register_handler(int irq,
|
pri_register_handler(int irq,
|
||||||
|
@ -31,23 +31,23 @@
|
|||||||
#ifndef DUMP_H
|
#ifndef DUMP_H
|
||||||
#define DUMP_H
|
#define DUMP_H
|
||||||
|
|
||||||
struct intr_ctx;
|
struct intr_excp_ctx;
|
||||||
|
|
||||||
#ifdef HV_DEBUG
|
#ifdef HV_DEBUG
|
||||||
#define CALL_TRACE_HIERARCHY_MAX 20
|
#define CALL_TRACE_HIERARCHY_MAX 20
|
||||||
#define DUMP_STACK_SIZE 0x200
|
#define DUMP_STACK_SIZE 0x200
|
||||||
|
|
||||||
void dump_exception(struct intr_ctx *ctx, uint32_t cpu_id);
|
void dump_exception(struct intr_excp_ctx *ctx, uint32_t cpu_id);
|
||||||
void dump_interrupt(struct intr_ctx *ctx);
|
void dump_interrupt(struct intr_excp_ctx *ctx);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
static inline void dump_exception(__unused struct intr_ctx *ctx,
|
static inline void dump_exception(__unused struct intr_excp_ctx *ctx,
|
||||||
__unused uint32_t cpu_id)
|
__unused uint32_t cpu_id)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void dump_interrupt(__unused struct intr_ctx *ctx)
|
static inline void dump_interrupt(__unused struct intr_excp_ctx *ctx)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user