From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: redhat.com, ip: 209.132.183.28, mailfrom: lersek@redhat.com) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by groups.io with SMTP; Fri, 19 Jul 2019 07:33:34 -0700 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 15AD53091783; Fri, 19 Jul 2019 14:33:34 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-116-195.ams2.redhat.com [10.36.116.195]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3402B26FA1; Fri, 19 Jul 2019 14:33:32 +0000 (UTC) Subject: Re: [PATCH v3 06/35] OvmfPkg/XenResetVector: Add new entry point for Xen PVH To: Anthony PERARD , Andrew Cooper Cc: devel@edk2.groups.io, xen-devel@lists.xenproject.org, Ard Biesheuvel , Jordan Justen , Julien Grall , =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= References: <20190704144233.27968-1-anthony.perard@citrix.com> <20190704144233.27968-7-anthony.perard@citrix.com> <20190719102008.GB1208@perard.uk.xensource.com> From: "Laszlo Ersek" Message-ID: <03cc01a5-d6a8-84b7-d382-d83fadea486b@redhat.com> Date: Fri, 19 Jul 2019 16:33:31 +0200 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: <20190719102008.GB1208@perard.uk.xensource.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Fri, 19 Jul 2019 14:33:34 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 07/19/19 12:20, Anthony PERARD wrote: > On Fri, Jul 05, 2019 at 02:57:06PM +0100, Andrew Cooper wrote: >> On 04/07/2019 15:42, Anthony PERARD wrote: >>> diff --git a/OvmfPkg/XenResetVector/Ia16/ResetVectorVtf0.asm b/OvmfPkg/XenResetVector/Ia16/ResetVectorVtf0.asm >>> new file mode 100644 >>> index 0000000000..958195bc5e >>> --- /dev/null >>> +++ b/OvmfPkg/XenResetVector/Ia16/ResetVectorVtf0.asm >>> +vtfSignature: >>> + DB 'V', 'T', 'F', 0 >>> + >>> +ALIGN 16 >>> + >>> +resetVector: >>> +; >>> +; Reset Vector >>> +; >>> +; This is where the processor will begin execution >>> +; >>> + nop >>> + nop >> >> Why two nops? > > I don't know, this is existing code that I duplicated to allow adding a > new entry point. (I wanted to use --find-copies-harder when sending the > patch, but forgot this time. Not a big problem; while reviewing v3, I did such comparisons myself, in my local clone. Feel free to skip "--find-copies-harder" when posting v4 too; I think there isn't much churn going on in parallel right now. However, a new request for v4: please make sure that the new modules / paths introduced by this patch set are covered in Maintainers.txt. > This part of the chunk would not be there.) Regarding the NOPs: all I can tell you is that they originate from commit 8332983e2e33 ("UefiCpuPkg: Replace the un-necessary WBINVD instruction at the reset vector with two NOPs in VTF0.", 2011-08-04). Whether that change made sense back then, let alone if it makes sense now: no clue. Thanks Laszlo