From patchwork Thu Sep 24 09:08:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nadav Amit X-Patchwork-Id: 7254491 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id F01419F30C for ; Thu, 24 Sep 2015 09:08:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 30EA520990 for ; Thu, 24 Sep 2015 09:08:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 58A952098A for ; Thu, 24 Sep 2015 09:08:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752835AbbIXJI2 (ORCPT ); Thu, 24 Sep 2015 05:08:28 -0400 Received: from mail-wi0-f176.google.com ([209.85.212.176]:33161 "EHLO mail-wi0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752615AbbIXJI1 (ORCPT ); Thu, 24 Sep 2015 05:08:27 -0400 Received: by wiclk2 with SMTP id lk2so18843265wic.0 for ; Thu, 24 Sep 2015 02:08:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=5fxNAVw9FJdoflxCZyoahxxnhkmp9/n8iDzMdXmwjFM=; b=OdLMtBMv4LdxxpD7WIBZENuDlDVgCZAjqYcQi42HgtECmo9w9jf9TM3x2Z6EYobiVg FMD6FWLvP88r1BhGZFFvhDm+cSZos3ajTSYZf9qlfsxVVI3d0XOeb43IXAMJh9CD5aDp i0Xs/F/sEJXD4zlCZR1zBCPw2wOBxDP5Laux6qgWiJHC+0N8TV93idtVnNnP0lO6lMf+ U8ALgxl/FI7SHj/O5Jg0qjymsTO6kPTB+EhfGgRn43em7CkNw9PMogDmVqV8LqAtcQRv ErVKn7AT4vFCbXVqs2Jhh4UNGP+vuDB53j2rD3gDRYSOPASSEeqoUjbbQ6VNRhniNTce xOUQ== X-Received: by 10.180.221.199 with SMTP id qg7mr9165554wic.23.1443085706478; Thu, 24 Sep 2015 02:08:26 -0700 (PDT) Received: from csl-tapuz20.cs.technion.ac.il (csl-tapuz20.cs.technion.ac.il. [132.68.206.58]) by smtp.gmail.com with ESMTPSA id p4sm4452441wia.15.2015.09.24.02.08.24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Sep 2015 02:08:25 -0700 (PDT) From: Nadav Amit To: pbonzini@redhat.com, tglx@linutronix.de Cc: x86@kernel.org, kvm@vger.kernel.org, andreyisakov7@gmail.com, ramibnet@gmail.com, Nadav Amit Subject: [PATCH 1/2] KVM: x86: Add DR flag definition for IO watchpoints Date: Thu, 24 Sep 2015 12:08:09 +0300 Message-Id: <1443085690-9824-2-git-send-email-namit@cs.technion.ac.il> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1443085690-9824-1-git-send-email-namit@cs.technion.ac.il> References: <1443085690-9824-1-git-send-email-namit@cs.technion.ac.il> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Rami Burstein Add DR_RW_PROT for I/O watchponts. Signed-off-by: Andrey Isakov Signed-off-by: Rami Burstein Signed-off-by: Nadav Amit --- arch/x86/include/uapi/asm/debugreg.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/uapi/asm/debugreg.h b/arch/x86/include/uapi/asm/debugreg.h index 3c0874d..d815cd4 100644 --- a/arch/x86/include/uapi/asm/debugreg.h +++ b/arch/x86/include/uapi/asm/debugreg.h @@ -37,6 +37,7 @@ #define DR_RW_EXECUTE (0x0) /* Settings for the access types to trap on */ #define DR_RW_WRITE (0x1) +#define DR_RW_PORT (0x2) #define DR_RW_READ (0x3) #define DR_LEN_1 (0x0) /* Settings for data length to trap on */