Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4546644pxa; Mon, 10 Aug 2020 11:44:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvPa9QyXocRe0ycs55JpR7Pw75+8bSLFP7prG2QP9cBf+aRgBfmK8NhMcQ2ZptuuGCgKCZ X-Received: by 2002:a17:906:ce59:: with SMTP id se25mr24414099ejb.359.1597085042174; Mon, 10 Aug 2020 11:44:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597085042; cv=none; d=google.com; s=arc-20160816; b=vUQvaw3YKawI3Sh6h+SO0VPNfBrW2PU6bGwlrPZrRrzkoogUE03n0OrNd6+OEj7NNz 27Cb4wAx51UMd9XodX8UTaSXCmm8dOGSzDcfFNRCxvz9xwp8R9FCazTBrziscOUvo1u4 JmnM6C1/cM80AY4iE9Pj+EWecIkFCotseyp7TUtnmkLBXKtjXD5aLcnM5b0OGe+beFnp XApdIh6FmxD+qEyuxdFwny7IoDYldPSP08UTSUGETJfYHH/3KlHLU8ZPbt9umVbbaMZP 0NZXMumxnHgX1F2a7VfgnXTQjF9YXFkg4M2rmqBqkMCWuDhHbSgDFHHAZcQ+AyA5TxZC LJzQ== 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; bh=ZBfXPmEQQ/EyzBuAfUzhPD53s6zS3vtALGm7carMdVQ=; b=d/Z/P+7REi0DbT+fpDnDdCpn0V3dVON9zmsknJ/9h7nBVbORxOYREOjeDs6IdRu3ts oQEaheb2lQfvoZxkzGYifWU/3CbGcgRbcIDYeb7PX5FgXx2Flrg7h5bNCnXQSrB3Kpbh /gZe8+JyMuAweVFRyl+AmBnAPKIJ5lIMYmDq4GPs0lNVLICJZghNMaH/+Z+2SnQLhIFE p0nwOF6LtfBfaK9XHcvNbgu6M4n6lbZwm+s1oQdivYmpDb8QALYYDvkFuXI398OCWxS1 4cvg/jq81icQzt9RGISZqvF+zsFq+CKe/Nwi4ms5o+o8a7hzgt6UvXFJxmzVMDZb8T9+ ZEKA== 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 k22si11175340edx.491.2020.08.10.11.43.39; Mon, 10 Aug 2020 11:44:02 -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 S1728228AbgHJSmy (ORCPT + 99 others); Mon, 10 Aug 2020 14:42:54 -0400 Received: from mx2.suse.de ([195.135.220.15]:35330 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728151AbgHJSmx (ORCPT ); Mon, 10 Aug 2020 14:42:53 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id D34E6AB55; Mon, 10 Aug 2020 18:43:12 +0000 (UTC) Subject: Re: [PATCH v3 4/7] x86/paravirt: remove 32-bit support from PARAVIRT_XXL To: Boris Ostrovsky , xen-devel@lists.xenproject.org, x86@kernel.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org Cc: Andy Lutomirski , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Deep Shah , "VMware, Inc." , Stefano Stabellini References: <20200807083826.16794-1-jgross@suse.com> <20200807083826.16794-5-jgross@suse.com> <4c5fb964-6acb-6bb8-4eff-0bcb67d922f2@suse.com> <8506b0cd-6f7e-7505-d9b9-e1468cefa4ec@oracle.com> From: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= Message-ID: Date: Mon, 10 Aug 2020 20:42:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <8506b0cd-6f7e-7505-d9b9-e1468cefa4ec@oracle.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10.08.20 18:53, Boris Ostrovsky wrote: > On 8/10/20 12:39 AM, Jürgen Groß wrote: >> On 09.08.20 04:34, Boris Ostrovsky wrote: >>> On 8/7/20 4:38 AM, Juergen Gross wrote: >>>> @@ -377,10 +373,7 @@ static inline pte_t __pte(pteval_t val) >>>>   { >>>>       pteval_t ret; >>>>   -    if (sizeof(pteval_t) > sizeof(long)) >>>> -        ret = PVOP_CALLEE2(pteval_t, mmu.make_pte, val, (u64)val >> >>>> 32); >>>> -    else >>>> -        ret = PVOP_CALLEE1(pteval_t, mmu.make_pte, val); >>>> +    ret = PVOP_CALLEE1(pteval_t, mmu.make_pte, val); >>>>         return (pte_t) { .pte = ret }; >>> >>> >>> Can this now simply return (pte_t) ret? >> >> I don't think so, but I can turn it into >> >>   return native_make_pte(PVOP_CALLEE1(...)); > > > I thought that since now this is only built for 64-bit we don't have to > worry about different pte_t definitions and can do what we do for > example, for __pgd()? Yes, I did that: return (pte_t) { ret }; Juergen