With TCG, I got this:
Code: Select all
qemu-system-x86_64 -m 32 -d guest_errors -hda bin/disk.dd -cpu IvyBridge,+x2apic -monitor stdio
QEMU 2.8.50 monitor - type 'help' for more information
(qemu) warning: TCG doesn't support requested feature: CPUID.01H:ECX.x2apic [bit 21]
Code: Select all
qemu-system-x86_64 -m 32 -d guest_errors -hda bin/disk.dd -enable-kvm -cpu host,+x2apic -monitor stdio
QEMU 2.8.50 monitor - type 'help' for more information
(qemu)
I've checked qemu's source, and I've found a stupid patch that silently disables x2apic when irqchip is not used, so I've tried
Code: Select all
qemu-system-x86_64 -m 32 -d guest_errors -hda bin/disk.dd -enable-kvm -machine kernel-irqchip=off -cpu host,+x2apic -monitor stdio
QEMU 2.8.50 monitor - type 'help' for more information
(qemu) warning: host doesn't support requested feature: CPUID.01H:ECX.x2apic [bit 21]
Code: Select all
qemu-system-x86_64 -m 32 -d guest_errors -hda bin/disk.dd -enable-kvm -machine kernel-irqchip=on -cpu host,+x2apic -monitor stdio
QEMU 2.8.50 monitor - type 'help' for more information
(qemu)
I'm not sure where else to check if kernel-irqchip is used at all, all I've got is irqbypass:
Code: Select all
# lsmod | grep kvm
kvm_intel 188416 0
kvm 516096 1 kvm_intel
irqbypass 16384 1 kvm