From owner-svn-src-head@freebsd.org Wed Feb 20 22:33:40 2019 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 00DED14DEECA; Wed, 20 Feb 2019 22:33:40 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-it1-f172.google.com (mail-it1-f172.google.com [209.85.166.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9180A721C5; Wed, 20 Feb 2019 22:33:39 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-it1-f172.google.com with SMTP id h6so19754011itl.1; Wed, 20 Feb 2019 14:33:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=FDaj4hwouwdm2Z/OlnxZovaffTn/OVEnndv00ph3I9k=; b=fnON2Uc9ATip5ydcMvJuaSxLRILOUvOR8p07vDvKIeaO4+pnvJ2xeu+HQLD9I/mqoM OBPI+WvWUrmt7qoNtykDQv1lyqIF7Av6C5fTMwC2oz/G1Dr9pUCylHLyqYjs0wtolV7R XZ9q3C0bst/kW1LyzKdN+Wc0X3KMm1L8dYblpExKQTFJm81S+U9kgNKG2xZ0ZNURMRrW N5ELZchk+KnUni/RnCnF5Jau2uS1hfh34QtdPavNe91wOmPLex0EQNoHqJRD47EqBx5q LMLYhJmzrG6fmxMv6TXS/O0hFa8htPWduKfHk7+POj0CqgVsHTN18slhgymaOQTl3YqT gL7A== X-Gm-Message-State: AHQUAuYnQ95IppQilPUWk7ar7U9pE1D5PH0AyH8Y3tkss460/VYAaruj 4ohx9UT7i+fezQVIthG17dWuqiVD X-Google-Smtp-Source: AHgI3IbdO6SbjLbvRMIvfWpSUmqKwDhcLyUUS7TerqlRqPI+Lhs+UidVQWgu9f81CQb7p5bsHJ2yOA== X-Received: by 2002:a05:660c:54d:: with SMTP id w13mr6481730itk.50.1550702012788; Wed, 20 Feb 2019 14:33:32 -0800 (PST) Received: from mail-it1-f180.google.com (mail-it1-f180.google.com. [209.85.166.180]) by smtp.gmail.com with ESMTPSA id b9sm8587169iod.18.2019.02.20.14.33.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Feb 2019 14:33:32 -0800 (PST) Received: by mail-it1-f180.google.com with SMTP id z124so19761459itc.2; Wed, 20 Feb 2019 14:33:32 -0800 (PST) X-Received: by 2002:a02:4084:: with SMTP id n126mr15003660jaa.78.1550702012315; Wed, 20 Feb 2019 14:33:32 -0800 (PST) MIME-Version: 1.0 References: <201902200951.x1K9pDQs001745@repo.freebsd.org> In-Reply-To: <201902200951.x1K9pDQs001745@repo.freebsd.org> Reply-To: cem@freebsd.org From: Conrad Meyer Date: Wed, 20 Feb 2019 14:33:21 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: svn commit: r344353 - in head/sys: amd64/amd64 amd64/include arm/include arm64/include i386/include mips/include powerpc/include riscv/include sparc64/include vm x86/include To: Konstantin Belousov Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 9180A721C5 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-7.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-1.00)[-0.996,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[] X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Feb 2019 22:33:40 -0000 Hi Konstantin, What is the (K)API for this (do you have any intended consumers in mind)? Will it be documented in a manual page at some point? Does it make sense to expose to userspace via mmap(2) or similar? Thanks, Conrad On Wed, Feb 20, 2019 at 1:51 AM Konstantin Belousov wrote: > > Author: kib > Date: Wed Feb 20 09:51:13 2019 > New Revision: 344353 > URL: https://svnweb.freebsd.org/changeset/base/344353 > > Log: > Add kernel support for Intel userspace protection keys feature on > Skylake Xeons. > > See SDM rev. 68 Vol 3 4.6.2 Protection Keys and the description of the > RDPKRU and WRPKRU instructions. > > Reviewed by: markj > Tested by: pho > Sponsored by: The FreeBSD Foundation > MFC after: 2 weeks > Differential revision: https://reviews.freebsd.org/D18893