Unable to run qemu [TCG doesn't support requested feature: CPUID.01H:ECX.x2apic [bit 21]]
The module affected
QEMU
What is the action to reproduce the bug?
runqemu qemux86-64 qemuparams="-nographic" oniro-image-base wic ovmf slirp
What is the result you see?
runqemu - INFO - Continuing with the following parameters:
MACHINE: [qemux86-64]
FSTYPE: [wic]
ROOTFS: [/home/kalpa/oniroproject/build-oniro-linux/tmp/deploy/images/qemux86-64/oniro-image-base-qemux86-64.wic]
OVMF: ['/home/kalpa/oniroproject/build-oniro-linux/tmp/deploy/images/qemux86-64/ovmf.qcow2']
CONFFILE: [/home/kalpa/oniroproject/build-oniro-linux/tmp/deploy/images/qemux86-64/oniro-image-base-qemux86-64.qemuboot.conf]
runqemu - INFO - Network configuration: ip=dhcp
runqemu - INFO - Port forward: hostfwd=tcp::2222-:22 hostfwd=tcp::2323-:23
runqemu - INFO - Using scsi drive
runqemu - INFO - Running /home/kalpa/oniroproject/build-oniro-linux/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-x86_64 -device virtio-net-pci,netdev=net0,mac=52:54:00:12:35:02 -netdev user,id=net0,hostfwd=tcp::2222-:22,hostfwd=tcp::2323-:23,tftp=/home/kalpa/oniroproject/build-oniro-linux/tmp/deploy/images/qemux86-64 -object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0 -drive if=none,id=hd,file=/home/kalpa/oniroproject/build-oniro-linux/tmp/deploy/images/qemux86-64/oniro-image-base-qemux86-64.wic,format=raw -device virtio-scsi-pci,id=scsi -device scsi-hd,drive=hd,bootindex=0 -usb -device usb-tablet -drive if=pflash,format=qcow2,file=/home/kalpa/oniroproject/build-oniro-linux/tmp/deploy/images/qemux86-64/ovmf.qcow2 -cpu IvyBridge -machine q35 -smp 4 -m 256 -nographic -serial mon:vc -serial null -device virtio-vga -display sdl,show-cursor=on
runqemu - ERROR - Failed to run qemu: qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.x2apic [bit 21]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.tsc-deadline [bit 24]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.f16c [bit 29]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.x2apic [bit 21]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.tsc-deadline [bit 24]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.f16c [bit 29]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.x2apic [bit 21]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.tsc-deadline [bit 24]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.f16c [bit 29]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.x2apic [bit 21]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.tsc-deadline [bit 24]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.f16c [bit 29]
Could not initialize SDL(x11 not available) - exiting
runqemu - INFO - Cleaning up
What is the result you expect?
QEMU run correctly
Frequency?
always
Tested version
oniro-image-base
Do you know any workaround of this issue?
Do you have a fix for this issue?
Edited by Luca Favaretto