-
[read more]
Recently, while working on Docker VMM, I was investigating memory usage when sharing a large folder with a VM over virtio-fs. The file-sharing server runs on the host.
After running
findacross the folder and dropping the guest’s caches, the host process was still holding more memory than before the walk. -
[read more]
I was looking through an old notebook and found a page that was clearly trying to make sense of how I felt about writing code and how quickly it has changed.
The title on the page was “Why is writing code boring?”
For the record, I don’t actually think it’s boring. It’s just changed.
I don’t generally hold strong opinions, it’s too tiresome… and I’m mostly wrong anyway. But the speed of this change has been incredible and kind of scary.
-
[read more]
Before looking into Windows file permissions, I thought to myself: how hard can checking a box in a file’s properties be?
But what actually happens when a program tries to open that file? Where does Windows look, and how does it decide whether to let us in?
For this post, I’m looking at the discretionary access control list, or DACL, and how Windows checks its entries when we request access to a file.
-
[read more]
After writing the last post, I started to think about memory. Where does it actually live and what does physical mean when thinking about a virtual machine?
-
[read more]
I get to work on a lot of cool things at Docker. Recently, my focus has been on the new Docker VMM, the virtual machine manager that powers Docker Sandboxes and is also available in Docker Desktop (beta).
Agentic workflows have made it much easier to dig deep into machine internals. But I think it’s important to take a step back sometimes and understand what’s actually happening in the dungeons of your code.
In this post, we’ll look at how we interact with a virtual CPU through Windows Hypervisor Platform (WHP): setting its initial state, running guest instructions, and handling execution when control returns to us.
The example targets x64 Windows with Windows Hypervisor Platform enabled. The snippets use the Rust
windowscrate with theWin32_System_HypervisorandWin32_System_Memoryfeatures. They show the key steps in order, with the surrounding function,unsafeblocks and final resource cleanup omitted for brevity.