Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@michael2012z
Copy link
Member

The PR refactors IOAPIC to work with other architectures.

2 commits are included:

  1. Introduces trait InterruptController to provide architecture agnostic functions.
  2. Implement InterruptController for AArch64.

This PR is split from #1126.

IOAPIC, a X86 specific interrupt controller, is referenced by device
manager and CPU manager. To work with more architectures, a common
type for all architectures is needed.
This commit introduces trait InterruptController to provide architecture
agnostic functions. Device manager and CPU manager can use it without
caring what the underlying device is.

Signed-off-by: Michael Zhao <[email protected]>
This commit only implements the InterruptController crate on AArch64.
The device specific part for GIC is to be added.

Signed-off-by: Michael Zhao <[email protected]>
Copy link
Member

@rbradford rbradford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fine to me, @sameo what do you think?

Copy link
Member

@sameo sameo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me as well, thanks @michael2012z

@sameo sameo merged commit 8f1f9d9 into cloud-hypervisor:master May 26, 2020
@michael2012z
Copy link
Member Author

Thanks for your prompt review.

@michael2012z michael2012z mentioned this pull request Jun 1, 2020
15 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants