Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Aug 2018 12:25:36 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Kyle Evans <kevans@freebsd.org>
Cc:        John Baldwin <jhb@freebsd.org>, FreeBSD Current <freebsd-current@freebsd.org>,  Tycho Nightingale <tychon@freebsd.org>
Subject:   Re: LUA loader: bhyve now doesn't?
Message-ID:  <CANCZdfpK8K=h9iff5CoAwNLiR_5j6d53mmpzPPqXD3_DALy2Zw@mail.gmail.com>
In-Reply-To: <CANCZdfoy602VkTnfg-fwQLdz4z27NF9LGmf11_0b7LuMLik7bg@mail.gmail.com>
References:  <20180819152253.bbcrefdvynl7y5ka@ler-imac.local> <CANCZdfqHV7Fy%2BbJAuMv5gfJmPJqh1QmKqjGz-bVH2wh6NyqeVQ@mail.gmail.com> <20180819153526.7ruovrpmdsimkmfj@ler-imac.local> <CANCZdfr2h=e-4%2BD9JYR3TkKyaEywYkCnXmyGmVMq6-NpN=GX2w@mail.gmail.com> <CACNAnaGh%2BgpwcDE3TQKd9xCnJpD4GtE2Z0wwjagKMUNVhdHznw@mail.gmail.com> <167d1cb1-7232-52bb-9a73-6f109c437a63@FreeBSD.org> <CACNAnaHDgXAP-gb7hwmk3z-GRTHz_mdKi3JQT4e3ucR0FP4ZiA@mail.gmail.com> <CANCZdfoy602VkTnfg-fwQLdz4z27NF9LGmf11_0b7LuMLik7bg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Aug 19, 2018 at 11:10 AM, Warner Losh <imp@bsdimp.com> wrote:

>
> I think including both loaders in userboot is probably a no-start
>> based on the current interface.
>>
>
> Yea, it would be a challenge... Sadly, we have POLA violations either way
> we jump here.
>

Just to summarize the IRC conversation:

I just committed r338064 which reverts userboot.so to 4th always. This is a
quick band-aide until a longer term solution happens.

There was the suggestion of adding a hack so that if there was no lua, we
could use the 4th interpreter instead. There's a number of ways to do this,
but they all involve a bit of work.

There was the suggestion of installing a userboot_{lua,4th}.so and hard
linking (but this provides a built-in way to get the right userboot_*.so to
use with a bhyveload -l lessening the burden).

The notion of putting some smarts into bhyveload to cope, since it's also
updated at the same time that userboot.so is, typically.

There may be another notion as well. Working through the details and will
present a plan when I have it.

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfpK8K=h9iff5CoAwNLiR_5j6d53mmpzPPqXD3_DALy2Zw>