Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp231707ybe; Wed, 18 Sep 2019 16:09:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqw1mRGhwFhr1LV0zt3h8CWBb91WTA3AQAE53K3mj8MqgPgQHfUVCl5cVFrTedvyLUiigZyY X-Received: by 2002:a17:906:82d3:: with SMTP id a19mr1391268ejy.151.1568848171554; Wed, 18 Sep 2019 16:09:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568848171; cv=none; d=google.com; s=arc-20160816; b=gPfbB+/bhZvh3l8jCl/vcGy9DgOMQUm+Fv0/mqUFv7rlM91ym7vWsnjsaU9CH1Th3Y /LKxGWEvS8qSw/m57A1qREgkuRNluPB4jNBzGdEtYj/xc+vUQu0eewEnhIzuvVMdzfaS ZbbibRKOHdl7BkU0W5+fK46Udl0aU6bAGMtYDuB/yBUpekns+73o3Z3Ark9KuEki6Zh5 UnQgKSAbA19SpFgkqNK14GI8RqktDY6DUqz2mJmOz90QecHTehRrHodtn05w3IXu18CO oOu+3pAGaQQ60HhiL63Q39jGfTtbf5sxyTSS718+GMifhpV4vYXzWBgS7Srr6+TyIxMM 2a2w== 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=KD15ZDmjfSdlfLDXVjRye8uV+9bRt8daakbOkbljeSY=; b=rsDxQAi41ewPlBiv7wRnEyp20e0ReK/h5W16BfNAW346hzqD4h7Yp6WFRIkIC6s/tR TqYn5kRZKiwOngRZi5/mLdlI940KwyXUbTHu59DvlbcDVB/kaAxKAF14NaeNJczfi9YA FgjqtYC4RuIPWl8iEjvSeYmD+qovsu2XxH2uF11jhysjEWvHKzL5quD9kg1ebgS9oipB pDh797hgm3BmvolF3DV8Z8gDD+jdr3avokeVyZGJ43YkDbROofx8JciBNDEzAUrb1ylr kWGpuD+UZxpBhA7JLm+TMQ6VJkolJO6lw54fgdYTgEFdBZ53qH2sbI0Wyyi4A0/op1Ab EOUw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r9si3488603eju.120.2019.09.18.16.09.08; Wed, 18 Sep 2019 16:09:31 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731892AbfIRU4V (ORCPT + 99 others); Wed, 18 Sep 2019 16:56:21 -0400 Received: from verein.lst.de ([213.95.11.211]:36006 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729181AbfIRU4V (ORCPT ); Wed, 18 Sep 2019 16:56:21 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id D21C668B05; Wed, 18 Sep 2019 22:56:16 +0200 (CEST) Date: Wed, 18 Sep 2019 22:56:16 +0200 From: Christoph Hellwig To: Larry Finger Cc: Linus Torvalds , Christoph Hellwig , Linux List Kernel Mailing , Peter Zijlstra , Ingo Molnar , Greg Kroah-Hartman Subject: Re: [PATCH] x86/mm: Remove set_pages_x() and set_pages_nx() Message-ID: <20190918205616.GA23251@lst.de> References: <20190918164121.30006-1-Larry.Finger@lwfinger.net> <20190918164518.GA19222@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 18, 2019 at 01:17:13PM -0500, Larry Finger wrote: > The external module is vboxdrv, which is part of VirtualBox. The setting of > pages to be executable appears to have been added in kernel 2.4.20. > > I am now testing with the former calls to set_pages_x() and set_pages_nx() > disabled. Thus far, VMs seem to be running OK. I will contact Oracle to > discuss the matter with them and see if there is some special case that > requires this facility. If there is one, then they will need to discuss it > with you and Christoph. Well, in this case the API is called /dev/kvm. There is really absolutely no reason for anyone badly reinventing the low-level VT and SVM code when they can just use the kernel kvm support, which already has at least half a dozen users.