Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2083109pxa; Fri, 7 Aug 2020 02:41:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyS2vdri5yd+rsKdviZd5v16qwRDCW3B7pBBQav3USa7oM4qYoDYq5a2nk5w4LRyJ3JFG/I X-Received: by 2002:a05:6402:1c10:: with SMTP id ck16mr7786455edb.151.1596793281728; Fri, 07 Aug 2020 02:41:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596793281; cv=none; d=google.com; s=arc-20160816; b=NqtXp8YTeqdaWWaIfxeyOLE/WncZuAcHXdZixxEbgdygsjQbBJgDbtzffP6zINFaP8 M4tW40sA3GuVYeauQxEczexQ0Mxzf8bOIvZxy+yPLI2WcvFo1ThIABElCautf8UXi9gv KeGCaQiogO9w2oGl2K23+cC9tiKopjbebK1xnZFz3ejOIvTyHGCokELHBjjfY4Lkme1s vrXvWYLcEEVCKQksN+dipe0YwagFer6X0gqt+IHIit4pjNOF3nfGony3vYEfk0fSRr7e YLM4cZp0r8t54rk6MOUyfaoQH9y93Wurmx+P8RJ2AuPDRXAq6tueoRH7ycjzoXsv6XhF h6Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=+m1NmxTmerVA7hYyNCbbSvji27rWMrnyKtnC8SpXeuw=; b=wAfooC51NoXWr+lJnSNpd2JnQgoReisLPAd/k7afo4Wnc6BNm88j1iombnDOwpT3gA pvkhIYs1WJAGr0kzVONYzL4OdfBE6xS501dmuBZ4WXCr7FoTBGmwDHnVOB1hGrvZaLt2 kay14Is/M7XTdITV3VJLsdLTv/qiGvOMdkcP141FTq6yn1jPLDSvnrl50DgRzjGW5C36 olF8Q4I+IiaVGNvwIEDNXXhJmx1+yoiLZAHM07xOEaB8Vtm0XQhnm8wYJOCIQtwKcNbt TplebjLcmEd+jJ94EcLUXIVCw6j8jj6uf6y70N7CJjDj7/2cFU6+1YrawtCRlvEDjkl2 XMlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=qlCBun+h; 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 i5si4766646edn.15.2020.08.07.02.40.59; Fri, 07 Aug 2020 02:41:21 -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=fail header.i=@infradead.org header.s=casper.20170209 header.b=qlCBun+h; 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 S1726809AbgHGJjn (ORCPT + 99 others); Fri, 7 Aug 2020 05:39:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726923AbgHGJjl (ORCPT ); Fri, 7 Aug 2020 05:39:41 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F7E8C061574 for ; Fri, 7 Aug 2020 02:39:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=+m1NmxTmerVA7hYyNCbbSvji27rWMrnyKtnC8SpXeuw=; b=qlCBun+hYZ3NXDb+jynUBPF5jC h9Q8p+P3btJMKnRDYbi2BAa/sQ74mPob6WiFPQE7IgnqvAvjrylnmYcrWJF9imSnSE5vuAFnJW6mc /y/aeZjjYDdFSGbNOSq2ne5dZoxfVeJSJGt1evL6K7pnXkBi+cEGjvymLKMqvmrbfThHYTlmX1cKW Io2IvfmaI+W/P6SHIXiDMP87UdS6e+JDN+LOCBA1KZFBQ34DxczGekQV+vaYBzHAOYqOYYkcnRbly B7oGexBlDV3M4ABknh2jvnraRpH0zOmNsZphbhXmzYDft4HfoPllAJsfVSOHfTQFQbje2Cz2bPhXY Zk297Ehw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1k3yqO-0001GI-HQ; Fri, 07 Aug 2020 09:39:24 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id AC842300446; Fri, 7 Aug 2020 11:39:16 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 8E2DC23EA04DA; Fri, 7 Aug 2020 11:39:16 +0200 (CEST) Date: Fri, 7 Aug 2020 11:39:16 +0200 From: peterz@infradead.org To: Juergen Gross Cc: xen-devel@lists.xenproject.org, x86@kernel.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, Andy Lutomirski , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Deep Shah , "VMware, Inc." , Boris Ostrovsky , Stefano Stabellini Subject: Re: [PATCH v3 4/7] x86/paravirt: remove 32-bit support from PARAVIRT_XXL Message-ID: <20200807093916.GF2674@hirez.programming.kicks-ass.net> References: <20200807083826.16794-1-jgross@suse.com> <20200807083826.16794-5-jgross@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200807083826.16794-5-jgross@suse.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 07, 2020 at 10:38:23AM +0200, Juergen Gross wrote: > -# else > - const unsigned char cpu_iret[1]; > -# endif > }; > > static const struct patch_xxl patch_data_xxl = { > @@ -42,7 +38,6 @@ static const struct patch_xxl patch_data_xxl = { > .irq_save_fl = { 0x9c, 0x58 }, // pushf; pop %[re]ax > .mmu_read_cr2 = { 0x0f, 0x20, 0xd0 }, // mov %cr2, %[re]ax > .mmu_read_cr3 = { 0x0f, 0x20, 0xd8 }, // mov %cr3, %[re]ax > -# ifdef CONFIG_X86_64 > .mmu_write_cr3 = { 0x0f, 0x22, 0xdf }, // mov %rdi, %cr3 > .irq_restore_fl = { 0x57, 0x9d }, // push %rdi; popfq > .cpu_wbinvd = { 0x0f, 0x09 }, // wbinvd > @@ -50,19 +45,11 @@ static const struct patch_xxl patch_data_xxl = { > 0x48, 0x0f, 0x07 }, // swapgs; sysretq > .cpu_swapgs = { 0x0f, 0x01, 0xf8 }, // swapgs > .mov64 = { 0x48, 0x89, 0xf8 }, // mov %rdi, %rax > -# else > - .mmu_write_cr3 = { 0x0f, 0x22, 0xd8 }, // mov %eax, %cr3 > - .irq_restore_fl = { 0x50, 0x9d }, // push %eax; popf > - .cpu_iret = { 0xcf }, // iret > -# endif I was looking at x86_64 paravirt the other day and found we actually have pv_ops.cpu.iret users there.. So we want to change the above to also patch iret on x86_64 or do we need to fix x86_64 to not have pv-iret?