<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in interp_lua.c</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>d3d381b2 - userboot: handle guest interpreter mismatches more intelligently</title>
        <link>http://172.16.0.5:8080/history/freebsd-12.1/stand/common/interp_lua.c#d3d381b2</link>
        <description>userboot: handle guest interpreter mismatches more intelligentlyThe switch to lualoader creates a problem with userboot: the host isinclined to build userboot with Lua, but the host userboot&apos;s interpretermust match what&apos;s available on the guest. For almost all FreeBSD guests inthe wild, Lua is not yet available and a Lua-based userboot will fail.This revision updates userboot protocol to version 5, which adds aswap_interpreter callback to request a different interpreter, and tries todetermine the proper interpreter to be used based on how the guest/boot/loader is compiled. This is still a bit of a guess, but it&apos;s likelythe best possible guess we can make in order to get it right. Theinterpreter is now embedded in the resulting executable, so we can open/boot/loader on the guest and hunt that down to derive the interpreter itwas built with.Using -l with bhyveload will not allow an intepreter swap, even if theloader specified happens to be a userboot with the wrong interpreter. We&apos;llsimply complain about the mismatch and bail out.For legacy guests without the interpreter marker, we assume they&apos;re 4th.For new guests with the interpreter marker, we&apos;ll read it and swap overto the proper interpreter if it doesn&apos;t match what the userboot we&apos;re usingwas compiled with.Both flavors of userboot are installed by default, userboot_4th.so anduserboot_lua.so. This fixes the build WITHOUT_FORTH as a coincidence, whichwas broken by userboot being forced to 4th.Reviewed by:	imp, jhb, araujo (earlier version)Approved by:	re (gjb)Differential Revision:	https://reviews.freebsd.org/D16945

            List of files:
            /freebsd-12.1/stand/common/interp_lua.c</description>
        <pubDate>Sat, 01 Sep 2018 02:23:45 +0000</pubDate>
        <dc:creator>Kyle Evans &lt;kevans@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>2ac6dfb0 - lualoader: Print error messages from command failures at the prompt</title>
        <link>http://172.16.0.5:8080/history/freebsd-12.1/stand/common/interp_lua.c#2ac6dfb0</link>
        <description>lualoader: Print error messages from command failures at the promptPreviously lualoader would remain silent, rather than printingcommand_errmsg or noting that a command had failed or was not found.Approved by:	re (gjb)

            List of files:
            /freebsd-12.1/stand/common/interp_lua.c</description>
        <pubDate>Fri, 31 Aug 2018 15:02:53 +0000</pubDate>
        <dc:creator>Kyle Evans &lt;kevans@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>bef6cd49 - stand/interp_lua: correct errorr =&gt; error</title>
        <link>http://172.16.0.5:8080/history/freebsd-12.1/stand/common/interp_lua.c#bef6cd49</link>
        <description>stand/interp_lua: correct errorr =&gt; error

            List of files:
            /freebsd-12.1/stand/common/interp_lua.c</description>
        <pubDate>Sun, 11 Mar 2018 04:10:18 +0000</pubDate>
        <dc:creator>Kyle Evans &lt;kevans@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>f91f3926 - loader.lua: Expose errno table to lua</title>
        <link>http://172.16.0.5:8080/history/freebsd-12.1/stand/common/interp_lua.c#f91f3926</link>
        <description>loader.lua: Expose errno table to luaReviewed by:	kevansSponsored by:	Dell EMC IsilonDifferential Revision:	https://reviews.freebsd.org/D14454

            List of files:
            /freebsd-12.1/stand/common/interp_lua.c</description>
        <pubDate>Tue, 20 Feb 2018 19:39:48 +0000</pubDate>
        <dc:creator>Conrad Meyer &lt;cem@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>afad05b2 - lualoader: Add ability to intercept cli commands</title>
        <link>http://172.16.0.5:8080/history/freebsd-12.1/stand/common/interp_lua.c#afad05b2</link>
        <description>lualoader: Add ability to intercept cli commandsIf we failed to execute the input line as pure lua, run the command throughparse for consistent argument parsing. Pass the parsed arguments through toa global &quot;cli_execute&quot; written in Lua, which is expected to either handle itor pass it back through to interp_builtin_cmd (via loader.command).lua-handled cli commands will then exist as globals in whatever module theymost belong in, and invocations at the loader prompt will magically dispatchto them if they exist.Reviewed by:	impDifferential Revision:	https://reviews.freebsd.org/D14450

            List of files:
            /freebsd-12.1/stand/common/interp_lua.c</description>
        <pubDate>Tue, 20 Feb 2018 17:46:50 +0000</pubDate>
        <dc:creator>Kyle Evans &lt;kevans@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>77d4be50 - Lua loader: Add barebones &quot;lfs&quot; module</title>
        <link>http://172.16.0.5:8080/history/freebsd-12.1/stand/common/interp_lua.c#77d4be50</link>
        <description>Lua loader: Add barebones &quot;lfs&quot; moduleAdd a Lua FileSystem module, an emulation of a subset of the permissivelylicensed (MIT) Lua library of the same name[0], to our loader&apos;s Luaenvironment.[0]: https://github.com/keplerproject/luafilesystem/Reviewed by:	kevansSponsored by:	Dell EMC IsilonDifferential Revision:	https://reviews.freebsd.org/D14418

            List of files:
            /freebsd-12.1/stand/common/interp_lua.c</description>
        <pubDate>Sun, 18 Feb 2018 01:15:25 +0000</pubDate>
        <dc:creator>Conrad Meyer &lt;cem@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>6771d4a8 - interp_lua: Register io/loader with regular Lua module system</title>
        <link>http://172.16.0.5:8080/history/freebsd-12.1/stand/common/interp_lua.c#6771d4a8</link>
        <description>interp_lua: Register io/loader with regular Lua module systemReviewed by:	kevansSponsored by:	Dell EMC IsilonDifferential Revision:	https://reviews.freebsd.org/D14421

            List of files:
            /freebsd-12.1/stand/common/interp_lua.c</description>
        <pubDate>Sun, 18 Feb 2018 01:13:58 +0000</pubDate>
        <dc:creator>Conrad Meyer &lt;cem@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>7cafeaa1 - Add Lua as a scripting langauge to /boot/loader</title>
        <link>http://172.16.0.5:8080/history/freebsd-12.1/stand/common/interp_lua.c#7cafeaa1</link>
        <description>Add Lua as a scripting langauge to /boot/loaderliblua glues the lua run time into the boot loader. It implements allthe runtime routines that lua expects. In addition, it has a fewstandard &apos;C&apos; headers that nueter various aspects of the LUA build thatare too specific to lua to be in libsa. Many refinements from theoriginal code to improve implementation and the number of included lualibraries. Use int64_t for lua_Number. Have &quot;/boot/lua&quot; be the defaultmodule path. Numerous cleanups from the original GSoC project,including hacking libsa to allow lua to be built with only one changeoutside luaconf.h.Add the final bit of lua glue to bring in liblua and plug into themultiple interpreter framework, previously committed.Add LOADER_LUA option, currently off by default.Presently, this is an experimental option. One must opt-in to usingthis by defining WITH_LOADER_LUA and WITHOUT_FORTH. It&apos;s beenlightly tested, so keep a backup copy of your old loader handy.The menu code, coming in the next commit, hasn&apos;t been exhaustivelytested. A LUA boot loader is 60k larger than a FORTH one, which is80k larger than a no-interpreter one. Subtle changes in sizemay tip things past some subtle limit (the binary is ~430k nowwhen built with LUA). A future version may offer coexistance.Bump FreeBSD version to 1200058 to mark the milestone.Pedro Souza&apos;s 2014 Summer of Code project. Rui Paulo, Pedro Arthur,Zakary Nafziger and Wojciech A. Koszek also contributed. Warner Loshreworked it extensively into its current form.Obtained from: https://wiki.freebsd.org/SummerOfCode2014/LuaLoaderSponsored by: Google Summer of CodeRelnotes: YesMFC After: 1 monthDifferential Review: https://reviews.freebsd.org/D14295

            List of files:
            /freebsd-12.1/stand/common/interp_lua.c</description>
        <pubDate>Mon, 12 Feb 2018 15:31:53 +0000</pubDate>
        <dc:creator>Warner Losh &lt;imp@FreeBSD.org&gt;</dc:creator>
    </item>
</channel>
</rss>
