Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754115AbZJYXbq (ORCPT ); Sun, 25 Oct 2009 19:31:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754034AbZJYXbp (ORCPT ); Sun, 25 Oct 2009 19:31:45 -0400 Received: from mail-bw0-f227.google.com ([209.85.218.227]:55485 "EHLO mail-bw0-f227.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753919AbZJYXbn (ORCPT ); Sun, 25 Oct 2009 19:31:43 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=QzLj4S4QI20swGSfacaExfz1CW8XjyG1V+V/RqG0vcXrvLhm+WZflxQW/tOmP79mZM PhO3yyv4caOWM9SfrTu9pfPj3J1vRrqcGtVCKsOCV9dNt0iwWb309KAltBLgUPjLUIn8 5GjQEdUTm31AuGeqXUjzrjunbWYLWPhnUs/IQ= MIME-Version: 1.0 In-Reply-To: <4AE32926.2020005@web.de> References: <1256393818-8921-1-git-send-email-fweisbec@gmail.com> <1256393818-8921-5-git-send-email-fweisbec@gmail.com> <4AE32926.2020005@web.de> Date: Mon, 26 Oct 2009 00:31:46 +0100 Message-ID: Subject: Re: [PATCH 4/6] hw-breakpoints: Rewrite the hw-breakpoints layer on top of perf events From: Frederic Weisbecker To: Jan Kiszka Cc: Ingo Molnar , LKML , Prasad , Alan Stern , Peter Zijlstra , Arnaldo Carvalho de Melo , Steven Rostedt , Jiri Slaby , Li Zefan , Avi Kivity , Paul Mackerras , Mike Galbraith , Masami Hiramatsu , Paul Mundt Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 784 Lines: 22 2009/10/24 Jan Kiszka : > Since commit 3d53c27d05, KVM uses current->thread.debugregs for > restoring the host state in case the guest played with breakpoints. We > need an equivalent interface to restore ptrace breakpoints and all > others currently in use. > > Jan Well, dr6 is still stored in the current thread. dr7 has a per cpu variable containing its value. So what remains is to have a per cpu variable for dr0-3 which is updated when perf schedules in/out a profiled context. I can do that in a v3. Thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/