Skip to content
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

build: Split x86_64 specific code #203

Merged
merged 6 commits into from
Oct 31, 2022

Conversation

retrage
Copy link
Contributor

@retrage retrage commented Oct 22, 2022

This PR proposes splitting x86_64 specific code from architecture independent code. These changes are required for upcoming aarch64 support tracked in issue #198.

This commit introduces `arch` mod for architecture specific code, and
moves x86_64 related code under arch/x86_64. This change is to support
multiple architecture.

Signed-off-by: Akira Moroo <[email protected]>
@retrage retrage mentioned this pull request Oct 22, 2022
9 tasks
@retrage retrage changed the title Split x86_64 specific code build: Split x86_64 specific code Oct 22, 2022
@retrage retrage force-pushed the split-x86_64-features branch 2 times, most recently from aef4da3 to 714fd92 Compare October 23, 2022 13:44
This commit merges `rust64_start()` for coreboot and pvh so that the
entry function is implemented for each architecture. This commit
includes suggested changes in [1].

[1]
cloud-hypervisor#203 (comment)

Signed-off-by: Akira Moroo <[email protected]>
THis commit adds annotations for x86_64 specific code to prepare for
supporting multiple architectures.

NOTE: pci is marked as x86_64 specific code at the moment. This
limitation will be removed later.

Signed-off-by: Akira Moroo <[email protected]>
This change is to prepare for multiple architecture support.

Signed-off-by: Akira Moroo <[email protected]>
This commit introduces `rdtsc()` and `pause()` to abstract
architecture-specific instruction calls.

Signed-off-by: Akira Moroo <[email protected]>
retrage added a commit to retrage/rust-hypervisor-firmware that referenced this pull request Oct 30, 2022
This commit merges `rust64_start()` for coreboot and pvh so that the
entry function is implemented for each architecture. This commit
includes suggested changes in [1].

[1]
cloud-hypervisor#203 (comment)

Signed-off-by: Akira Moroo <[email protected]>
@retrage retrage merged commit bc6bb75 into cloud-hypervisor:main Oct 31, 2022
retrage added a commit that referenced this pull request Oct 31, 2022
This commit merges `rust64_start()` for coreboot and pvh so that the
entry function is implemented for each architecture. This commit
includes suggested changes in [1].

[1]
#203 (comment)

Signed-off-by: Akira Moroo <[email protected]>
@retrage retrage deleted the split-x86_64-features branch October 31, 2022 03:22
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