From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: KVM oops in svm_vcpu_run with 2.6.24-rc7 Date: Wed, 23 Jan 2008 15:12:32 +0200 Message-ID: <47973D40.4060506@qumranet.com> References: <200801222008.57667.ak@suse.de> <479724C6.8090204@qumranet.com> <200801231403.16604.ak@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: Andi Kleen Return-path: In-Reply-To: <200801231403.16604.ak-l3A5Bk7waGM@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org 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: >>> [] :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 : > 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 > 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 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/