Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp840439ybz; Sat, 25 Apr 2020 05:30:59 -0700 (PDT) X-Google-Smtp-Source: APiQypLDvNPc60YL+QNWRhGOQiAyJz5ldMfIU474lqWya0l0VAcFbOP3NCR7PtvIUaECs6QRDN9l X-Received: by 2002:a17:906:4dc8:: with SMTP id f8mr11613711ejw.23.1587817859170; Sat, 25 Apr 2020 05:30:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587817859; cv=none; d=google.com; s=arc-20160816; b=EiXXItsQi5Hf0n6Yu21dPqMsDcwebPZh217CO4TVM8pWnq6v/LsqTFyCxSfqX/86aE Ves56yWYLpcQzRg93HW4D34Yv3i6pM1DSoFvEAMkXwF7+twukAatUFKwQTWJajej+yIC UjmBVLvt9UphB6yo3lzzatSDDROa702uM+d0hHAZ6UpImQPHY3U/qbTagTpUtQHwAkOh ThbD+rLogldGS4ZkR9D5i3Ph3T+KMbcDqGc1sZNjdKdMJg/3mMxRGM7cZbJMGTO7yRJz OUyfUEOLGVBQYhFCEe4615V7GEYRrzcLf3B/0pRxoYLdYfTexuJOhgKokPHdSo+GZWL1 nG7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=pCG+qvn8UWk1kmRU+Au8LAogW21Ts2kcj07+cFDpeeI=; b=JJDWFOth9Pbys5vQfB1n+F/MRdKfMHqZaU6nOnyk0u3mwEgO534vrBjuEool0ym/IW he65d29HAJj6/ImVERRF6tiERKaZufFaqQxQ59wGljpvAlA81F0jO4LrMBPXPWYXwS8o i80pKFqWkVb+X4HKNeuUqN5BJCzplO427xzAEC9I+MFr8Hq15XjPM/c04zrWOMfUyndt 0sNs0siNPNevG2XydAcbu78VoYjRx3YgIVvO1mVTv8YCIeOKCIUQ8izHhhXxZKY2sIUC HeeN0QoOIrZ3rs14tWrjZXEHKA3YqcaTSx6dvYBMUmLIJMFkDU75rSQTNmIVKoceMgv4 6hog== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x4si5134109edc.458.2020.04.25.05.30.35; Sat, 25 Apr 2020 05:30:59 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726110AbgDYM2m (ORCPT + 99 others); Sat, 25 Apr 2020 08:28:42 -0400 Received: from mx2.suse.de ([195.135.220.15]:41410 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725925AbgDYM2m (ORCPT ); Sat, 25 Apr 2020 08:28:42 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 4A503AC52; Sat, 25 Apr 2020 12:28:39 +0000 (UTC) Date: Sat, 25 Apr 2020 14:28:35 +0200 From: Joerg Roedel To: Mike Stunes Cc: joro@8bytes.org, dan.j.williams@intel.com, dave.hansen@linux.intel.com, hpa@zytor.com, jgross@suse.com, jslaby@suse.cz, keescook@chromium.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, luto@kernel.org, peterz@infradead.org, thellstrom@vmware.com, thomas.lendacky@amd.com, virtualization@lists.linux-foundation.org, x86@kernel.org Subject: Re: [PATCH] Allow RDTSC and RDTSCP from userspace Message-ID: <20200425122835.GM30814@suse.de> References: <20200319091407.1481-56-joro@8bytes.org> <20200424210316.848878-1-mstunes@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200424210316.848878-1-mstunes@vmware.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mike, On Fri, Apr 24, 2020 at 02:03:16PM -0700, Mike Stunes wrote: > I needed to allow RDTSC(P) from userspace and in early boot in order to > get userspace started properly. Patch below. Thanks, but this is not needed anymore. I removed the vc_context_filter from the code. The emulation code is now capable of safely handling any exception from user-space. Regards, Joerg