Conversation

Thorsten Leemhuis (acct. 1/4)

The support in the is now officially a first class citizen and not considered experimental any more:

https://git.kernel.org/torvalds/c/9fa7153c31a3e5fe578b83d23bc9f185fde115da; for more details, see also: https://lwn.net/Articles/1050174/

This is one of the highlights from the main for 7.0 that was merged a few hours ago ; for others, see https://git.kernel.org/torvalds/c/a9aabb3b839aba094ed80861054993785c61462c

2
18
1
@kernellogger Not as many may know this but QEMU also has a nice Rust integration these days.

I implemented a feature for integrated TPM chip emulations in QEMU, and have a profile for Infienon SLB 9672 in progress. It's a half-C-half-Rust feature and so far progress has been smooth. VM sees my chip etc. and the developer experience has been surprisingly smooth :-)
1
0
7

2/ FWIW, one more important quote[1] from the commit[2] which made support in the a first class citizen a few hours ago:

""[…] is here to stay.

I hope this signals commitment from the kernel to companies and other entities to invest more into it, e.g. into giving time to their kernel developers to train themselves in Rust. […]""

[1] that likely should have been in the initial post – uhhps 🥴

[2] https://git.kernel.org/torvalds/c/9fa7153c31a3e5fe578b83d23bc9f185fde115da

0
1
0

Thorsten Leemhuis (acct. 1/4)

Edited 14 days ago

@jarkko yeah, a lot of great stuff seems to be happening there. There were a few "rust in qemu – state of the union"-like posts iirc, maybe I should check if a new one was published recently.

[Update] there indeed is one: https://www.mail-archive.com/qemu-devel@nongnu.org/msg1164668.html ]

1
0
1
@kernellogger For TPM2 type of devices having Rust to manage emulation is quite essential given the combination of structural complexity and cryptography in the binary protocol.

I could imagine that Rust could be also a great angle to deliver confidential computing opcodes for QEMU.
1
0
1
@kernellogger I was thinking first to give a shot with SGX because I know the opcodes really well but since I have already this crate [1] and TPM2 affects my life more than SGX ATM, let's try that at first :-)

[1] https://crates.io/crates/tpm2-protocol
0
0
0