frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

QEMU 10.1.0

https://wiki.qemu.org/ChangeLog/10.1
121•dmitrijbelikov•2h ago

Comments

Havoc•2h ago
Their website appears to be broken?

>(Cannot access the database)

_joel•2h ago
WFM
dijit•2h ago
QEMU is truly excellent software, from the perspective of a person who very rarely needs to emulate another architecture. It "just works" and has wonderful integrations with basically everything I could want.. sometimes it feels like magic: even if the commandline UX is a bit weird in places.

I've always wondered though how it works with KVM: I know KVM is a virtualisation accelerator that enables passing through native code to the CPU somehow; but it feels like QEMU/KVM basically runs the internet now. Almost the entire modern cloud is built on QEMU and KVM as a hypervisor (right?) but I feel like I'm missing a lot about how it's working.

I also wonder if this steals huge amounts of resources away from emulation, or does it end up helping out. Because to say the modern internet is largely running on QEMU is likely a massive understatement.

lathiat•2h ago
Not everything uses qemu. Some do. More use KVM. Not everything does.

Example: https://firecracker-microvm.github.io/

jamesy0ung•2h ago
Yeah I also found myself curious as to how KVM actually works, I found these helpful

https://www.kernel.org/doc/ols/2007/ols2007v1-pages-225-230.... http://www.haifux.org/lectures/312/High-Level%20Introduction... https://zserge.com/posts/kvm/

dijit•2h ago
Awesome, thanks for the entrypoint!
penguin_booze•23m ago
Excellent. I haven't gone through them yet, but if you've any similar pointers for QEMU, please share.

My rough understanding is that it's the user-space emulation part of a virtualization solution. I.e., when the kernel traps the virtualized process, saying 'nope, you can't do that here', the control falls back to user space handler in QEMU saying, 'hey, the kernel said I can't do that there; can you sort this out?'. And this back-and-forth games keeps happening during the lifetime of the virtualized process.

pm215•2h ago
Resources-wise there's not really any "stealing" going on. The people/companies who care about KVM and the virtualization use cases work on that, and the people/companies who care about emulation work on those parts. If QEMU didn't support virtualization then it's not like the people currently working on QEMU virtualization would shift over to emulation support: they'd be working on some other project instead to achieve their VM goals.
monocasa•2h ago
KVM is basically three components.

* An abstraction over second level page tables to map some of a host user process as what the guest thinks of as physical memory.

* An abstraction to jump into the context that uses those page tables, and traps back out in the case of anything that the hardware would normally handle, but the hypervisor wants to handle manually instead.

* A collection of mechanisms to handle some of those traps in kernel space to avoid having to context switch back out to the host user process if the kind of trap is common enough, both in the sense of the trap itself happens often enough to show up on perf graphs, as well as the abstraction being exercised is relatively standard (think interrupt controllers and timers).

Let me know if you have any other questions.

eddd-ddde•1h ago
Where could someone get started in terms of reading material to learn more about this in depth?
dysoco•36m ago
I would assume sooner or later you're going to end up in the Intel Developer manuals or the equivalent for whatever architecture you are interested in. The Intel ones are very complete at least.
znpy•21m ago
> I would assume sooner or later you're going to end up in the Intel Developer manuals or the equivalent for whatever architecture you are interested in. The Intel ones are very complete at least.

I can vouch for this. I'm no virtualization expert but I did stumble upon some intel developers manuals (truthfully, i fell into the rabbit hole) and just skimming it made everything make much more sense.

For example: https://www.intel.com/content/dam/www/public/us/en/documents... - "CHAPTER 23 INTRODUCTION TO VIRTUAL MACHINE EXTENSIONS"

The link above explains how the VMX extension work on intel processors. Any software doing hardware-assisted virtualization (so no binary translation, no full-system-emulation) will likely be using those instructions.

dizhn•1h ago
qemu/kvm in enabling the cloud is huge but that's not the only place it really makes a tremendous difference. One example where it's essential is new OS development. They all basically first target the qemu machine with its virtual hardware. It makes development much faster compared to running on real hardawre while easily enabling debug output without needing cables and the like.
hnlmorg•1h ago
Xen is still used massively too.
teekert•52m ago
If you use it rarely, I can high recommend the excellent QuickEMU [0]

Any VM is just a `quickget ubuntu 24.04` and `quickemu --vm ubuntu-24.04.conf` away. The conf file is just a yaml that is very readable and can give you more cores/ram/disk easily. Just run `quickget` to get a list of OS's to download.

