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

Re: [PATCH 3/3] x86/boot: fold branches in video handling code


  • To: Jan Beulich <jbeulich@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Wed, 8 Sep 2021 14:49:04 +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; bh=DtULsXlCgXIOQLWWWQwNgu4W3fzzOpTBB/X0vAO+RWA=; b=RYj0K05T0Jg1CHWaGlx+kJLXOAw7CRi09t8QV6w2fko/yOHzX+UO9w6cVaV2ZsEHx5loNp/oIumnyUaehnYtglZk833iUUtP5Mx/yXRGEB96zeddtSD0SA44YQ13TPmgcvT76pzPuSPdsOr+ShLjJTt07l+gv7mw04XVMW2lMTX/8R2Dzye22nRi2bqbzsxTOsYvvgmNXBPlroLGczxZ0/xPVVVqQkNL6G5XUCxr4vpDLURoo0YKZ/OLIuaR3sWgU1QUDh/DQrq7a3hM30DIWJcE+enllrXOEeyUAst/3WFbuKm0V0Udc2cORNKlmTyWRlu1B3Iukfg/SaFxRtToyg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QqXHydLbR7CT3aaSXvofUG6GsZhmgH2gJK1HP523f6z2jSx/9zGRJRx8rTM8C9tp00zu1nNgDIFiqrSW1IP6u00GL+G2xs3rcv4iemX6p0PltvYqiwaIsqC0vPTO11ahIxiyZtORtrKL8Ws3JglABS2xxN/PFJRLoMlKumlliSLgIv/TZLAnzvT1ck+qIrO2rwgfS8Ujh/u1IthN95T7GxNRjpwPULNki59l3qrvYFwYR8R+KbrwkyuNfCMomvuzWlMBfnEHCnX8t1bds/uIzN1N4AZ98do67UenZI5RnuN7/OU6Db2Siw1NubsOHy+L+gaxjrrhoDSmlargtSveaw==
  • Authentication-results: esa4.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Wed, 08 Sep 2021 13:49:18 +0000
  • Ironport-hdrordr: A9a23:rj4KqKkTx9ffw4fos5fCsg2DgG/pDfP4imdD5ihNYBxZY6Wkfp +V8cjzhCWftN9OYhodcIi7SdC9qADnhOZICOgqTMCftWbdyQ6Vxe1Zg7cKhgeQfREWldQto5 uIEZIObOEYZGIS5aqU3OD7KadG/DDtysCVbJLlvhVQpHZRGsJdBmlCazqzIwlTfk1rFJA5HJ 2T6o5svDy7Y0kaacy9Gz0sQ/XDj8ejruOvXTc2QzocrCWehzKh77D3VzKC2A0Fbj9JybA+tU DYjg3C4Lm5uf3T8G6W64aT1eUapDOtouEzTvBkuPJlZQkEuTzYKriJbofy8Azc+ImUmRcXeZ f30lcd1o9ImgjslymO0GHQMk/boX8TAlLZuC+laEHY0L/EbSN/D9AEiZNScxPf5UZltNZg0L hT12bcs5ZMFxvPkCn0+tCNDnhR5z+JiGtnlfRWg21UUIMYZrMUpYsD/FlNGJNFGC7h8ogoHO RnEcmZ7vdLdlGRaWzfowBUsa6Rtl9aJGb6fqEmgL3g79F7pgEG86JD/r1hop4pzuNNd3Flj9 60TphVqA==
  • Ironport-sdr: uNySJenAmPay8mybxv87qnmwJEb+pvmhv0Z5N242NqaN/k9Lz1h4VQDs8XhHdv+57jNqGy54oj gYOjpEDGh5afllPVCHokReWVkKdGafRP//HxKdr0VcjT1Df0Xz21N8O7FAIpkEqpY4JkUvgnkh APBWceMIi1kK91lfXpKo4+tlIZux/bLAC3OOFXJdssBOg9eBNKVGIhpHpFfOluDigi1Mf4LzeI vE4wrshJjgrHhkHLuyoKfPNDiUAUoc5Ycbp2fIH8I6fVyfFYyoikxPC5+XxPILNK4TSKguYsdC Sr9Zr2fgtZzgSDkEQEEHIDAm
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 08/09/2021 14:24, Jan Beulich wrote:
> Using Jcc to branch around a JMP is necessary only in pre-386 code,
> where Jcc is limited to disp8. Use the opposite Jcc directly in two
> places. Since it's adjacent, also convert an ORB to TESTB.
>
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
> ---
> This is an easy change reducing the overall trampoline size a little.
> We're pretty close to needing a 4th page, which I'd prefer to avoid for
> as long as we can.

Honestly, it is high time we ditch all of this.

The interactive video mode menu only appears to have confused users
who've encountered it, and it is a weird thing to have in the first place.

Furthermore, the Multiboot1/2 specs have supported passing
video/edid/etc information for longer than Xen has been around.

I am not aware of anything we currently obtain via BIOS INT calls which
we can't rely on the bootloader for.  Furthermore, if the bootloader
can't provide it, we've got 0 chance of our 16bit assembly being able to
do something useful...

Dropping all of that should remove the bsp-only path from the
trampoline, taking it down to just a single page and removing a lot of
fragile code.  It gets us closer to being able to support Coreboot
(where the current logic says "not EFI?  I can make BIOS INT calls
then", and is wrong).

I know its a larger piece of work, but the wins are substantially larger.

~Andrew




 


Rackspace

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