Received: by 10.213.65.68 with SMTP id h4csp153771imn; Thu, 15 Mar 2018 12:30:25 -0700 (PDT) X-Google-Smtp-Source: AG47ELuQtIe5Twgd9NfodDG3vaRgYFJpM+Lo/P6B49vWO6I0PzJxjzCCmvxbwWJsZzVs948OQaQC X-Received: by 10.99.166.10 with SMTP id t10mr7562960pge.198.1521142225389; Thu, 15 Mar 2018 12:30:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521142225; cv=none; d=google.com; s=arc-20160816; b=xSzP0238Ywckhl6bSSniZDJ+x6vW6I87bgkCZXcq/svM6qxKQc+MtyM/dUDlp1lZWM zJnJ3cAnpzfcs2rWur0fO4/nR72UQSkC1aSR+hDPRc2acJPTxwxvXCBVFRhENjbXi7gZ hIXxZ+Lv8awnP6+fwqtvMZ8sByuKw5reA8jK8NWqLyKs1HQIryeasApKjnjEwpq1W34n 1WYMdXBTi0dtj+7mLT4G+HaO+nSjXzdze1UG3EDVU2YGXuK638wMKXnQhTxhqXS9R2Q3 Cpz7gieuM1LbDuBPXISH6qXFMPc37Vm3L07wRzKjaJw+Uu5Yxc6poJqF95FZDJdYK2yP VX3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=LvlHwr68X/+oZbkgXfNPYGnqK4KXosJW3pUtZl+Y2U4=; b=zLUQ2W0tT9vNvNaWgS1Cey0WO/X9SIyj67pcUHY2B2BKhpgo96GP7rOkALZUM28DJ/ ZfSVXhGTwt5/edGYMdm+ldXIqrGQlDCvV8JGesXRwr+tgJzjJ8wgVAz1PhX9cTw6mcSE b2TTxT20usvt4uSdJmrmTefsUts2m3ejFeQIFgD+h0YQc+90fy1Clwu1Ec9yoBMYTzHC KwloruccPy87rviWLu1SNtcCdcLfbvWUA68TUYjaR9N2Xr/kScOK1UYWrFb6s/oaX0xF KkGjB8ov4WL58t9rJjihHomTz0bpkdKUHKxX3gwet/MU6fa65TLUa9XLaImEwiV1GXqD M4LA== 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 w5si3816590pgv.514.2018.03.15.12.30.09; Thu, 15 Mar 2018 12:30:25 -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 S932493AbeCOT3G (ORCPT + 99 others); Thu, 15 Mar 2018 15:29:06 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:54414 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752768AbeCOT3E (ORCPT ); Thu, 15 Mar 2018 15:29:04 -0400 Received: from p4fea5f09.dip0.t-ipconnect.de ([79.234.95.9] helo=nanos.glx-home) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1ewYYe-0006cZ-5l; Thu, 15 Mar 2018 20:29:00 +0100 Date: Thu, 15 Mar 2018 20:28:59 +0100 (CET) From: Thomas Gleixner To: =?ISO-8859-2?Q?Radim_Kr=E8m=E1=F8?= cc: Vitaly Kuznetsov , Paolo Bonzini , kvm@vger.kernel.org, x86@kernel.org, "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , "Michael Kelley (EOSG)" , Mohammed Gamal , Cathy Avery , Bandan Das , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 7/7] x86/kvm: use Enlightened VMCS when running on Hyper-V In-Reply-To: <20180315170202.GA5180@flask> Message-ID: References: <20180309140249.2840-1-vkuznets@redhat.com> <20180309140249.2840-8-vkuznets@redhat.com> <2747cc75-b549-61bb-9c1b-0f554a49b536@redhat.com> <87zi399xih.fsf@vitty.brq.redhat.com> <20180315170202.GA5180@flask> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-351697842-1521142140=:1520" X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-351697842-1521142140=:1520 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 8BIT On Thu, 15 Mar 2018, Radim Kr?m?? wrote: > 2018-03-15 16:19+0100, Vitaly Kuznetsov: > > This works. But hell, this is a crude hack :-) Not sure if there's a > > cleaner way to find what needs to be patched without something like jump > > label table ... > > Yeah, I can see us accidently patching parts of other instructions. :) > > The target instruction address can be made into a C-accessible symbol > with the same trick that vmx_return uses -- add a .global containing the > address of a label (not sure if a more direct approach would work). > > The evil in me likes it. (The good is too lazy to add a decent patching > infrastructure for just one user.) Can we just use jump labels please? There is agreement that 4.17 will have a dependency on a jump label capable compiler for x86. Thanks, tglx --8323329-351697842-1521142140=:1520--