Commit Graph

167 Commits

Author SHA1 Message Date
Yuke Peng a2778e66f3 Bump version to 0.8.1 2024-08-27 22:13:38 +08:00
Cautreoxit 86f09eef75 Fix all spelling mistakes in history by typos tool 2024-08-27 12:19:48 +08:00
Zhang Junyang 4231645c02 Fix `is_tdx_enabled` in OSDK tests 2024-08-25 20:42:04 +08:00
Zhang Junyang d91573248c Fix local development version OSDK's out-tree behavior 2024-08-25 20:42:04 +08:00
Zhang Junyang f7a9510be0 Refactor the `this_cpu` API with `PinCurrentCpu` 2024-08-25 20:14:06 +08:00
Zhang Junyang 1e24911198 Upgrade the version of `bytemuck` since it's yanked 2024-08-24 17:18:24 +08:00
Zhang Junyang 34b3aac2e3 Bump and publish `ostd-test` and `ostd-macros` 2024-08-24 17:18:24 +08:00
Zhang Junyang e50b05d1ee Bump version to 0.8.0 2024-08-23 23:37:50 +08:00
Zhang Junyang d76c7a5b1e OSDK check and clippy with `cfg(ktest)` 2024-08-23 23:37:50 +08:00
Zhang Junyang be3492d7f0 Extract the OSTD test runner as a kernel 2024-08-23 23:37:50 +08:00
Zhang Junyang cad36ecdab Don't inherit OSDK manifest values from workspace root 2024-08-23 23:37:50 +08:00
Cautreoxit 1833f8047e Modify Dockerfile and bump the version file 2024-08-22 09:55:19 +08:00
Shaowei Song 2102107be1 Refactor `VmReader`&`VmWriter` as given fallibility marker 2024-08-21 22:24:15 +08:00
Hsy-Intel 3a6768ecb2 Add TDX support for OSDK test 2024-08-13 20:27:21 +08:00
Hsy-Intel 8317c4c1e8 Rename "intel_tdx" feature to "cvm_guest" 2024-08-09 17:11:12 +08:00
Marsman1996 8dc08dccba Add test for new crate with hypen 2024-08-08 19:55:15 +08:00
Marsman1996 923ca16d32 Make code more readable 2024-08-08 19:55:15 +08:00
Marsman1996 ae63aa699b Fix panic when OSDK creating crate with `-` in its name 2024-08-08 19:55:15 +08:00
Zhang Junyang 37a9590cfe Refactor `ostd::task::processor` based on faster CPU-local cells 2024-08-08 19:21:03 +08:00
Zhang Junyang 05564ecd4f Abort on double panics 2024-08-08 19:21:03 +08:00
Zhang Junyang fe68b4b510 Generalize single instruction CPU local operations by `cpu_local_cell` 2024-08-08 19:21:03 +08:00
azongchang 4d19c710a2 Bump linux-bzimage-builder to 0.2.0 2024-08-05 15:36:55 +08:00
azongchang 6752baf166 Utilize libflate crate to compress and decompress payload 2024-08-05 15:36:55 +08:00
Zhang Junyang 393c9019c0 Boot application processors into spin loops
Co-authored-by: Chuandong Li <lichuand@pku.edu.cn>
2024-07-30 10:24:09 +08:00
Zhang Junyang 91d524c19a Allow debugging with KVM enabled 2024-07-29 22:46:32 +08:00
Zhang Junyang 3ae884081f Fix both the preempt count atomicity and the CPU-local init problem 2024-07-25 13:20:09 +08:00
YanWQ-monad eb5356c492 Set EM_386 only in x86 2024-07-22 21:47:37 +08:00
Zhang Junyang 20524ae64a Update the 100-line kernel and format it as well 2024-07-20 20:56:29 +08:00
Jianfeng Jiang f86583dbce Make essential changes for publishing OSTD 2024-07-18 18:18:05 +08:00
Zhang Junyang 9cbbcf63a7 Switch the dependency of `unwinding` back to `crates.io` 2024-07-09 09:45:58 +08:00
Shaowei Song 02bf6a9b47 Bump version to 0.6.2 2024-07-08 17:13:16 +08:00
Yuke Peng defb563541 Bump version to 0.6.1 2024-07-08 15:26:29 +08:00
Zhang Junyang 0f8d8da372 Refactor code related to CPU local memory
Co-authored-by: Chuandong Li <lichuand@pku.edu.cn>
2024-07-03 17:40:53 +08:00
Ruihan Li 74239781c9 Update `Cargo.lock` 2024-06-29 12:38:23 +08:00
Jianfeng Jiang f51e002bb2 Bump version to 0.6.0 2024-06-28 21:20:08 +08:00
Jianfeng Jiang 72e726295f Include the 100 lines kernel in CI 2024-06-28 20:22:12 +08:00
Chen Chengjun 5f7cf245ac Enable exception table mechanism 2024-06-28 15:36:21 +08:00
Jianfeng Jiang 3de8a9330a Fix the OSDK CI failure 2024-06-27 15:45:49 +08:00
Jianfeng Jiang fe7251c413 Rename aster_main as ostd::main 2024-06-27 15:45:49 +08:00
Jianfeng Jiang 59350a8578 Rename aster-frame to ostd 2024-06-27 15:45:49 +08:00
Jianfeng Jiang fb59fa7a55 Use matrix to simplify osdk test 2024-06-27 15:44:29 +08:00
Fabing Li 4700ab71bc Bumped Asterinas & OSDK version to 0.5.1 2024-06-26 19:12:17 +08:00
fgh1999 18b11ec193 Fix debug target path in OSDK 2024-06-26 19:09:46 +08:00
Jianfeng Jiang 237c223b1c Update the aster-frame version used by OSDK 2024-06-24 11:11:43 +08:00
Zhang Junyang d2eb9e16ff [chore] Bump to 0.5.0 2024-06-21 10:57:08 +08:00
Zhang Junyang 46fd09833e Update the Rust toolchain to 2024-06-20 2024-06-21 10:57:08 +08:00
Zhang Junyang a089fbd4fc Fix a needless borrow in OSDK 2024-06-21 10:57:08 +08:00
Zhang Junyang eaf51ccb24 Fix multiple dead code problems 2024-06-21 10:57:08 +08:00
Zhang Junyang 8633893bb9 Add `cfg(ktest)` as a well-known configuration 2024-06-21 10:57:08 +08:00
Zhang Junyang ab1d931cb7 Adjust for Rust unstable feature's stability change 2024-06-21 10:57:08 +08:00
Ruihan Li c06c1aa422 Fix bad `ASTER_GIT_REV` 2024-06-18 12:45:03 +08:00
Hsy-Intel 6014ecfc0f Add tdx guide for osdk 2024-06-14 19:49:03 +08:00
Jianfeng Jiang 6cf28751c6 Not add project_type if the manifest is in workspace root 2024-06-09 22:55:01 +08:00
Jianfeng Jiang 3b95191f7e Subcommand `new` should not parse CommonArgs 2024-06-09 22:55:01 +08:00
Jianfeng Jiang 1391ff59f2 Polish OSDK documentation 2024-06-09 22:55:01 +08:00
Zhang Junyang 74e4623e70 Let OSDK allow specifying additional boot drive options 2024-06-07 10:46:06 +08:00
Zhang Junyang 37e23a16a3 Bring OSDK's full support of QCOW2 booting 2024-06-07 10:46:06 +08:00
Zhang Junyang 03a39c94ca Refactor the representation of page metadata 2024-06-03 22:16:02 +08:00
Jianfeng Jiang 6c34db52b3 Bump only package version in Cargo.toml 2024-06-01 20:13:03 +08:00
Chen Chengjun c02eacd50c Use deny(unsafe_code) instead of forbid(unsafe_code) 2024-05-31 16:05:58 +08:00
skpupil da3e279ac6 Increase memory size and change boot mode in CI 2024-05-31 15:19:17 +08:00
Zhang Junyang f581ebdd03 Add workarounds for slow `memcpy` 2024-05-28 22:35:25 +08:00
Zhang Junyang 8e874e6a88 Let OSDK print source lines of the panic stack trace 2024-05-23 12:37:57 +08:00
Zhang Junyang f420286920 Make stripping ELF optional for QEMU direct boot 2024-05-23 12:37:57 +08:00
Jianfeng Jiang 32b1fb3723 Fix OSDK CI bugs & Build OSDK with stable channel in CI 2024-05-23 12:32:25 +08:00
Jianfeng Jiang 07fbbcfd8c Add syscall clone3 2024-05-21 19:22:13 +08:00
YanWQ-monad ccc4e6ec6b Move whole kernel ELF to VMA 2024-05-15 21:31:09 +08:00
Jianfeng Jiang 7a82132ecc Bump version in the documentation 2024-05-10 10:47:53 +08:00
Zhang Junyang 57f4ed778d Update proper dep for builder in OSDK and allow publishing 2024-05-08 15:41:32 +08:00
Zhang Junyang ee740020d0 Use `clone_from` in OSDK instead of assigning clones 2024-05-06 12:19:16 +08:00
Zhang Junyang cc4111cab2 Remove the vars mechanism in OSDK and polish documents 2024-04-25 09:44:46 +08:00
Zhang Junyang 56175f63df Re-implement OSDK debugging fixes and other facilities upon the refactor
This commit bring back the features introduced from d28292c to a52e432:
 - Disable KVM when using GDB;
 - Update docs about the GDB server address;
 - Add `config` option for `CargoArgs` in OSDK;
 - Ensure debug info added when debugging in the release profile.
