Re: BUG with Win7 and user-return-notifier

Avi Kivity
2009-10-27T13:11:23Z

On 10/27/2009 02:52 PM, Jan Kiszka wrote:
> Hi Avi,
>
> just booted kvm.git master (974ae8d7ff) as host and re-ran my boot test
> of Windows 7. Already during "Starting Windows" I get this:
>

x86 or x64 7?

> RAX: 0000000000000000 RBX: 0000000000000003 RCX: 00000000c0000080
> RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
>
> Call Trace:
> [<ffffffffa05d1ef9>] vmx_save_host_state+0x141/0x150 [kvm_intel]
> [<ffffffffa0582e40>] kvm_arch_vcpu_ioctl_run+0x510/0xb25 [kvm]
> [<ffffffffa0571dda>] kvm_vcpu_ioctl+0xfb/0x722 [kvm]
> [<ffffffffa05743de>] ? kvm_vm_ioctl+0x33a/0x36b [kvm]
> [<ffffffff81330022>] ? sub_preempt_count+0x9/0x83
> [<ffffffff810cb698>] ? fire_user_return_notifiers+0x50/0x6b
> [<ffffffff81122bf4>] vfs_ioctl+0x2f/0x7d
> [<ffffffff81123112>] do_vfs_ioctl+0x450/0x48d
> [<ffffffff81330022>] ? sub_preempt_count+0x9/0x83
> [<ffffffff811231a9>] sys_ioctl+0x5a/0x7c
> [<ffffffff8100bc5b>] system_call_fastpath+0x16/0x1b
> Code: 03 24 c5 60 a8 6f 81 89 d8 48 8d 50 04 4d 3b 2c d4 74 38 4d 89 2c d4 48 c1 e0 04 4c 89 ea 8b 88 f8 50 5a a0 48 c1 ea 20 44 89 e8<0f> 30 41 80 7c 24 18 00 75 16 49 c7 04 24 d6 53 58 a0 4c 89 e7
> RIP [<ffffffffa05853ad>] kvm_set_shared_msr+0x51/0x7a [kvm]
>

That's a wrmsr(EFER, 0), which should definitely fault.
update_transition_efer() should have taken care of it.

--
error compiling committee.c: too many arguments to function