[   23.673107] Call Trace:
[   23.673107]  [<ffffffffa02db196>] svm_hardware_enable+0xd6/0x140
[kvm_amd]
[ 23.673107] [<ffffffffa02b25e0>] ? hardware_enable+0x0/0x40 [kvm] [ 23.673107] [<ffffffffa02b4693>] kvm_arch_hardware_enable +0x13/0x20
[kvm]
[   23.673107]  [<ffffffffa02b260f>] hardware_enable+0x2f/0x40 [kvm]
[   23.673107]  [<ffffffff80254a44>] on_each_cpu+0x34/0x50
[   23.673107]  [<ffffffffa02b0c85>] kvm_init+0x165/0x280 [kvm]
[   23.673107]  [<ffffffffa00b3000>] ? svm_init+0x0/0x23 [kvm_amd]
[   23.673107]  [<ffffffffa00b3021>] svm_init+0x21/0x23 [kvm_amd]
[   23.673107]  [<ffffffff8020a041>] do_one_initcall+0x41/0x170
[   23.673107]  [<ffffffff8026c261>] ?
__blocking_notifier_call_chain+0x21/0x90
[   23.673107]  [<ffffffff8027d085>] sys_init_module+0xb5/0x1f0
[   23.673107]  [<ffffffff8021285a>] system_call_fastpath+0x16/0x1b
[   23.673107]
[   23.673107]
[   23.673107] Code: 00 55 89 f9 48 89 e5 0f 32 31 c9 89 c7 48 89 d0
89 0e 48 c1 e0 20 89 fa 48 09 d0 c9 c3 0f 1f 40 00 55 89 f9 89 f0 48
89 e5 0f 30 <31> c0 c9 c3 66 90 55 89 f9 48 89 e5 0f 33 89 c1 48 89 d0
48 c1
[ 23.673107] RIP [<ffffffff8022d35a>] native_write_msr_safe+0xa/ 0x10
[   23.673107]  RSP <ffff880018dc3dd8>
[   23.673107] ---[ end trace 0dc989f1cf9a296e ]---

Maybe it is just that a newer version of KVM is needed?

I will also try to build a newer version of KVM and test.

Thanks for any comments.

Your guest is writing to an MSR that is unknown to the kvm msr emulation.
What does dmesg on the host say?


Attached.

Your KVM kernel module does not like that the guest writes into MSR_VM_HSAVE_PA. This is pretty fundamental and should always work if you build current git kvm kernel modules. Are you sure you're using the current git modules? Are you using the -enable-nesting option for qemu?

Please try to rmmod everything, take a fresh checkout from git, compile it and load the module with insmod kvm-amd.ko nested=1. I can't think of any way this could fail.

Alex

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to