forked from projectacrn/acrn-hypervisor
-
Notifications
You must be signed in to change notification settings - Fork 0
hv: x86: move initialization functions from cpu.c to init.c #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
lonzoc
wants to merge
21
commits into
JasonChenCJ:mod
Choose a base branch
from
lonzoc:mod-lonzo
base: mod
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
As part of arch module cleanup, moving out seed module as it has no dependency on arch. Signed-off-by: Vijay Dhanraj <[email protected]> Acked-by: Jason Chen <[email protected]>
Signed-off-by: Rong Liu <[email protected]>
Signed-off-by: Rong Liu <[email protected]>
1. do not allow external modules to touch internal field of a timer 2. hide timer mode into internal, period_in_cycles will decide the mode Signed-off-by: Jason Chen CJ <[email protected]>
Signed-off-by: Peter Fang <[email protected]> Reviewed-by: Jason Chen CJ <[email protected]>
Split irq.c into arch/x86/irq.c and common/irq.c The arch-specific file provides arch-specific interfaces as well as *_arch interfaces for the common irq framework. Also, add irq_rsvd_bitmap to decouple irq number reservation from ioapic. Signed-off-by: Peter Fang <[email protected]> Reviewed-by: Jason Chen CJ <[email protected]>
Move handle_nmi, dispatch_exception and init_interrupt_arch to seperated files Signed-off-by: Yang, Yu-chu <[email protected]>
Restructure the init_interrupt in common/irq,c and init_interrupt_arch in x86/irq.c. Split the functionality to two parts. One is for hardware initilizatoin, another is for set up irq framework. Signed-off-by: Yang, Yu-chu <[email protected]>
Move out the ioapic apis which are for irq ops Signed-off-by: Yang, Yu-chu <[email protected]>
move set_irq_trigger_mode into ioapic_set_rte Signed-off-by: Jason Chen CJ <[email protected]>
Signed-off-by: Jason Chen CJ <[email protected]>
1. move cpufeatures.h into cpu_caps.h 2. make init_pcpu_model_name as internal function Signed-off-by: Jason Chen CJ <[email protected]>
struct cpuinfo_x86 will be private structure for cpu_caps. remove API get_pcpu_info(), and add APIs: - uint8_t pcpu_family_id(void); - uint8_t pcpu_model_id(void); - char *pcpu_model_name(void); - uint8_t pcpu_physaddr_bits(void); - uint8_t pcpu_virtaddr_bits(void); - uint32_t pcpu_cpuid_level(void); - bool pcpu_set_cap(uint32_t bit); Signed-off-by: Jason Chen CJ <[email protected]>
This reverts commit ef411d4. TODO: we need add such fix logic back!!!!!
Split ptdev.c and assign.c into: - common/ptintr.c - common/ptirq.c - arch/x86/ptintr.c - arch/x86/ptirq.c ptintr is responsible for interrupt remapping. ptirq is responsible for irq/softirq handling. Signed-off-by: Peter Fang <[email protected]>
Signed-off-by: Jason Chen CJ <[email protected]>
merge ioapic_irq.c into ioapic.c Signed-off-by: Jason Chen CJ <[email protected]>
Signed-off-by: Jason Chen CJ <[email protected]>
Signed-off-by: Jason Chen CJ <[email protected]>
Let DM own COM1 Signed-off-by: Jason Chen CJ <[email protected]>
Signed-off-by: Cai Yulong <[email protected]>
12338ab to
9ecb9ff
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Cai Yulong [email protected]