Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp723781pxk; Thu, 3 Sep 2020 10:59:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvsU1aHT9ss6JqbYUyQsrvXINk6KIud0G3UvKCnWwhOQ5hAxJ2NLI55xOtqvWZEPrhGiwx X-Received: by 2002:a05:6402:608:: with SMTP id n8mr1566998edv.332.1599155981864; Thu, 03 Sep 2020 10:59:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599155981; cv=none; d=google.com; s=arc-20160816; b=VqvXNXLH89QjKHd6fSSfjebE5s/4tQbhXqUbKzucJCagZoDXYHICDglRWXSts4Mo2q J88xnRa0OzFRGyFH0XGRWVF0grKqLpHKvxvR3aFsP8dX2syFgaf4kS0FLq5FX39iGZbs grgdSVfXLm1o6/NsgtRhLBr/htSjzuIKz1TVLOOdbryNvfOOAspldq4j4VRc+5XW8Aja xKa6rbOlrYpy7RzHhunS7gsEyL5umb2LaNc5zqvpueJ5VxVblrRQwueu/eMRkodUZvH0 eRDPHdov6ZpeWzZhNRGxb80NkwXFuXlCaKj854s2+cREQGkSD7ZZPcpkM/4zxOjl4CkV dmKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=R7ZL8pTZbj4JiHniG1B9lUVGN1DSqomiXYlNdiGH0zI=; b=vQ9jhu0A+VtPY0e+qPkzvGn2dh353mfkFJ0A+HwJ85prPb4xLr/E0TDSC16ftMRFgy L364H8YRHF9Zjvxgb5RYV1QEDfzjJhKfzLwsNKC2HTT2hyjvU73ec32bXEkHx6SqPOf+ 1cSPZ9m/hJtw8DLamTNc2JRi5TV6dqLI/ms6jIxX17kTJgY/BHqVbP+6OYQ0O5zP8G+f /8Re8q0dECh2f4E24t9+nWOsuzDHU7jN0a2/E/Dh7ZZ4xgz8fvAXcR9RZhLHT6cLCmS8 R9m8OTqzQxZ3zK/lJH3Z0/VkTwt3vZul6WphiGyPRzbKrBfxZRmu/znXUV9NFkmgxpXF 5GQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="VJ/LoYWg"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r25si2135301eds.157.2020.09.03.10.58.49; Thu, 03 Sep 2020 10:59:41 -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; dkim=pass header.i=@google.com header.s=20161025 header.b="VJ/LoYWg"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728458AbgICR6M (ORCPT + 99 others); Thu, 3 Sep 2020 13:58:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728312AbgICR6M (ORCPT ); Thu, 3 Sep 2020 13:58:12 -0400 Received: from mail-ot1-x341.google.com (mail-ot1-x341.google.com [IPv6:2607:f8b0:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64EB8C061245 for ; Thu, 3 Sep 2020 10:58:11 -0700 (PDT) Received: by mail-ot1-x341.google.com with SMTP id i4so3550508ota.2 for ; Thu, 03 Sep 2020 10:58:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=R7ZL8pTZbj4JiHniG1B9lUVGN1DSqomiXYlNdiGH0zI=; b=VJ/LoYWgjxcPKdh3qVWyDDMIR2oPoCRxoVXtgB2kLRI3RdpBQrAHXT2TM0WA0Y+ns6 hy7M151o0a/Z2WK5PFoc+5HzHc1J7u2M7jMZC3m1875Ew02+6wBINxncBe1uv8gpCKNs u8aXYBf1U91KlLHKBCkSdNIPPFFavY9fr3P6vVNGI936lxJxwLkLZ7oVbaplpMZmoRTD mGp4xT6Me1FA0RLIIOhaeoNYp6P3eYaU2366hHzgrmgM63DuZKcUmYp05uyWulSe7HYo usQnnU23yce9b8IwnyCODAnkJaeI/1o+khG9cN4rghPQtk5tZigaOLFWG6lbqaUhLF4u 00kg== 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:from:date :message-id:subject:to:cc; bh=R7ZL8pTZbj4JiHniG1B9lUVGN1DSqomiXYlNdiGH0zI=; b=s9Xwj6Gsaf6jgV/rYaQa2rvaDoeO2u5mv4ZPJaMtQnCcJUQsbkeHbBw7m10SYtue9m XevKY60c3VbUVaJJ9vB6N5CEJNZN7cgRtRdzbVaUiyo8qug1PRhT2pPZ8LjQfPs2+Xak a18v5h3dYWqRHiC0jPAfVEtGNq8qlDP691EyvxxzShHDtNMPgDQFksPGilERa6UA2rB5 SqdHRqBxh+4VNZZDO0G5wgmw7kLKc0lsmqdvUvM8SH8HIjc4woUjaOVWJfV3IzIQaz4j h7N+IeuayHX6dmTYhVRdnFp21Oj+3N3tP6X+x95oduRjLs06tfxgevD6IKmoZBGFRyml B3RQ== X-Gm-Message-State: AOAM531zpHqmVZS5PIITCDxSJh+i+BiNx3afdpM2bkBY3okswVbjbR0n FBzY3EhG6+lldEOGyN3KO1OCd1b7czXHFF6h14Ttng== X-Received: by 2002:a05:6830:18ca:: with SMTP id v10mr2589170ote.295.1599155890126; Thu, 03 Sep 2020 10:58:10 -0700 (PDT) MIME-Version: 1.0 References: <20200903141122.72908-1-mgamal@redhat.com> In-Reply-To: <20200903141122.72908-1-mgamal@redhat.com> From: Jim Mattson Date: Thu, 3 Sep 2020 10:57:58 -0700 Message-ID: Subject: Re: [PATCH] KVM: x86: VMX: Make smaller physical guest address space support user-configurable To: Mohammed Gamal Cc: kvm list , Paolo Bonzini , LKML , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Joerg Roedel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 3, 2020 at 7:12 AM Mohammed Gamal wrote: > > This patch exposes allow_smaller_maxphyaddr to the user as a module parameter. > > Since smaller physical address spaces are only supported on VMX, the parameter > is only exposed in the kvm_intel module. > Modifications to VMX page fault and EPT violation handling will depend on whether > that parameter is enabled. > > Also disable support by default, and let the user decide if they want to enable > it. > > Signed-off-by: Mohammed Gamal I think a smaller guest physical address width *should* be allowed. However, perhaps the pedantic adherence to the architectural specification could be turned on or off per-VM? And, if we're going to be pedantic, I think we should go all the way and get MOV-to-CR3 correct. Does the typical guest care about whether or not setting any of the bits 51:46 in a PFN results in a fault?