Skip to main content

QEMU Version

verdate
Qemu 7.02020-04-30
Qemu 6.02020-04-30
Qemu 5.02020-04-29
Qemu 4.2.02019-12-13
Qemu 4.0.02019-04-24
Qemu 2.1.22018-04-24

Qemu 7.0

Qemu 6.0

  • tcg 支持 macOS ARM
  • 68k virt mahcine
  • arm
    • ARMv8.1-M Helium arch, Cortex-M55 CPU
    • ARMv8.4 TTST, SEL2, DIT
    • ARMv8.5 MemTag
    • mps3-an524, mps3-an547 board
    • xlnx-zynqmp, xlnx-versal, sbsa-ref, npcm7xx, sabrelite
  • MIPS Loongson-3 virt machine
  • virtiofs USE_KILLPRIV_V2
  • virtio-vga scaling resolution based on client window size
  • 废弃 -writeconfig - 语法参数等无法保证正确
  • -machine 新增 ACPI 选项 oem-id, oem-table-id
  • -machine x-remote, -device x-pci-proxy-dev 多进程 QEMU - 目前只支持 lsi53c895 SCSI
  • 支持将 usb 传输数据转储到文件 - 用于 wireshark 分析 - pcap=<file>

Qemu 5.2

  • x86 KVM 异步 page faults - -cpu ...,kvm-async-pf-int
    • Linux 5.8+
  • NVMe 1.3
  • SMBIOS OEM 字符串可从文件读取

Qemu 5.1

  • 2020-08-11
  • RPi 支持 USB 控制器
    • guest 添加 dwc_otg.fiq_fsm_enable=0
  • AMD X86 支持 迁移 嵌套虚拟化
  • 支持 Linux keyring 传递 secret
  • LUKS keyslot 管理
  • qcow2 支持 zstd - compression_type=zstd
  • AVR 架构
# 添加 keyslot
qemu-img amend \
--object secret,id=sec0,data=current_password \
--object secret,id=sec1,data=new_password \
--image-opts driver=luks,file.filename=test.luks,key-secret=sec0 \ #image has to be opened with --image-opts to pass current secret
-o state=active,new-secret=sec1,[keyslot=1] #keyslot is optional
# 移除
qemu-img amend \
--object secret,id=sec0,data=current_password \
--object secret,id=sec1,data=new_password \
--image-opts driver=luks,file.filename=test.luks,key-secret=sec0 \
-o state=inactive,old-secret=sec1

Qemu 5.0

  • 5.0.0 - 2020-04-29
  • virtiofsd - 映射主机目录
    • Linux 5.4 支持 VirtIO-FS
  • D-Bus QEMU 进程 Live-Migration
  • block
    • 支持压缩备份镜像
    • qemu-img measure 支持 LUKS, convert 支持跳过 zero
    • qemu-storage-daemon 支持访问存储,不需要启动 VM
# ./virtiofsd -o vhost_user_socket=/tmp/vhostqemu -o source=$TESTDIR -o cache=always

qemu-system-x86_64 -M pc -cpu host --enable-kvm -smp 2 \
-m 4G -object memory-backend-file,id=mem,size=4G,mem-path=/dev/shm,share=on -numa node,memdev=mem \
-chardev socket,id=char0,path=/tmp/vhostqemu -device vhost-user-fs-pci,queue-size=1024,chardev=char0,tag=myfs \
-chardev stdio,mux=on,id=mon -mon chardev=mon,mode=readline -device virtio-serial-pci -device virtconsole,chardev=mon -vga none -display none \
-drive if=virtio,file=rootfsimage.qcow2

mount -t virtiofs myfs /mnt

# DAX
# -device vhost-user-fs-pci,queue-size=1024,chardev=char0,tag=myfs,cache-size=2G

Qemu 4.2.0

  • 4.2.0 - 2019-12-13
  • x86
    • VMX 可通过 -cpu 启用或停用
    • microvm 使用 virtio-mmio 而不是 PCI 作为性能基线优化
    • macOS -accel hvf 稳定

Qemu 4.1.0

Qemu 4.0.0

Qemu 3.1.0

Qemu 3.0.0

Qemu 2.12

  • Initial support for Raspberry Pi 3 machine model
  • Experimental support for two new virtualization accelerators: Apple's Hypervisor.framework ("-accel hvf") and Microsoft's Windows Hypervisor Platform Extensions ("-accel whpx")
  • -nic 取代 -net 参数
    • -nic user -> -net nic -net user
  • ChangeLog/2.12