←back to thread

395 points wrycoder | 1 comments | | HN request time: 0s | source
Show context
synergy20 ◴[] No.41084355[source]
qemu is a good way to experience with kernel hacking

Hopefully someone can update the LDD(linux device driver) and Linux kernel books. In fact Linux Foundation should sponsor such efforts since technical book like this is hard to make any profit.

replies(5): >>41084982 #>>41085046 #>>41085320 #>>41085893 #>>41087046 #
commandersaki ◴[] No.41085046[source]
The wireguard test suite that’s now in the kernel is an excellent way to experiment with using qemu to develop kernel modules and also do automated tests.

I’d link but cumbersome to find on phone.

replies(1): >>41086646 #
synergy20 ◴[] No.41086646[source]
do you mean this one: https://git.zx2c4.com/wireguard-linux/tree/tools/testing/sel...

there are only 3 files under drivers/net/wireguard/selftest and no qemu there in linux kernel git

    allowedips.c  counter.c  ratelimiter.c
replies(1): >>41091339 #
1. commandersaki ◴[] No.41091339[source]
Yes, but it's hard to find in the kernel:

https://github.com/torvalds/linux/tree/5437f30d3458ad36e83ab...