Skip to content

Commit d3314c2

Browse files
authored
Merge pull request #76 from rust-osdev/next
This Month in Rust OSDev (November 2021)
2 parents 55e9558 + a1c4992 commit d3314c2

File tree

1 file changed

+117
-0
lines changed

1 file changed

+117
-0
lines changed

content/this-month/2021-11/index.md

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
+++
2+
title = "This Month in Rust OSDev (November 2021)"
3+
date = 2021-12-06
4+
5+
[extra]
6+
month = "November 2021"
7+
authors = [
8+
"phil-opp",
9+
# add yourself here
10+
]
11+
+++
12+
13+
Welcome to a new issue of _"This Month in Rust OSDev"_. In these posts, we give a regular overview of notable changes in the Rust operating system development ecosystem.
14+
15+
<!-- more -->
16+
17+
This series is openly developed [on GitHub](https://github.com/rust-osdev/homepage/). Feel free to open pull requests there with content you would like to see in the next issue. If you find some issues on this page, please report them by [creating an issue](https://github.com/rust-osdev/homepage/issues/new) or using our [_comment form_](#comment-form) at the bottom of this page.
18+
19+
<!--
20+
This is a draft for the upcoming "This Month in Rust OSDev (November 2021)" post.
21+
Feel free to create pull requests against the `next` branch to add your
22+
content here.
23+
Please take a look at the past posts on https://rust-osdev.com/ to see the
24+
general structure of these posts.
25+
-->
26+
27+
## Project Updates
28+
29+
In this section, we give an overview of notable changes to the projects hosted under the [`rust-osdev`] organization.
30+
31+
[`rust-osdev`]: https://github.com/rust-osdev/about
32+
33+
### [`uefi-rs`](https://github.com/rust-osdev/uefi-rs)
34+
35+
The `uefi` crate provides safe and performant wrappers for [UEFI](https://en.wikipedia.org/wiki/Unified_Extensible_Firmware_Interface), the successor to the BIOS.
36+
37+
We merged the following PRs this month:
38+
39+
- [loaded_image: document size argument unit](https://github.com/rust-osdev/uefi-rs/pull/308)
40+
- [Revert "Temporarily disable a false-positive clippy lint"](https://github.com/rust-osdev/uefi-rs/pull/312)
41+
- [Fix `locate_device_path` impl argument pointer](https://github.com/rust-osdev/uefi-rs/pull/310)
42+
- [Change `Handle` representation to be non-nullable so that `Option<Handle>` is FFI-safe](https://github.com/rust-osdev/uefi-rs/pull/309)
43+
- [Improve `Handle` buffer handling code](https://github.com/rust-osdev/uefi-rs/pull/314)
44+
- [Add `CStr16::from_str_with_buf`](https://github.com/rust-osdev/uefi-rs/pull/291)
45+
- [Update and reorganize documentation](https://github.com/rust-osdev/uefi-rs/pull/315)
46+
- [Add flag to `build.py` for disabling KVM](https://github.com/rust-osdev/uefi-rs/pull/316)
47+
48+
Thanks to [@necauqua](https://github.com/necauqua) and [@baloo](https://github.com/baloo) for their contributions!
49+
50+
### [`x86_64`](https://github.com/rust-osdev/x86_64)
51+
52+
The `x86_64` crate provides various abstractions for `x86_64` systems, including wrappers for CPU instructions, access to processor-specific registers, and abstraction types for architecture-specific structures such as page tables and descriptor tables.
53+
54+
In November, [@Freax13](https://github.com/Freax13) joined our `x86_64` maintenance team after doing [a lot of great work](https://github.com/rust-osdev/x86_64/pulls?q=is%3Apr+is%3Aclosed+author%3AFreax13) on the crate. Welcome!
55+
56+
We merged the following non-breaking changes this month:
57+
58+
- [Add `set_general_handler` macro](https://github.com/rust-osdev/x86_64/pull/285)
59+
- [Add the VMM Communication Exception (`#VC`) to the `InterruptDescriptorTable`](https://github.com/rust-osdev/x86_64/pull/313)
60+
- [Derive common traits for number, range and enum types](https://github.com/rust-osdev/x86_64/pull/315)
61+
- [Remove redundant alignment check](https://github.com/rust-osdev/x86_64/pull/314)
62+
- [fix(idt): fix panic messages for index and `#VC`](https://github.com/rust-osdev/x86_64/pull/321)
63+
64+
We also merged a number of breaking changes that will go into the [upcoming 0.15 release](https://github.com/rust-osdev/x86_64/issues/262):
65+
66+
- [Implement `Index<u8>` for IDT instead of `Index<usize>`](https://github.com/rust-osdev/x86_64/pull/319)
67+
- [Fix memory safety of `load_tss` and `GlobalDescriptorTable`](https://github.com/rust-osdev/x86_64/pull/323)
68+
- [Change type of `InterruptStackFrameValue::cpu_flags` to `RFlags`](https://github.com/rust-osdev/x86_64/pull/324)
69+
- [Add `InvalidStarSegmentSelectors` error type](https://github.com/rust-osdev/x86_64/pull/317)
70+
- [Add `PcidTooBig` error](https://github.com/rust-osdev/x86_64/pull/316)
71+
- [Activate `feature(asm_const)`](https://github.com/rust-osdev/x86_64/pull/320)
72+
73+
Thanks to [@Freax13](https://github.com/Freax13), [@haraldh](https://github.com/haraldh), and [@mpajkowski](https://github.com/mpajkowski) for their contributions!
74+
75+
## Call for Participation
76+
77+
Want to contribute to a Rust OSDev project, but don't know where to start? Pick up one of these outstanding
78+
issues in one of our projects and get started!
79+
80+
<!--
81+
Please use the following template for adding items:
82+
- [(`repo_name`) Issue Description](https://example.com/link-to-issue)
83+
-->
84+
85+
<span class="gray">
86+
87+
_No tasks were proposed for this section._
88+
89+
</span>
90+
91+
If you maintain a Rust project related to operating system development and are looking for contributors, especially for tasks suited to people getting started in this space, please [create a PR](https://github.com/rust-osdev/homepage/pulls) against the `next` branch with the tasks you want to include in the next issue.
92+
93+
## Personal Projects
94+
95+
In this section, we describe updates to personal projects that are not directly related to the `rust-osdev` organization. Feel free to [create a pull request](https://github.com/rust-osdev/homepage/pulls) with the updates of your OS project for the next post.
96+
97+
### [`metta-systems/vesper`](https://github.com/metta-systems/vesper)
98+
99+
<span class="gray">(Section written by [@berkus](https://github.com/berkus))</span>
100+
101+
Vesper is a capability-based single-address-space exokernel. This means it is aiming to be small, to provide only isolation primitives; at the same time SAS makes it a lot easier to perform cross-process operations (because all addresses are the same across all processes). It uses capabilities to provide security for such operations, so that unauthorized processes will not be able to intervene in legitimate traffic.
102+
103+
It's in very early stages of development and is a basis for a larger envisioned system. The progress is fairly slow, only allowed as my available time permits. This month to motivate me to move it faster I've decided to start posting monthly development updates. The first post is about the tools I use.
104+
105+
Since [rebooting to Rust](https://metta.systems/blog/reboot-to-rust/) almost 4 years ago I've been constantly amazed by the language ecosystem and what wonders are possible. This time I want to tell about incredible tooling that makes my OSdev experience a sunny warm place in contrast to the barren lands of my previous OSdev environments. [Read the full article here](https://metta.systems/blog/osdev-tooling/).
106+
107+
### [`phil-opp/blog_os`](https://github.com/phil-opp/blog_os)
108+
109+
<span class="gray">(Section written by [@phil-opp](https://github.com/phil-opp))</span>
110+
111+
There were no visible changes to the [_Writing an OS in Rust_](https://os.phil-opp.com/) series this month, but I continued working on the new build system for the upcoming third edition. One particular change that I want to highlight is that I redesigned the configuration of the `bootloader` crate. Instead of passing it via [a `package.metadata.bootloader` section](https://docs.rs/bootloader/0.10.9/bootloader/struct.Config.html) in the kernel's `Cargo.toml`, users will pass a configuration struct to the [`entry_point`](https://docs.rs/bootloader/0.10.9/bootloader/macro.entry_point.html) macro. This struct is then serialized at compile time into a separate section in the ELF executable, which the bootloader can then read on loading. This change should make the build process easier and more flexible.
112+
113+
I plan to simplify the build system further, but I'm currently waiting on some upcoming `cargo` features for that. In particular, I think that [_artifact dependencies_](https://github.com/rust-lang/cargo/pull/9992) and [_per-packet configuration_](https://internals.rust-lang.org/t/proposal-move-some-cargo-config-settings-to-cargo-toml/13336) options will be very useful for the project, especially the config options I mentioned in my [status update comment](https://github.com/phil-opp/blog_os/issues/1063#issuecomment-968341112) on GitHub.
114+
115+
## Join Us?
116+
117+
Are you interested in Rust-based operating system development? Our `rust-osdev` organization is always open to new members and new projects. Just let us know if you want to join! A good way for getting in touch is our [gitter channel](https://gitter.im/rust-osdev/Lobby).

0 commit comments

Comments
 (0)