From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerone Young Subject: [kvm-userspace] new functions on_vcpu() causing segafault when trying to use breakpoints Date: Fri, 30 May 2008 14:27:48 -0500 Message-ID: <1212175668.24409.9.camel@thinkpadL> Reply-To: jyoung5@us.ibm.com Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit To: kvm Return-path: Received: from e35.co.us.ibm.com ([32.97.110.153]:59124 "EHLO e35.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751367AbYE3T1t (ORCPT ); Fri, 30 May 2008 15:27:49 -0400 Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by e35.co.us.ibm.com (8.13.8/8.13.8) with ESMTP id m4UJRnCH031533 for ; Fri, 30 May 2008 15:27:49 -0400 Received: from d03av03.boulder.ibm.com (d03av03.boulder.ibm.com [9.17.195.169]) by d03relay04.boulder.ibm.com (8.13.8/8.13.8/NCO v8.7) with ESMTP id m4UJRmm4102472 for ; Fri, 30 May 2008 13:27:48 -0600 Received: from d03av03.boulder.ibm.com (loopback [127.0.0.1]) by d03av03.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m4UJRl7R014628 for ; Fri, 30 May 2008 13:27:47 -0600 Received: from [9.53.41.205] (thinkpadL.austin.ibm.com [9.53.41.205]) by d03av03.boulder.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id m4UJRlYi014603 for ; Fri, 30 May 2008 13:27:47 -0600 Sender: kvm-owner@vger.kernel.org List-ID: New code recently added to the repository has made some modifications to the kvm_update_debugger() function in qemu-kvm.c. Where as no longer to just call kvm_guest_debug...Now there is a new fuction on_vcpu() that places things in work queues and launches them. The problem is when kvm_invold_guest_debug() gets called, it segfaults calling kvm_guest_debug(). What exactly is the point of complicating this? This code does segfault on x86 also. For now I have just placed the old code back locally.