Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Bend 2 and the Vibe-Coding Trap(liampwll.com ↗)
    73comments
  2. OpenJev(openjev.com ↗)
    139comments
  3. ZCode, the GLM coding agent, silently uploads your Git history(tokenstead.ai ↗)
    35comments
  4. I don't like passkeys(hawksley.dev ↗)
    106comments
  5. An Empirical Study of Harness Design for Coding Agents(arxiv.org ↗)
    discuss
  6. Subnormal floating-point numbers are expensive on Intel processors(lemire.me ↗)
    12comments
  7. Jemalloc 5.4.0(github.com/jemalloc ↗)
    57comments
  8. Microsoft exec called AI scraping 'the largest theft of labor in human history'(techcrunch.com ↗)
    325comments
  9. Cekura (YC F24) Is Hiring(ycombinator.com ↗)
    discuss
  10. The Shadows Lurking in the Equations – Underwater Islands(gods.art ↗)
    discuss
  11. The scourge of x86 emulation(fex-emu.com ↗)
    47comments
  12. Warren Buffett Steps Down as Berkshire Chairman, Names Son to Replace Him(nytimes.com ↗)
    62comments
  13. Replacing Pull Requests with Delta(zed.dev ↗)
    27comments
  14. Bonsai 2 27B: Near-Lossless Compression in a 9x Smaller Footprint(prismml.com ↗)
    155comments
  15. Astra for Law(openai.com ↗)
    629comments
  16. Bend – A language that blocks AI mistakes via proof, on CPU and GPU(bend-lang.com ↗)
    249comments
  17. Qwen 3.8 Omni Flash(qwen.ai ↗)
    97comments
  18. Hister: A private search engine for the pages you visit and the files you keep(github.com/asciimoo ↗)
    173comments
  19. Wax motor(wikipedia.org ↗)
    78comments
  20. When the fractional part of a float fixes your shader(crocidb.com ↗)
    10comments
  21. Fujitsu launches made-in-Japan next-generation CPU FUJITSU-MONAKA(global.fujitsu ↗)
    239comments
  22. Pre-Greek: The lost language hidden within Ancient Greek(linguisticdiscovery.com ↗)
    52comments
  23. How to Write with an LLM(sockpuppet.org ↗)
    146comments
  24. A heap overflow and SSO misconfiguration to compromise OpenAI internal repos(hacktron.ai ↗)
    165comments
  25. Dr Julius Neubronner's Miniature Pigeon Camera(publicdomainreview.org ↗)
    discuss
  26. Shapelearn Qwen 3.8 27B (13.1 GB VRAM)(byteshape.com ↗)
    21comments
  27. Ask A Monk – A digital wilderness for thoughts with no immediate answer(askamonk.online ↗)
    28comments
  28. Flet 1.0 – Build cross-platform apps in Python(flet.dev ↗)
    73comments
  29. Telstra outage: The night a network decided the year was 2006(netnod.se ↗)
    30comments
  30. Diplodocus, Long Thought Exclusively American, Turns Up in Spain(sci.news ↗)
    48comments

Multi-threaded emulation for QEMU

92 pointsby 9y agolwn.net
9 comments
9y agoHN ↗

For some reason I thought the reason that this hadn't been implemented already was that Sony had patents on multithreaded binary translation. I guess those might have only applied to specific techniques for heterogeneous or ring-bus systems (i.e. Cell), though.

9y agoHN ↗

No, it's just that it's the kind of feature that's quite hard to retrofit to an existing design, since it breaks existing assumptions in a lot of places. And it's only relatively recently that the kind of embedded board that you usually want to emulate with QEMU has had a multi-core CPU.

9y agoHN ↗

This has recently landed in upstream qemu and will be available with the 2.9 release.

9y agoHN ↗

Some bugs are being found that affect single-vCPU emulation. There's still a possibility that it will be reverted before the release.

9y agoHN ↗

does this mean one could run (without hardware support, say in aws) smp virtualization? i.e. linux on linux or windows on linux (why not just spawn another machine? because you want to have more control than what aws provides)

9y agoHN ↗

This allows you to create one host thread per guest vcpu, so yes, you can run a smp guest on aws. But, it will be pretty slow compared to KVM, since the execution of the threads is limited by the host cpu resources and the fact that you are using translation and full system emulation.

9y agoHN ↗

so I guess that means QEMU always does full translation instead of just translating the privileged ops? (ala what vmware's innovation back in the day was)

9y agoHN ↗

It means that you can run SMP guest on SMP system and use more than one host core for that. You could run SMP guests before, but they were limited to only one host thread.