Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp81752ybb; Tue, 7 Apr 2020 17:24:35 -0700 (PDT) X-Google-Smtp-Source: APiQypIqAc7v/23z5kdJu/ofLT/57wbNDRgZ0IkGrEGEtW1mVp8zBEVeQUHP5evrTcWw+oY61d6X X-Received: by 2002:aca:1a04:: with SMTP id a4mr570113oia.47.1586305474861; Tue, 07 Apr 2020 17:24:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586305474; cv=none; d=google.com; s=arc-20160816; b=Mcn3964u7fFTNfldHo0h9wx6UsBmX+lDAup7X1HM/M2vbWKiUjN5SiIPNC/+La80sc oXei9eTGIZMwZHPKOyzwktkh1+e1nXZISaj1RTpNudNjgtpfJ+3v2/nC3cMQUGef1lZZ RjFwpYmZKmTU0XE2Jps4UqpL5fANlg8sgu8loRBDM17KmuAMyVEnqoGBgV5Fw7aqw8sr h3bWTCiiOYaGoTrvTBw4BIVrrGJHXfC+0sgcfk8aW6ahoo7562ICQ9qZsh5LERLvG5wW tGDdo3kMtcX5EOZr8+xcn0UgtryL7prLYSpSN1o8uUvI1/SZhbCm+JwgWaKuRJ3GufVn cTbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=r0EEUAh9SaIWVAObARcwt3pD5wm74dMy36jPGATVLxc=; b=lFI/dOFOvHBcjnETfzefdaY2V3X6TNslc2TsY+JenDpBy6M2q3HTBIVdnvwWkPsU2x X0AZmLB719dlXCio04JvpAGVf+C0x+bAeDVjZoyYL+SyONxS2zozuYYY6k1bkFshpmJd TFdyh5U2/3AO1gyKPwBc15BgvIp0/JZKioSgF/f8aGmf53LAtST1QXUkasWycOH9FkTP tpdrWQktvR8pru04q8k3lpcq4FsIUW6eO2ypxEWunMT7KWM6BfGuNqZyttc24JQHRCbP ZcadhomCQsGI8nFKzruTnBqUEW9jpS9suZdif5YOyRvdSnkKwqvSLMU1yiChDLIDeiLd knRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="f+eLHzx/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id d4si1734562ote.265.2020.04.07.17.24.20; Tue, 07 Apr 2020 17:24:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="f+eLHzx/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726477AbgDHAWx (ORCPT + 99 others); Tue, 7 Apr 2020 20:22:53 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:48451 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726406AbgDHAWx (ORCPT ); Tue, 7 Apr 2020 20:22:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1586305371; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=r0EEUAh9SaIWVAObARcwt3pD5wm74dMy36jPGATVLxc=; b=f+eLHzx/VBL0arP1/IDkLZheAwVCbN+R5ItEnTCJIm8B9rpR0YO313pxINBotqHIhCUM3K s1vrP/fBUIAT107gFW/0/hmjwAU8YvuXeJ/OKKOeCYM0CbPWkqY0e0SfGoiV+s8Jgg2Y7R 6zN9bSpOU1o4iZcCtg6ujsPOCTTxFtc= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-24-dI8PU-K_NDOsOr7NAXK0Jg-1; Tue, 07 Apr 2020 20:22:49 -0400 X-MC-Unique: dI8PU-K_NDOsOr7NAXK0Jg-1 Received: by mail-wr1-f71.google.com with SMTP id k11so3079012wrm.19 for ; Tue, 07 Apr 2020 17:22:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=r0EEUAh9SaIWVAObARcwt3pD5wm74dMy36jPGATVLxc=; b=Ac0H0qjlmmctQf5PWzrOlnTTLrotNfbYFNaOyq6R8gjUOBOw4SJxcrp8Aa2P44J38F EyJW8KcQQ+a+00CfdKGEGQ3/ju7Oz/W07Co6P68692eu0q/Hrbq9dTNFcNaJyobz98jw esbaBFSpdvteW6AspOkKPkropyc/KnEVfm58DjRlAkoY2RABggqKGXD2IChtyJJ2/htw 8LiP+FOePRVVKjHlVbyjsl5g9UW4XypZbQBUEtu++wkFa+A9Ict7+9r7PNNdi2vKGjJu IlR44nt0kPvje9/14KAROKP4YRwL8/trbSxucip5zMLcajHNKs2+uxvVwAc/RN2hCENh airA== X-Gm-Message-State: AGi0Pub0xisE8P0l2l7nVS34bTDtPeS+VUCuJuYiMaZoW4cqZZNaOJu1 JtvOtVbM6jIWyAzzhzBoPDtMMiwG+vLWfd9DwhryIZqyPkorc9GiqAi6dQcyWdlv+pkTLq3dfV7 uWhuoyFYEf02+3IYJjTO91uq6 X-Received: by 2002:adf:a548:: with SMTP id j8mr5363964wrb.331.1586305368448; Tue, 07 Apr 2020 17:22:48 -0700 (PDT) X-Received: by 2002:adf:a548:: with SMTP id j8mr5363946wrb.331.1586305368221; Tue, 07 Apr 2020 17:22:48 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:bd61:914:5c2f:2580? ([2001:b07:6468:f312:bd61:914:5c2f:2580]) by smtp.gmail.com with ESMTPSA id v16sm4451759wml.30.2020.04.07.17.22.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Apr 2020 17:22:47 -0700 (PDT) Subject: Re: [PATCH 4/4] x86,module: Detect CRn and DRn manipulation To: Andrew Cooper , Nadav Amit , Peter Zijlstra Cc: Thomas Gleixner , LKML , hch@infradead.org, Sean Christopherson , mingo , bp , hpa@zytor.com, x86 , "Kenneth R. Crudup" , Jessica Yu , Rasmus Villemoes , Fenghua Yu , Xiaoyao Li , Thomas Hellstrom , Tony Luck , Steven Rostedt , Greg Kroah-Hartman , jannh@google.com, keescook@chromium.org, David.Laight@aculab.com, Doug Covelli , mhiramat@kernel.org References: <20200407110236.930134290@infradead.org> <20200407111007.429362016@infradead.org> <10ABBCEE-A74D-4100-99D9-05B4C1758FF6@gmail.com> <20200407193853.GP2452@worktop.programming.kicks-ass.net> <90B32DAE-0BB5-4455-8F73-C43037695E7C@gmail.com> <20200407205042.GT2452@worktop.programming.kicks-ass.net> <96C2F23A-D6F4-4A04-82B6-284788C5D2CC@gmail.com> <04f4fc03-95cd-df2e-e93d-e9c4fa221ae4@citrix.com> From: Paolo Bonzini Message-ID: Date: Wed, 8 Apr 2020 02:22:45 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <04f4fc03-95cd-df2e-e93d-e9c4fa221ae4@citrix.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/04/20 01:15, Andrew Cooper wrote: >> Anyhow, I do not think it is the only use-case which is not covered by your >> patches (even considering CRs/DRs alone). For example, there is no kernel >> function to turn on CR4.VMXE, which is required to run hypervisors on x86. > How about taking this opportunity to see if there is a way to improve on > the status quo for co-existing hypervisor modules? Almost serious question: why? I can understand VMware, but why can't at least VirtualBox use KVM on Linux? I am not sure if they are still running device emulation in ring zero, but if so do you really want to do that these days? Paolo