[0] https://github.com/quickemu-project/quickemu

stinkbeetle•50m ago
> I've always wondered though how it works with KVM

Other people have given some more comprehensive explanations, but I'll try to put it as simply as possible.

Plain QEMU has a CPU emulation layer called TCG. The machine basically consists of memory (RAM and MMIO devices) and CPUs (CPU registers and state). When QEMU has set up the machine and is ready to run, it calls TCG to say "given this memory and this initial CPU register state, start running instructions". When you use QEMU with KVM, the TCG emulation layer is swapped out with KVM and it asks KVM to start running instructions. That's it. KVM exposes APIs that caller can specify guest memory and initial CPU register state, and a call to run that CPU with that memory.

Going a bit further, the hardware virtualization functions that KVM uses have the ability to map that memory with a second level of translation which lets KVM present it to the guest at the locations it expects, and to prevent the guest from accessing any memory that it should not. The hardware also has the ability to run the CPU in a mode where it has the normal set of registers (which is what QEMU wants), but it maintains some additional hypervisor control registers not available to the guest, and those can ensure the guest can't take complete control of the CPU (for example, the guest OS can "disable interrupts" with the usual MSR or similar bit and that does prevent the guest from getting interrupts, but that it does not disable hypervisor directed interrupts, so the hypervisor can always take back control of the CPU with a hypervisor-IPI or hypervisor timer interrupt).

Further still: when running in plain QEMU mode, devices are emulated by registering MMIO ranges in the memory address space and emulated loads and stores have code to detect these regions and instead of performing a simple load or store, they call into device model code which handles it accordingly. When you plug KVM in, you can still use these emulated devices. These are modeled by using that second level page table to put "not-valid" mappings in those MMIO ranges. These cause the CPU to trigger a page fault when it tries to access them, and KVM sees this, looks up the table of memory registered by QEMU, and sees that it is an address which QEMU wants to handle, so it returns from the KVM_RUN system call with result code that indicates there was an MMIO read/write that needs to be handled. QEMU then directs this into its emulated device model. Then when QEMU has performed that device emulation, it calls back into KVM to continue running the CPU.

It's all pretty clever. The really astounding thing is that most of the basic concepts for all this stuff were developed/discovered/invented like 50+ years ago.

osrec•2h ago
A great piece of software that makes my and my dev team's life infinitely better and easier. A big thank you to the QEMU developers :)
drzaiusx11•2h ago
> Experimental support for compiling to WASM using Emscripten.

Neat. This will unlock various online "playgrounds" for a number of CPU architectures, among other interesting use cases.

Likely this was possible beforehand, but it's nice to see it added as a feature to the project directly.

dlachausse•1h ago
If you’re on macOS or iOS, UTM is an excellent Qemu front end.

https://getutm.app/

https://mac.getutm.app/

ducktective•1h ago
Awesome tech!

It's not possible to run an android VM on QEMU right? As in, is it officially supported? (I know about Waydroid)

homebrewer•54m ago
The official Android "emulator" supplied by Google is qemu. If you're not satisfied with it for some reason, IIRC I used these images some years ago on top of vanilla qemu:

https://www.fosshub.com/Android-x86.html

They don't seem to be well supported anymore, and there aren't many prebuilt alternatives. One can always compile AOSP from source, though Google does not make this easy.

epilys•50m ago
Yes, it's possible and supported. QEMU can emulate an aarch64 system, and Google provides aarch64 Android builds for virtual machines specifically, called "Cuttlefish". Search for keywords "Android Cuttlefish QEMU" for instructions.
xhrpost•11m ago
Didn't realize there was a MIPS build of Windows NT. Which led me to wikipedia to find there were a lot of other architectures supported in the past.

Monodraw

https://monodraw.helftone.com/
253•mafro•2h ago•82 comments

Nx compromised: malware uses Claude code CLI to explore the filesystem

https://semgrep.dev/blog/2025/security-alert-nx-compromised-to-steal-wallets-and-credentials/
112•neuroo•1h ago•52 comments

The GitHub website is slow on Safari

https://github.com/orgs/community/discussions/170758
70•talboren•4h ago•40 comments

Object-oriented design patterns in C and kernel development

https://oshub.org/projects/retros-32/posts/object-oriented-design-patterns-in-osdev
29•joexbayer•1d ago•4 comments

Implementing Forth in Go and C

https://eli.thegreenplace.net/2025/implementing-forth-in-go-and-c/
8•Bogdanp•25m ago•0 comments

