From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6E0DAC38A2A for ; Wed, 6 May 2020 11:10:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 409E6206D5 for ; Wed, 6 May 2020 11:10:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="VCe9cyjj" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728133AbgEFLKm (ORCPT ); Wed, 6 May 2020 07:10:42 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:47025 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727917AbgEFLKl (ORCPT ); Wed, 6 May 2020 07:10:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588763440; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=8lay/dHAY+Hj4ui8V65Mg/+aXrRPwt7ABhu7lPQIaEk=; b=VCe9cyjjQZMBmR+twa3H4cld+JZrZ7FYJeA+lw6iCb6TrdISzzYEAC9ijLsezF99o3c/5J 6smLWJbNVU0GISBeVCGK3DJMYvLPfWdDnjIiKqRFc5YzBC7jPxMGPXUocvY/fP3R5mkxWh AUGXqbLM+6l+lSpcEX+u2vC9bFj/Qig= 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-232-HffpQwpoMsGJtGIwkE-JxQ-1; Wed, 06 May 2020 07:10:38 -0400 X-MC-Unique: HffpQwpoMsGJtGIwkE-JxQ-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 BB4101899520; Wed, 6 May 2020 11:10:37 +0000 (UTC) Received: from virtlab701.virt.lab.eng.bos.redhat.com (virtlab701.virt.lab.eng.bos.redhat.com [10.19.152.228]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9732C5C1D4; Wed, 6 May 2020 11:10:34 +0000 (UTC) From: Paolo Bonzini To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: peterx@redhat.com, Sean Christopherson Subject: [PATCH 0/9] KVM_SET_GUEST_DEBUG tests and fixes, DR accessors cleanups Date: Wed, 6 May 2020 07:10:25 -0400 Message-Id: <20200506111034.11756-1-pbonzini@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I am posting all the pending patches as a full series because I found another issue on AMD, which is easily fixed with the last patch but has dependencies on the patches to keep DR6 synchronized with vcpu->arch.dr6. Paolo Bonzini (5): KVM: x86: fix DR6 delivery for various cases of #DB injection KVM: SVM: keep DR6 synchronized with vcpu->arch.dr6 KVM: x86: simplify dr6 accessors in kvm_x86_ops KVM: x86, SVM: do not clobber guest DR6 on KVM_EXIT_DEBUG KVM: VMX: pass correct DR6 for GD userspace exit Peter Xu (4): KVM: X86: Declare KVM_CAP_SET_GUEST_DEBUG properly KVM: X86: Set RTM for DB_VECTOR too for KVM_EXIT_DEBUG KVM: X86: Fix single-step with KVM_SET_GUEST_DEBUG KVM: selftests: Add KVM_SET_GUEST_DEBUG test arch/powerpc/kvm/powerpc.c | 1 + arch/s390/kvm/kvm-s390.c | 1 + arch/x86/include/asm/kvm_host.h | 2 +- arch/x86/kvm/svm/svm.c | 11 +- arch/x86/kvm/vmx/vmx.c | 23 +- arch/x86/kvm/x86.c | 28 +-- arch/x86/kvm/x86.h | 2 + tools/testing/selftests/kvm/Makefile | 1 + .../testing/selftests/kvm/include/kvm_util.h | 2 + tools/testing/selftests/kvm/lib/kvm_util.c | 9 + .../testing/selftests/kvm/x86_64/debug_regs.c | 202 ++++++++++++++++++ 11 files changed, 243 insertions(+), 39 deletions(-) create mode 100644 tools/testing/selftests/kvm/x86_64/debug_regs.c -- 2.18.2