Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3657817pxf; Mon, 15 Mar 2021 15:14:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyr6doG4sdbGHmfMNRS6LVD5WoJs8AySeSWQcFlzAc319iWbE2YBPaMBvOdOrq5zrXj07o+ X-Received: by 2002:a17:906:f88a:: with SMTP id lg10mr26643372ejb.39.1615846468128; Mon, 15 Mar 2021 15:14:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615846468; cv=none; d=google.com; s=arc-20160816; b=jSS+oz/8bTV1jQKoUN5rfuSdVde4WdNU/aD+/J5cowyFIr1gcuQm3zc9I8InuMtMUz A9csiDMY8ikUwFA/d8cGQsod4jjnBBdZbopr6sXXGC8ZXVadrKHaCuOgCdRukA/Rlw5z kgAkN5FNc2ajQAnJDdgB6FJ6AnZNVHvsRZ4cyRe4clkHVxXwCnuC5bvz5PJXYlZnLTck P8YiNb5YJPmgyfQdLYkwL+ALoA/YPIus/jiRycifZvkr5s2coZcXufmcxlpq0HoPdgT1 o3xCN+RL5Aa313hsSebg3Qz9g5jhzoXqRD2QPpgairRCv3ToQ5n3HJDENxXuWLgnDTXf V4hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=GO4Svw6p1VObWYcp8yWMtHx+jBqxgLew+cAErGqrrHw=; b=L/4ud2l4mH5s2FHfUpFR//QVrf7H+aWsbXilBO9FchmMR5Qi0OWvbtZ8oyWottyZms T0TaQyGvJbhNaZ+tS8NOHnFvJuFDcDq+2KbF37Bi501svPXyGpcndBwlfcaWr2OpAChy 7WWHUdiwwMNfcbid97JKK5yM7AXN/QhAO6FWRYjyHoLPzmATvOLWSVgrdSqsx8wSRZJ5 1bt/2XnGPmsOl3TeOnQ2Lej3eJb9p8/qaLajEwFlmsdfW46MFAfvowIFWiPtPV7prr7w OJpFsYmjAYcZoLZVgHMq8eLfCYAoXwr2qAXxHNXCe5Gh8Ch0LAlCf9wxqZnfWNHcazRc raWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iOHocxDK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g23si11192503ejx.623.2021.03.15.15.14.05; Mon, 15 Mar 2021 15:14:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iOHocxDK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230108AbhCOWKm (ORCPT + 99 others); Mon, 15 Mar 2021 18:10:42 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:31353 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232051AbhCOWKd (ORCPT ); Mon, 15 Mar 2021 18:10:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1615846232; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=GO4Svw6p1VObWYcp8yWMtHx+jBqxgLew+cAErGqrrHw=; b=iOHocxDKW/7tzVk3v7vggwlFHrV+L445G6a2xu41UO9KsVBrRhHCTuMd46Yjf1UBysdtwZ UYvo8ZXprAE/m2KkGDHAhGpN3lXzGGQx0gk2bR+az36Qq/coLvn4pZ6rvstjwGOwc/HhsX e3PhNEWNyaMJ/N67Qd0IylmSNGQXZVw= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-205-dg5EnmfcNuaKPeeqVJjVGw-1; Mon, 15 Mar 2021 18:10:29 -0400 X-MC-Unique: dg5EnmfcNuaKPeeqVJjVGw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D693C801817; Mon, 15 Mar 2021 22:10:26 +0000 (UTC) Received: from localhost.localdomain (unknown [10.35.207.30]) by smtp.corp.redhat.com (Postfix) with ESMTP id EAD6C5C261; Mon, 15 Mar 2021 22:10:21 +0000 (UTC) From: Maxim Levitsky To: kvm@vger.kernel.org Cc: Vitaly Kuznetsov , linux-kernel@vger.kernel.org, Thomas Gleixner , Wanpeng Li , Kieran Bingham , Jessica Yu , Jan Kiszka , Andrew Morton , x86@kernel.org (maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)), Joerg Roedel , Sean Christopherson , Jim Mattson , Borislav Petkov , Stefano Garzarella , Maxim Levitsky , "H. Peter Anvin" , Paolo Bonzini , Ingo Molnar Subject: [PATCH 0/3] KVM: my debug patch queue Date: Tue, 16 Mar 2021 00:10:17 +0200 Message-Id: <20210315221020.661693-1-mlevitsk@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi!=0D =0D I would like to publish two debug features which were needed for other stuf= f=0D I work on.=0D =0D One is the reworked lx-symbols script which now actually works on at least= =0D gdb 9.1 (gdb 9.2 was reported to fail to load the debug symbols from the ke= rnel=0D for some reason, not related to this patch) and upstream qemu.=0D =0D The other feature is the ability to trap all guest exceptions (on SVM for n= ow)=0D and see them in kvmtrace prior to potential merge to double/triple fault.=0D =0D This can be very useful and I already had to manually patch KVM a few=0D times for this.=0D I will, once time permits, implement this feature on Intel as well.=0D =0D Best regards,=0D Maxim Levitsky=0D =0D Maxim Levitsky (3):=0D scripts/gdb: rework lx-symbols gdb script=0D KVM: x86: guest debug: don't inject interrupts while single stepping=0D KVM: SVM: allow to intercept all exceptions for debug=0D =0D arch/x86/include/asm/kvm_host.h | 2 +=0D arch/x86/kvm/svm/svm.c | 77 ++++++++++++++++++++++-=0D arch/x86/kvm/svm/svm.h | 5 +-=0D arch/x86/kvm/x86.c | 11 +++-=0D kernel/module.c | 8 ++-=0D scripts/gdb/linux/symbols.py | 106 +++++++++++++++++++++++---------=0D 6 files changed, 174 insertions(+), 35 deletions(-)=0D =0D -- =0D 2.26.2=0D =0D