The Therac-25 Incident (2021)

https://thedailywtf.com/articles/the-therac-25-incident
236•lemper•6h ago•135 comments

Slowing down programs is surprisingly useful

https://stefan-marr.de/2025/08/how-to-slow-down-a-program/
24•todsacerdoti•2h ago•10 comments

Delphi in the Age of AI

https://learndelphi.org/delphi-ai-ultimate-guide/
41•andsoitis•3d ago•12 comments

Ember (YC F24) Is Hiring Full Stack Engineer

https://www.ycombinator.com/companies/ember/jobs/OTB0qby-full-stack-engineering-intern-summer-2026
1•charlene-wang•1h ago

WebLibre: The Privacy-Focused Browser

https://docs.weblibre.eu/
61•mnmalst•5h ago•35 comments

QEMU 10.1.0

https://wiki.qemu.org/ChangeLog/10.1
122•dmitrijbelikov•2h ago•23 comments

Claude for Chrome

https://www.anthropic.com/news/claude-for-chrome
710•davidbarker•18h ago•371 comments

ASCIIFlow

https://asciiflow.com/
6•marcodiego•1h ago•0 comments

Gemini 2.5 Flash Image

https://developers.googleblog.com/en/introducing-gemini-2-5-flash-image/
997•meetpateltech•23h ago•445 comments

Internet Access Providers Aren't Bound by DMCA Unmasking Subpoenas–In Re Cox

https://blog.ericgoldman.org/archives/2025/08/internet-access-providers-arent-bound-by-dmca-unmas...
30•hn_acker•2d ago•6 comments

Bluesky now platform of choice for science community

https://arstechnica.com/science/2025/08/more-scientists-choose-bluesky-over-twitter/
12•carride•16m ago•1 comments

F-35 pilot held 50-minute airborne conference call with engineers before crash

https://www.cnn.com/2025/08/27/us/alaska-f-35-crash-accident-report-hnk-ml
85•Michelangelo11•2h ago•91 comments

SpaceX's giant Starship Mars rocket nails critical 10th test flight

https://www.space.com/space-exploration/private-spaceflight/spacex-launches-starship-flight-10-cr...
22•mpweiher•43m ago•2 comments

Word documents will be saved to the cloud automatically on Windows going forward

https://www.ghacks.net/2025/08/27/your-word-documents-will-be-saved-to-the-cloud-automatically-on...
122•speckx•3h ago•88 comments

Malleable Software Will Eat the SaaS World

https://www.mdubakov.me/malleable-software-will-eat-the-saas-world/
50•tablet•5h ago•54 comments

Dissecting the Apple M1 GPU, the end

https://rosenzweig.io/blog/asahi-gpu-part-n.html
590•alsetmusic•12h ago•122 comments

Show HN: FilterQL – A tiny query language for filtering structured data

https://github.com/adamhl8/filterql
28•genshii•2d ago•9 comments

Molluscs of the Multiverse: molluscan diversity in Magic: The Gathering

https://jgeekstudies.org/2025/08/24/molluscs-of-the-multiverse-molluscan-diversity-in-magic-the-g...
24•zdw•2d ago•9 comments

Light pollution prolongs avian activity

https://gizmodo.com/birds-across-the-world-are-singing-all-day-for-a-disturbing-reason-2000646257
89•gmays•4d ago•18 comments

Rv, a new kind of Ruby management tool

https://andre.arko.net/2025/08/25/rv-a-new-kind-of-ruby-management-tool/
285•steveklabnik•1d ago•104 comments

GNU Artanis – A fast web application framework for Scheme

https://artanis.dev/index.html
234•smartmic•17h ago•58 comments

The “Wow!” signal was likely from extraterrestrial source, and more powerful

https://www.iflscience.com/the-wow-signal-was-likely-from-an-extraterrestrial-source-and-more-pow...
151•toss1•15h ago•164 comments

Chinese astronauts make rocket fuel and oxygen in space

https://www.livescience.com/space/space-exploration/chinese-astronauts-make-rocket-fuel-and-oxyge...
262•Teever•2d ago•113 comments

The man with a Home Computer (1967) [video]

https://www.youtube.com/watch?v=w6Ka42eyudA
58•smarm•8h ago•29 comments

First absolute superconducting switch developed in a magnetic device

https://phys.org/news/2025-08-absolute-superconducting-magnetic-device.html
4•warrenm•1d ago•0 comments