Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4322572imm; Sat, 21 Jul 2018 16:20:03 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe+M9S4b7BdZb8tUB5zFIUy/eJKAk0jwZtDx2Ff6BZaD07suT9gt3oksWVkH2wF47yUgc71 X-Received: by 2002:a63:1315:: with SMTP id i21-v6mr6970542pgl.147.1532215203868; Sat, 21 Jul 2018 16:20:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532215203; cv=none; d=google.com; s=arc-20160816; b=EZ0lZPoaIJHtIu6Z4YWDyfJTNCyN9z1K/DXf7qHf/mKpuh4s8vHYI0OaCjoWBpGMB2 KKbTJJ7hX2zkyfPufLX1Vsu3fsqL2oRKRmDAfAmN5EpKpCa70k8H0dPdI2y8EMlUUCAD WZBIuA6wI/kSCnXGAKxW0WWlTpCam8HtL2d07k58KmYBv54TkcJdiylTSh5qUD8A3Z31 JtT8HGieH8cEla6f/M0Yodh6JAC+wjaas2PEneYyJyPsB92ajtIef3pyVZmDmban1wnE 97WmBgUCUoLdMREAu369P73QOisxCShPnJCBFsT5Pr/Qm/IlKQdPih1EFggs7FArnpIW dj1Q== 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 :arc-authentication-results; bh=T0SzDch1GOzE3G6UgJ4bbwECZDIjyedf3SNFZ2mRQTk=; b=FlNBOd5sUXfI9Q3lKnWnAMU5/nqArnec4TxlwFZ091Ow0tyPfhIfnC0sc73e0lU+Vm Z6DG/orXMJ5qwxkrVx55Mhus+DGDwYAm9Y1IPuvkpdsSgbI+xClKzyWFLkV3DuxPJUGg vvPsXAEmcpgSWFzyensg7D4aksMG+swOiUdJcYaAE3iOkOFXoGTUnFuA1vzAihi7pTNu 3GKY2bUrXMGAvi+BtqmA/OZyv8toCp1ZA9FY+kW4KwmS2UjXOwDBJmtphbo+Ai2Edfwe IFTl5cl+fLuRerrEqm4kH2cPI7THfaC1ZD4AKDEDLIlvE919OVf2d5NkUAE2hNK0bYC3 DLLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@runbox.com header.s=rbselector1 header.b=Cm1HPFHN; 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 d21-v6si5090349pgn.222.2018.07.21.16.19.49; Sat, 21 Jul 2018 16:20:03 -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=@runbox.com header.s=rbselector1 header.b=Cm1HPFHN; 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 S1728541AbeGVAMj (ORCPT + 99 others); Sat, 21 Jul 2018 20:12:39 -0400 Received: from aibo.runbox.com ([91.220.196.211]:57364 "EHLO aibo.runbox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728220AbeGVAMj (ORCPT ); Sat, 21 Jul 2018 20:12:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=rbselector1; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject; bh=T0SzDch1GOzE3G6UgJ4bbwECZDIjyedf3SNFZ2mRQTk=; b=Cm1HPFHN76pLxjDCO7XYgDcxKa k8a++pfuiMVdwtp/rDLdGc5Wfk9nXHpCf7bgEhOe1SosTB0v2YLE9Bq4fRopAqwezL/BadAPuSW2z LRqwxjydGBkonfWPOIakpa7zsqV+Luhv/91ssIFVtwfx0KNRaa9lwPY5F0frFB1Aat9G9i9tkN7Bq gh3jXvmtiLzeu3WBF9OkntO1Fqj33w3B3/g8rPx6dRdv3Tlr/2tUwnxnLa7Y8BipMPEH3tg4lt5yA rFM4aQ4gFkDauLcv4IVa04BJ1u/ufEB0XyoTU12NAm37ZNSLywvnA/dZRRWQXbxEOnjtHnLv3iT3y Kj1LL0DQ==; Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1fh18X-0000LB-1P; Sun, 22 Jul 2018 01:18:05 +0200 Received: by mailfront11.runbox.com with esmtpsa (uid:769847 ) (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) id 1fh18M-0005Cb-Gp; Sun, 22 Jul 2018 01:17:54 +0200 Subject: Re: [PATCH 2/2] xen/pv: Call get_cpu_address_sizes to set x86_virt/phys_bits To: Boris Ostrovsky , linux-kernel@vger.kernel.org Cc: "Kirill A. Shutemov" , Andy Lutomirski , Ingo Molnar , "H. Peter Anvin" , Thomas Gleixner , Juergen Gross , xen-devel@lists.xenproject.org, x86@kernel.org, stable@vger.kernel.org References: <20180721194909.23903-1-m.v.b@runbox.com> <20180721194909.23903-2-m.v.b@runbox.com> <90bc371d-a296-51b3-8b78-62106c9690de@oracle.com> From: "M. Vefa Bicakci" Message-ID: Date: Sat, 21 Jul 2018 19:17:49 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <90bc371d-a296-51b3-8b78-62106c9690de@oracle.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-CA Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/21/2018 05:25 PM, Boris Ostrovsky wrote: > On 07/21/2018 03:49 PM, M. Vefa Bicakci wrote: >> diff --git a/arch/x86/xen/enlighten_pv.c b/arch/x86/xen/enlighten_pv.c >> index 439a94bf89ad..87afb000142a 100644 >> --- a/arch/x86/xen/enlighten_pv.c >> +++ b/arch/x86/xen/enlighten_pv.c >> @@ -1257,6 +1257,7 @@ asmlinkage __visible void __init xen_start_kernel(void) >> >> /* Work out if we support NX */ >> get_cpu_cap(&boot_cpu_data); >> + get_cpu_address_sizes(&boot_cpu_data); >> x86_configure_nx(); > > > Have you observed any problems without this call? get_cpu_cap() is only > called here to set X86_FEATURE_NX, and is then called again, together > with get_cpu_address_sizes(), from early_identify_cpu(). Hello Boris, Thank you for the reviews! Without the call to get_cpu_address_sizes, paravirtualized virtual machines do not boot up kernels with versions 4.17 and up at all; this includes dom0 and domU. No domU logs are generated in dom0's /var/log/xen/console/ directory either, despite having earlyprintk=xen on the kernel command line for my test domU. (For the record, I am using the patched version of Xen 4.6.6 provided by Qubes OS R3.2.) Thank you, Vefa