2024-04-25 09:44:46 +08:00
Zhang Junyang f9ac2ee498 Fix OSDK feature selection 2024-04-25 09:44:46 +08:00
Zhang Junyang e4c2151566 Implement the next OSDK 2024-04-25 09:44:46 +08:00
Zhang Junyang 79bdbbe4f9 Enable the rust-analyzer for OSDK 2024-04-25 09:44:46 +08:00
Zhang Junyang 3dce753c86 Multiple ways to specify OSDK new's type 2024-04-25 09:44:46 +08:00
Zhang Junyang 33c53dcf2b Overhaul OSDK 2024-04-25 09:44:46 +08:00
Zhang Junyang 735d7b7b11 Prepare OSDK for multi arch support and the upcoming refactor 2024-04-25 09:44:46 +08:00
fgh1999 d28292cec4 Add debuginfo when using GDB in release profile 2024-04-22 15:21:07 +08:00
fgh1999 94550dd5c6 Add `config` option for `CargoArgs` 2024-04-22 15:21:07 +08:00
fgh1999 a52e43218e Disable KVM when using GDB 2024-04-22 15:21:07 +08:00
Ruihan Li 3c31ec35cf Fix empty backtraces when panicking 2024-04-03 08:20:15 +08:00
Ruihan Li 198363c2d3 Speed up stack unwinding 2024-04-03 08:17:58 +08:00
Zhang Junyang 6dec96c7e1 Respond to Cargo metadata format change 2024-04-01 20:17:48 +08:00
fgh1999 6ab6648b33 Bump version to 0.4.2
Add GDB in OSDK Dockerfile
2024-04-01 17:26:49 +08:00
fgh1999 1d5744ae80 Add unit test for OSDK debug functions 2024-04-01 17:26:49 +08:00
fgh1999 e616eb3a4c Add unix sockets for QEMU GDB in OSDK `run` command 2024-04-01 17:26:49 +08:00
fgh1999 28127850aa Add debug subcommand in OSDK 2024-04-01 17:26:49 +08:00
fgh1999 5fd3b1bc2f Support GDB server for `cargo osdk run`
Feature: generate launch config for debugging via VS Code.
2024-04-01 17:26:49 +08:00
Jianfeng Jiang 223e8c2fe5 Update the asterinas version used by OSDK 2024-03-27 14:45:31 +08:00
Ruihan Li 55054f4835 Enable RTC explicitly in MircoVM machine 2024-03-23 09:32:18 +08:00
Jianfeng Jiang 5941d3e6eb Fix format errors 2024-03-22 15:01:18 +08:00
Jianfeng Jiang 63499c675c Add OSDK demos in Asterinas Book in OSDK integration test 2024-03-22 10:39:23 +08:00
Jianfeng Jiang 11ff0521e7 Add `--release` option for OSDK 2024-03-22 10:39:23 +08:00
Jianfeng Jiang c7383ef23d Check OSDK crate when running `make check` 2024-03-22 10:39:23 +08:00
Jianfeng Jiang 951b2f98dd Run OSDK tests in host environment 2024-03-22 10:39:23 +08:00
Jianfeng Jiang aaf101a53e Supporting running OSDK commands in workspace root 2024-03-22 10:39:23 +08:00
Ruihan Li 60cd65d837 Install `clang-format` in the Docker container 2024-03-18 11:20:46 +08:00
Zhang Junyang 160cb9cdb5 Make OSDK wrapped commands unified and fix make docs 2024-03-17 19:12:33 +08:00
Jianfeng Jiang 853e475d29 Add rustfmt.toml for OSDK 2024-03-01 13:42:51 +08:00