Skip to contentSkip to conversation

World-switch architected component flushing/invalidating.

DISCUSSION Mazen Ezzeddine (Student) 2 participants 2 messages May 19, 2015

lore
Share & tools
lore
#0 lore raw

Dear all,

Could you please hint me about the below:

I need to flush/invalidate all architected components (all levels of D-cache/I-cache, I-TLB D-TLB, branch predictor etc..) on Xen world/Domain switch running on a dual core ARM cortex A-15.

As such, am I on the safe side if I include the invalidate/flush code in the function :

static void schedule(void)

{

-----

-----

// code for invalidation of architected components

context_switch(prev, next);

}

Is there a header file to include and use already-implemented xen-specific functions for cache/TLB/branchPredictor invalidating? Could you please route me to the Xen file where they are implemented.

Thank you for sharing your experience.

Best regards.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#1 lore raw
Quoted 3 lines · Mazen Ezzeddine (Student)

Is there a header file to include and use already-implemented xen-specific functions for cache/TLB/branchPredictor invalidating? Could you please route me to the Xen file where they are implemented.

I suggest you use a tool such as "grep" to search for some key words and associated register names in the xen source tree. You may want to pay particular attention to xen/include/asm-arm.

Ian.