-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #745 from stlankes/aarch64
revise PCI support
- Loading branch information
Showing
39 changed files
with
1,152 additions
and
899 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -137,7 +137,7 @@ jobs: | |
run: rustup show | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Build dev profile | ||
run: cargo build -Zbuild-std=std,panic_abort --package rusty_demo --target x86_64-unknown-hermit | ||
run: cargo build -Zbuild-std=std,panic_abort --package rusty_demo --target x86_64-unknown-hermit --features pci-ids | ||
- name: Download loader | ||
uses: dsaltares/[email protected] | ||
with: | ||
|
@@ -157,7 +157,7 @@ jobs: | |
-object memory-backend-file,id=mem,size=1G,mem-path=/dev/shm,share=on -numa node,memdev=mem \ | ||
-initrd target/x86_64-unknown-hermit/debug/rusty_demo | ||
- name: Build release profile | ||
run: cargo build -Zbuild-std=std,panic_abort --package rusty_demo --target x86_64-unknown-hermit --release | ||
run: cargo build -Zbuild-std=std,panic_abort --package rusty_demo --target x86_64-unknown-hermit --release --features pci-ids | ||
- name: Test release profile | ||
run: | | ||
virtiofsd --socket-path=./vhostqemu --shared-dir ./img --announce-submounts --sandbox none --seccomp none --inode-file-handles=never & | ||
|
@@ -169,6 +169,34 @@ jobs: | |
-device vhost-user-fs-pci,queue-size=1024,chardev=char0,tag=root \ | ||
-object memory-backend-file,id=mem,size=1G,mem-path=/dev/shm,share=on -numa node,memdev=mem \ | ||
-initrd target/x86_64-unknown-hermit/release/rusty_demo | ||
- name: Build httpd with DHCP support (debug profile) | ||
run: | ||
cargo build -Zbuild-std=std,panic_abort --target x86_64-unknown-hermit --package httpd --features ci,dhcpv4 | ||
- name: Test httpd with DHCP support (debug profile) | ||
run: | | ||
qemu-system-x86_64 -smp 1 -cpu qemu64,apic,fsgsbase,rdtscp,xsave,xsaveopt,fxsr,rdrand \ | ||
-device isa-debug-exit,iobase=0xf4,iosize=0x04 -display none -m 128M -serial stdio \ | ||
-kernel rusty-loader-x86_64 \ | ||
-initrd target/x86_64-unknown-hermit/debug/httpd \ | ||
-netdev user,id=u1,hostfwd=tcp::9975-:9975,net=192.168.76.0/24,dhcpstart=192.168.76.9 \ | ||
-device rtl8139,netdev=u1 & | ||
sleep 5 | ||
curl http://127.0.0.1:9975/help | ||
sleep 1 | ||
- name: Build httpd with DHCP support (release profile) | ||
run: | ||
cargo build -Zbuild-std=std,panic_abort --target x86_64-unknown-hermit --package httpd --release --features ci,dhcpv4 | ||
- name: Test httpd with DHCP support (release profile) | ||
run: | | ||
qemu-system-x86_64 -smp 1 -cpu qemu64,apic,fsgsbase,rdtscp,xsave,xsaveopt,fxsr,rdrand \ | ||
-device isa-debug-exit,iobase=0xf4,iosize=0x04 -display none -m 128M -serial stdio \ | ||
-kernel rusty-loader-x86_64 \ | ||
-initrd target/x86_64-unknown-hermit/release/httpd \ | ||
-netdev user,id=u1,hostfwd=tcp::9975-:9975,net=192.168.76.0/24,dhcpstart=192.168.76.9 \ | ||
-device rtl8139,netdev=u1 & | ||
sleep 5 | ||
curl http://127.0.0.1:9975/help | ||
sleep 1 | ||
- name: Build minimal profile | ||
run: cargo build -Zbuild-std=std,panic_abort --target x86_64-unknown-hermit --no-default-features --release --package hello_world | ||
- name: Test minimal profile | ||
|
@@ -216,15 +244,15 @@ jobs: | |
sudo apt-get install qemu-system-aarch64 | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Build dev profile | ||
run: cargo build -Zbuild-std=std,panic_abort --target aarch64-unknown-hermit --package rusty_demo | ||
run: cargo build -Zbuild-std=std,panic_abort --target aarch64-unknown-hermit --package rusty_demo --features pci-ids | ||
- name: Test dev kernel | ||
run: | | ||
qemu-system-aarch64 -semihosting \ | ||
-kernel rusty-loader-aarch64 -machine virt,gic-version=max \ | ||
-m 512M -cpu max -smp 1 -display none -serial stdio -kernel rusty-loader-aarch64 \ | ||
-device guest-loader,addr=0x48000000,initrd=target/aarch64-unknown-hermit/debug/rusty_demo | ||
- name: Build release profile | ||
run: cargo build -Zbuild-std=std,panic_abort --target aarch64-unknown-hermit --package rusty_demo --release | ||
run: cargo build -Zbuild-std=std,panic_abort --target aarch64-unknown-hermit --package rusty_demo --release --features pci-ids | ||
- name: Test release kernel | ||
run: | | ||
qemu-system-aarch64 -semihosting \ | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
use hermit_sync::InterruptTicketMutex; | ||
|
||
use crate::drivers::net::NetworkInterface; | ||
|
||
pub fn get_network_driver() -> Option<&'static InterruptTicketMutex<dyn NetworkInterface>> { | ||
None | ||
} |
Oops, something went wrong.