Skip to content

Commit 8384ed2

Browse files
mingqiangchilijinxia
authored andcommitted
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>
1 parent 88b8ce8 commit 8384ed2

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

hypervisor/arch/x86/interrupt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ int interrupt_window_vmexit_handler(struct vcpu *vcpu)
277277
int external_interrupt_vmexit_handler(struct vcpu *vcpu)
278278
{
279279
uint32_t intr_info;
280-
struct intr_ctx ctx;
280+
struct intr_excp_ctx ctx;
281281

282282
intr_info = exec_vmread(VMX_EXIT_INT_INFO);
283283
if ((!(intr_info & VMX_INT_INFO_VALID)) ||

hypervisor/arch/x86/irq.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ int init_default_irqs(unsigned int cpu_id)
427427
return 0;
428428
}
429429

430-
void dispatch_exception(struct intr_ctx *ctx)
430+
void dispatch_exception(struct intr_excp_ctx *ctx)
431431
{
432432
unsigned int cpu_id = get_cpu_id();
433433

@@ -456,7 +456,7 @@ void handle_spurious_interrupt(int vector)
456456
}
457457

458458
/* do_IRQ() */
459-
void dispatch_interrupt(struct intr_ctx *ctx)
459+
void dispatch_interrupt(struct intr_excp_ctx *ctx)
460460
{
461461
int vr = ctx->vector;
462462
int irq = vector_to_irq[vr];

hypervisor/debug/dump.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ void __assert(uint32_t line, const char *file, char *txt)
293293
} while (1);
294294
}
295295

296-
void dump_exception(struct intr_ctx *ctx, uint32_t cpu_id)
296+
void dump_exception(struct intr_excp_ctx *ctx, uint32_t cpu_id)
297297
{
298298
const char *name = "Not defined";
299299
static int nested = 1;
@@ -340,7 +340,7 @@ void dump_exception(struct intr_ctx *ctx, uint32_t cpu_id)
340340
printf("===========================\n");
341341
}
342342

343-
void dump_interrupt(struct intr_ctx *ctx)
343+
void dump_interrupt(struct intr_excp_ctx *ctx)
344344
{
345345
printf("\n\n==========================================");
346346
printf("======================================\n=\n");

hypervisor/include/arch/x86/irq.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ struct irq_routing_entry {
9494
/*
9595
* Definition of the stack frame layout
9696
*/
97-
struct intr_ctx {
97+
struct intr_excp_ctx {
9898
uint64_t r12;
9999
uint64_t r13;
100100
uint64_t r14;
@@ -141,7 +141,7 @@ void update_irq_handler(int irq, irq_handler_t func);
141141

142142
int init_default_irqs(unsigned int cpu);
143143

144-
void dispatch_interrupt(struct intr_ctx *ctx);
144+
void dispatch_interrupt(struct intr_excp_ctx *ctx);
145145

146146
struct dev_handler_node*
147147
pri_register_handler(int irq,

hypervisor/include/debug/dump.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,23 @@
3131
#ifndef DUMP_H
3232
#define DUMP_H
3333

34-
struct intr_ctx;
34+
struct intr_excp_ctx;
3535

3636
#ifdef HV_DEBUG
3737
#define CALL_TRACE_HIERARCHY_MAX 20
3838
#define DUMP_STACK_SIZE 0x200
3939

40-
void dump_exception(struct intr_ctx *ctx, uint32_t cpu_id);
41-
void dump_interrupt(struct intr_ctx *ctx);
40+
void dump_exception(struct intr_excp_ctx *ctx, uint32_t cpu_id);
41+
void dump_interrupt(struct intr_excp_ctx *ctx);
4242

4343
#else
4444

45-
static inline void dump_exception(__unused struct intr_ctx *ctx,
45+
static inline void dump_exception(__unused struct intr_excp_ctx *ctx,
4646
__unused uint32_t cpu_id)
4747
{
4848
}
4949

50-
static inline void dump_interrupt(__unused struct intr_ctx *ctx)
50+
static inline void dump_interrupt(__unused struct intr_excp_ctx *ctx)
5151
{
5252
}
5353
#endif

0 commit comments

Comments
 (0)