Giter Site home page Giter Site logo

zvisor's People

Contributors

b0bleet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

zvisor's Issues

virtio-blk support

Cool project!

Please let me know when block devices become supported for larger application payloads than what fits an initrd.

What the Zig (large amounts of change required to compile)

I'm getting a build error:

$ zig build
/home/sfisher/.dotfiles/asdf/.asdf/installs/zig/0.11.0/lib/std/Build/Step/Compile.zig:616:21: error: deprecated; use std.Build.installArtifact
pub const install = @compileError("deprecated; use std.Build.installArtifact");
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
referenced by:
    build: /home/sfisher/dev/zvisor/build.zig:31:8
    runBuild__anon_7115: /home/sfisher/.dotfiles/asdf/.asdf/installs/zig/0.11.0/lib/std/Build.zig:1638:27
    remaining reference traces hidden; use '-freference-trace' to see all reference traces

Which I've been able to get around by changing the build.zig file:

const std = @import("std");

pub fn build(b: *std.Build) !void {
    const target = b.standardTargetOptions(.{});
    const optimize = b.standardOptimizeOption(.{});
    const root_source_file = std.Build.FileSource.relative("src/main.zig");

    // zvisor executable
    const zvisor_step = b.step("zvisor", "Install zvisor executable");

    const zvisor = b.addExecutable(.{
        .name = "zvisor",
        .root_source_file = root_source_file,
        .target = target,
        .optimize = optimize,
    });
    zvisor.linkSystemLibrary("c");

    const zvisor_install = b.addInstallArtifact(zvisor, .{});
    zvisor_step.dependOn(&zvisor_install.step);
    b.default_step.dependOn(zvisor_step);

    // Tests
    const test_step = b.step("test", "Run tests");

    const test_exe = b.addTest(.{
        .root_source_file = root_source_file,
        .optimize = optimize,
        .target = target,
    });

    const test_run = b.addRunArtifact(test_exe);
    test_run.step.dependOn(zvisor_step);
    test_step.dependOn(&test_run.step);
    b.default_step.dependOn(test_step);
}

However, after this point, lots of things are... unique... zig fmt src/* fixes a few issues, but I'm unsure about others. Any help would be appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.