Commit Graph

111 Commits

Author SHA1 Message Date
ffc717f00b Enable handling page fault around 2024-08-28 11:04:03 +08:00
0c01590981 Let jump in pagetable cursor return Result 2024-08-28 11:04:03 +08:00
a2778e66f3 Bump version to 0.8.1 2024-08-27 22:13:38 +08:00
47be0a909b Schedule tasks to APs in aster-nix 2024-08-27 17:22:47 +08:00
5feb8f5de8 Refactor the boot PT initialization for SMP 2024-08-27 17:22:47 +08:00
e04fa6c69d Handle VmSpace's multi-CPU activation 2024-08-27 17:22:47 +08:00
cf4aee0061 A panic unwind print lock 2024-08-27 17:22:47 +08:00
c9347e59f4 Fix the preempt info on APs 2024-08-27 17:22:47 +08:00
aeba7bec52 Fix SoftIRQ initialization requirements for SMP 2024-08-27 17:22:47 +08:00
86f09eef75 Fix all spelling mistakes in history by typos tool 2024-08-27 12:19:48 +08:00
32a1a53ee7 Enable check of atomic mode 2024-08-26 10:23:25 +08:00
54cbacb2ff Replace the CpuLocal's borrow* APIs with get_with 2024-08-25 20:14:06 +08:00
f7a9510be0 Refactor the this_cpu API with PinCurrentCpu 2024-08-25 20:14:06 +08:00
9a94ba23aa Replace the Deref implementation of CpuLocal with get_on_cpu 2024-08-25 20:14:06 +08:00
1e24911198 Upgrade the version of bytemuck since it's yanked 2024-08-24 17:18:24 +08:00
34b3aac2e3 Bump and publish ostd-test and ostd-macros 2024-08-24 17:18:24 +08:00
e50b05d1ee Bump version to 0.8.0 2024-08-23 23:37:50 +08:00
d76c7a5b1e OSDK check and clippy with cfg(ktest) 2024-08-23 23:37:50 +08:00
be3492d7f0 Extract the OSTD test runner as a kernel 2024-08-23 23:37:50 +08:00
e555d8c616 Set the access bit when mapping a frame to the page table in userspace 2024-08-23 19:52:48 +08:00
7db9ae23a3 Make the kernel stack size configurable 2024-08-22 22:56:16 +08:00
dce796cdde Refactor all io APIs of vfs based on VmReader/VmWriter 2024-08-22 22:54:30 +08:00
e7105bb580 Prevent race condition in heap allocator 2024-08-22 12:47:34 +08:00
1833f8047e Modify Dockerfile and bump the version file 2024-08-22 09:55:19 +08:00
2102107be1 Refactor VmReader&VmWriter as given fallibility marker 2024-08-21 22:24:15 +08:00
562e644375 Clarify some safety conditions of Vm{Reader,Writer} 2024-08-21 09:34:21 +08:00
bbe43d76cc Fix compile error due to lock_irq_disabled 2024-08-19 16:52:51 +08:00
c6d381bc19 Refine documentations 2024-08-18 23:58:51 +08:00
b198794e3e Extract DMA remapping feature 2024-08-18 23:58:51 +08:00
0bf3595964 Extract IOMMU register operations 2024-08-18 23:58:51 +08:00
63b42bff73 Add register descriptions 2024-08-18 23:58:51 +08:00
7d0638958c Fix IOMMU permission check issue 2024-08-18 23:58:51 +08:00
c44447d54b Refactor the API of spinlocks 2024-08-18 21:06:40 +08:00
0c9b7c03bb Get ACPI RSDP from EFI tables if not provided in boot_params 2024-08-17 18:14:27 +08:00
19184d5c3d Remove the concept of child VMOs and clean-up VMO implementations 2024-08-16 10:45:16 +08:00
49692c2068 Fix several warnings when ktest is enabled 2024-08-16 10:43:55 +08:00
99a22ff124 Improve efficiency of global TLB flushing 2024-08-15 23:14:51 +08:00
2ab4ba11bc Refactor preemption-related code in OSTD 2024-08-15 23:06:18 +08:00
f5464e82c0 Implement new scheduling API in OSTD 2024-08-15 23:06:18 +08:00
4844e7ca7c Allow page table protectors to flush TLB entries precisely 2024-08-14 20:40:03 +08:00
9a6e1b03e3 Allow the page table un-mapper to flush the TLB precisely 2024-08-14 20:40:03 +08:00
e597a10088 Rename PageTableQueryResult to PageTableItem 2024-08-14 20:40:03 +08:00
6df0a3073c Add a comment for UserMode 2024-08-14 11:43:34 +08:00
be54a39592 Remove the preempt guard from the IRQ guard 2024-08-13 20:34:26 +08:00
491e4325fa Enable IRQs before leaving the OSTD boot routine 2024-08-13 20:34:26 +08:00
a739b3828d Use tdx-guest crate VE handler and support release mode for TDX 2024-08-10 11:21:59 +08:00
7527d20d25 Avoid generating Cmp_rm32_imm32 instruction 2024-08-10 11:21:59 +08:00
259b506119 Introduce CurrentUserSpace to provide read/write abilities for user space 2024-08-09 18:01:01 +08:00
8317c4c1e8 Rename "intel_tdx" feature to "cvm_guest" 2024-08-09 17:11:12 +08:00
ca41687a99 Use cfg_if to group tdx cfg block 2024-08-09 17:11:12 +08:00