[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 5/5] x86: don't build unused entry code when !PV32


  • To: Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Mon, 4 Jan 2021 16:53:58 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lcGyI5y+1HtOFTZbEViFUMs+FHUJaXExcU7E1z8Z6fA=; b=To7jVbGd1Wm1H/QI/UQ7PsY9TS6y5Wldw5AQ47a7mzUinrFu+VNXEfrqyPA0HcBbDnX20L6/YicpEm31s1cY0UjlV28NXVXtzfDqPeVyWmpsx94R7sO0hMM4A1anM94QdKL1faXk8uw9MGoc/4QER3sQMeT3Y7Cw6R+sWdm7xk42USXuIWKVoqLro5mSCpkBlhQ2r7/CIPT3MMRFzfLiIuO0MSrcBzZK+h7HESIAxUdl2VAuN9d3jFsPs1L7pVtFWBjmrFXDE9Mz4wFXMcl2Z+WchU+HYu2Nh0LQNdMm+7NNi8NR5jbyskE6oo8qvumVeLBl/KHtR6BSsMlmKbMWZw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RamRLRuKFgwOVJlVXzo/ohZqWmtyuIxo8Sz/OccVQDmILbie/odLNfu5iml3p90Dcyh2Q6v5UJJjv/SAwSipBajN0oslIL91btD0fQxi3jb95+CzGhq0cFZZ8iZ6IQDRU7c0AIav6ugdPpVg0hBn9TZb5PR0+oz/F7vBe68TJeksfls092R9iNoLU+b9S4IqIL/fkLYrThIGauwh+znyWtqn0XTZzAxcuCL0QrNd5X/n/ukwfpNB8ee68EHeKbFio6q1lphwuU4Swk4nTeSYPX7cK0Ug2bhKaGzmv8AEp2DzMFvsTAwDl6Vf50la2Kfm9tn9riveQ92RUJyhIfpVuw==
  • Authentication-results: esa4.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Mon, 04 Jan 2021 15:54:32 +0000
  • Ironport-sdr: 5bZPOpCJaCS+X7Kvl+fusLlfI0wPGgxceqxwds3plYtA/mCgToCBMjkRn3DyqIX4G4aKzt10s4 Ce9+qtcaA7EMzjlMXJMAds3r0bSJ9QpknaRQImwPjy/iEtg+qCR23iE0/KKD8mHsmOI9fRi1GV i42+Iwf25E6gNtcJPXHUL3YwJ01FCKeSsWyVkceotcJ8VNiQwVGjQhkAKHtcxuFHBQ404qh/dk i/LSzw8tHtes4Og9ebm5akIYAJ34PPqZJYelt/QidgO6EiaO77/mj6dnHczrs2xjIL5Rw2w0f7 nds=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Mon, Jan 04, 2021 at 02:56:12PM +0100, Jan Beulich wrote:
> On 28.12.2020 16:30, Roger Pau Monné wrote:
> > I would like to have Andrew's opinion on this one (as you and him tend
> > to modify more asm code than myself). There are quite a lot of
> > addition to the assembly code, and IMO it makes the code more complex
> > which I think we should try to avoid, as assembly is already hard
> > enough.
> 
> Well, while I can see your point (and I indeed asked myself the same
> question when making this change), this merely follows the route
> started with the addition on CONFIG_PV conditionals. If we think that
> prior step didn't set a good precedent, we ought to undo it.
> Otherwise I see no good argument against doing the same kind of
> transformation a 2nd time (and further ones, if need be down the
> road).

I think we need to apply some common sense and reach consensus about
where it's fine to make code conditional at build time as to not make
the existing code much harder to read and reason about. This is mostly
a subjective decision, so I understand your concern.

I still think I would like Andrew opinion on this one, as said you and
him are the ones mostly doing assembly coding. I find it already hard
to follow myself without the conditionals.

Thanks, Roger.



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.