Ouch. Probably commit 8d860bbeedef ("kvm: vmx: Basic APIC virtualization controls have three settings"). On Mon, Jul 9, 2018 at 12:01 AM, Zdenek Kaspar <zkaspar82@xxxxxxxxx> wrote: > Hi, starting VM on old Core2 host emits: > > vmwrite error: reg 401e value a02827a0 (err 12) > CPU: 1 PID: 1680 Comm: qemu-build Not tainted 4.18.0-rc4 #1 > Hardware name: /DG35EC, BIOS ECG3510M.86A.0118.2010.0113.1426 01/13/2010 > Call Trace: > dump_stack+0x5c/0x80 > vmx_set_virtual_apic_mode+0x169/0x210 [kvm_intel] > kvm_lapic_set_base+0x76/0x190 [kvm] > kvm_set_apic_base+0xa7/0xd0 [kvm] > kvm_set_msr_common+0x877/0xbc0 [kvm] > ? vmx_vcpu_run+0x38a/0x8f0 [kvm_intel] > ? vmx_vcpu_run+0x396/0x8f0 [kvm_intel] > ? vmx_vcpu_run+0x38a/0x8f0 [kvm_intel] > ? vmx_vcpu_run+0x396/0x8f0 [kvm_intel] > ? vmx_vcpu_run+0x38a/0x8f0 [kvm_intel] > handle_wrmsr+0x38/0x70 [kvm_intel] > vmx_handle_exit+0x90/0xcf0 [kvm_intel] > ? vmx_vcpu_run+0x38a/0x8f0 [kvm_intel] > ? vmx_vcpu_run+0x396/0x8f0 [kvm_intel] > ? vmx_vcpu_run+0x77d/0x8f0 [kvm_intel] > ? pic_unlock+0x5b/0x80 [kvm] > kvm_arch_vcpu_ioctl_run+0x52a/0x17d0 [kvm] > kvm_vcpu_ioctl+0x285/0x510 [kvm] > ? wake_up_q+0x70/0x70 > do_vfs_ioctl+0x8b/0x5d0 > ? __fget+0x6a/0xa0 > ksys_ioctl+0x35/0x70 > __x64_sys_ioctl+0x11/0x20 > do_syscall_64+0x52/0x300 > ? __schedule+0x1b2/0x5d0 > entry_SYSCALL_64_after_hwframe+0x44/0xa9 > RIP: 0033:0x7f991b3dbbf7 > Code: 90 90 90 48 8b 05 d1 d3 2a 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff > ff c3 90 90 90 90 90 90 90 90 90 90 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff > 73 01 c3 48 8b 0d a1 d3 2a 00 31 d2 48 29 c2 64 > RSP: 002b:00007f99174c0918 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 > RAX: ffffffffffffffda RBX: 000000000000ae80 RCX: 00007f991b3dbbf7 > RDX: 0000000000000000 RSI: 000000000000ae80 RDI: 000000000000001a > RBP: 0000000000000000 R08: 0000560c0c8fae50 R09: 0000000000000690 > R10: 0005f5b4e5824f35 R11: 0000000000000246 R12: 0000560c0d8524b0 > R13: 00007f991d55b000 R14: 0000000000000000 R15: 0000560c0d8524b0 > vmwrite error: reg 401e value a02827a0 (err 12) > CPU: 1 PID: 1681 Comm: qemu-build Not tainted 4.18.0-rc4 #1 > Hardware name: /DG35EC, BIOS ECG3510M.86A.0118.2010.0113.1426 01/13/2010 > Call Trace: > dump_stack+0x5c/0x80 > vmx_set_virtual_apic_mode+0x169/0x210 [kvm_intel] > kvm_lapic_set_base+0x76/0x190 [kvm] > kvm_set_apic_base+0xa7/0xd0 [kvm] > kvm_set_msr_common+0x877/0xbc0 [kvm] > ? vmx_vcpu_run+0x38a/0x8f0 [kvm_intel] > ? vmx_vcpu_run+0x396/0x8f0 [kvm_intel] > ? vmx_vcpu_run+0x38a/0x8f0 [kvm_intel] > ? vmx_vcpu_run+0x396/0x8f0 [kvm_intel] > ? vmx_vcpu_run+0x38a/0x8f0 [kvm_intel] > handle_wrmsr+0x38/0x70 [kvm_intel] > vmx_handle_exit+0x90/0xcf0 [kvm_intel] > ? vmx_vcpu_run+0x38a/0x8f0 [kvm_intel] > ? vmx_vcpu_run+0x396/0x8f0 [kvm_intel] > ? vmx_vcpu_run+0x77d/0x8f0 [kvm_intel] > kvm_arch_vcpu_ioctl_run+0x52a/0x17d0 [kvm] > kvm_vcpu_ioctl+0x285/0x510 [kvm] > ? do_futex+0x289/0xa60 > ? signal_setup_done+0x6f/0x90 > ? do_signal+0x3c4/0x590 > do_vfs_ioctl+0x8b/0x5d0 > ? __fget+0x6a/0xa0 > ksys_ioctl+0x35/0x70 > __x64_sys_ioctl+0x11/0x20 > do_syscall_64+0x52/0x300 > entry_SYSCALL_64_after_hwframe+0x44/0xa9 > RIP: 0033:0x7f991b3dbbf7 > Code: 90 90 90 48 8b 05 d1 d3 2a 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff > ff c3 90 90 90 90 90 90 90 90 90 90 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff > 73 01 c3 48 8b 0d a1 d3 2a 00 31 d2 48 29 c2 64 > RSP: 002b:00007f9916cbf918 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 > RAX: ffffffffffffffda RBX: 000000000000ae80 RCX: 00007f991b3dbbf7 > RDX: 0000000000000000 RSI: 000000000000ae80 RDI: 000000000000001b > RBP: 0000000000000000 R08: 0000560c0c8fae50 R09: 0000000000000016 > R10: 000000007fffffff R11: 0000000000000246 R12: 0000560c0d8a1170 > R13: 00007f991d558000 R14: 0000000000000000 R15: 0000560c0d8a1170 > > host kernel: 4.18.0-rc4 (gcc version 8.1.1 20180531, PREEMPT) > > cpu family : 6 > model : 15 > model name : Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz > stepping : 6 > microcode : 0xcb > > flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca > cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm > constant_tsc arch_perfmon pebs bts rep_good nopl cpuid aperfmperf pni dtes64 > monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm pti tpr_shadow > dtherm > > KVM guests are working fine... > > TIA, Z.