Re: KVM oops in svm_vcpu_run with 2.6.24-rc7

Avi Kivity
2008-01-23T13:12:32Z

Andi Kleen wrote:
> On Wednesday 23 January 2008 12:28:06 Avi Kivity wrote:
>
>> Andi Kleen wrote:
>>
>>> While starting a kernel
>>>
>>> Unable to handle kernel NULL pointer dereference at 0000000000000008 RIP:
>>> [<ffffffff885698fd>] :kvm_amd:svm_vcpu_run+0x35/0x30d
>>>
>> Can you disassemble svm_vcpu_run() so we see where this ist
>>
>
> Pretty much at the beginning. It's the first reference of the first argument
>
>
> 00000000000008c8 <svm_vcpu_run>:
> 8c8: 65 8b 0c 25 24 00 00 mov %gs:0x24,%ecx
> 8cf: 00
> 8d0: 48 63 c1 movslq %ecx,%rax
> 8d3: 48 89 fe mov %rdi,%rsi
> 8d6: 48 c7 c2 00 00 00 00 mov $0x0,%rdx
> 8dd: 48 8b 04 c5 00 00 00 mov 0x0(,%rax,8),%rax
> 8e4: 00
> 8e5: 48 8b 40 08 mov 0x8(%rax),%rax
> 8e9: 48 8b 3c 02 mov (%rdx,%rax,1),%rdi
> 8ed: 48 8b 86 f0 0d 00 00 mov 0xdf0(%rsi),%rax
> 8f4: c6 40 5c 00 movb $0x0,0x5c(%rax)
> 8f8: 39 4e 40 cmp %ecx,0x40(%rsi)
> 8fb: 75 0d jne 90a <svm_vcpu_run+0x42>
> 8fd: 48 8b 47 08 mov 0x8(%rdi),%rax
>

No, %rdi now points at per_cpu(svm_data, raw_smp_processor_id()); the
instruction is referencing asid_generation.

Have you hotplugged cpus on this machine? Maybe via suspend/resume?

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