+
Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: crc-org/vfkit
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.1.1
Choose a base ref
...
head repository: crc-org/vfkit
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.5.0
Choose a head ref
  • 20 commits
  • 27 files changed
  • 3 contributors

Commits on Jul 26, 2023

  1. Update README.md

    Add details around installation, usage and link to a few talks
    
    This fixes #38
    cfergeau committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    f24e982 View commit details
    Browse the repository at this point in the history
  2. doc: Remove extra 'See'

    cfergeau committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    d05bc0d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0eb1914 View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2023

  1. restore proper definition of width/height

    width and height were switched.
    ErwanMAS authored and cfergeau committed Aug 19, 2023
    Configuration menu
    Copy the full SHA
    09bbd86 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    006fdb4 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2023

  1. doc: Expand usage examples

    During testing I always forget how to use vsock, or virtio-fs.
    This commit adds some more detailed examples for the various virtio
    devices.
    cfergeau committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    052cfa9 View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2023

  1. Add rosetta support

    This adds support for `--device rosetta,mountTag=something` on the
    commandline. This is only available on system with Apple CPUs, vfkit
    will error out if this option is used on Intel CPUs.
    
    Once the VM is running and the rosetta share is mounted, rosetta support can be enabled by creating this file:
    
    $ cat /etc/binfmt.d/rosetta.conf
    :rosetta:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x3e\x00:\xff\xff\xff\xff\xff\xfe\xfe\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/mnt/rosetta:F
    
    and then running `systemctl restart systemd-binfmt`
    
    See these links for more details:
    https://developer.apple.com/documentation/virtualization/running_intel_binaries_in_linux_vms_with_rosetta?language=objc
    https://docs.kernel.org/admin-guide/binfmt-misc.html
    https://www.man7.org/linux/man-pages/man5/binfmt.d.5.html
    
    This fixes #23
    cfergeau committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    6931f23 View commit details
    Browse the repository at this point in the history
  2. config: Use assert.JSONEq in JSON test

    When comparing strings with JSON content, assert.JSONEq is better than
    assert.Equal as it will give better output when the 2 strings don't
    match, and it tests for equivalence, not strict equality. This means
    changes in field order is not a failure for example.
    cfergeau committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    98553ed View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2023

  1. bootloader: Only check for uncompressed kernel on arm64

    The code was checking for this on all arches, but it's only arm64
    kernels which vfkit can't boot if they are compressed.
    cfergeau authored and praveenkumar committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    ff31b19 View commit details
    Browse the repository at this point in the history
  2. bootloader: Rework isUncompressedKernel

    So far we were using `h2non/filetype` which is not a great fit for what
    we want to do, as kernels do not have their own mimetypes, and there is
    no nice way to convey compressed/uncompressed/arch through mime types.
    
    This was working through heuristics so far, but the used heuristics
    break for the kernel used by puipui linux
    (https://github.com/Code-Hex/puipui-linux)
    
    This commit removes the use of h2non/filetype, and reuses the patterns
    from https://github.com/file/file/blob/master/magic/Magdir/linux to do
    the detection we need.
    
    This only adds a magic for uncompressed arm64 kernels.
    There's also a pattern for compressed kernels, but it does not match the arm64
    kernels I tested with. They are either detected as gzip files, or as EFI files,
    and don't contain the magic pattern.
    cfergeau authored and praveenkumar committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    3b3c45d View commit details
    Browse the repository at this point in the history
  3. bootloader: Add test for isKernelUncompressed

    This ensures both puipui kernel and fedora/RHEL kernels are detected as
    uncompressed when they are.
    cfergeau authored and praveenkumar committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    09e6206 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2023

  1. build: Update Code-Hex/vz to latest git

    The fix for Code-Hex/vz#131 is not in a tagged
    Code-Hex/vz release, but this can trigger crashes in vfkit.
    This commit updates Code-Hex/vz to latest git main to get this fix.
    cfergeau authored and praveenkumar committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    17449d2 View commit details
    Browse the repository at this point in the history
  2. build: Update go modules

    This updates all direct go modules to their latest version.
    cfergeau authored and praveenkumar committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    33f32b1 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2023

  1. Configuration menu
    Copy the full SHA
    4b3b327 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2023

  1. feat(rest): support check status can be change

    In the previous API, there was no way to detect before changing the
    status, which would make it difficult for developers to handle the
    following situations:
    
        - When the virtual machine status is Stop, calling Pause may fail.
        - When the virtual machine status is Pause, setting the status to
          Pause again may fail.
    
    In the previous solution, developers needed to first get the current
    status of the virtual machine and then decide whether to proceed to the
    next step. However, the current virtual machine status is very diverse
    (see:
    https://github.com/Code-Hex/vz/blob/bd29a7ea3d39465c4224bfb01e990e8c220a8449/virtualization.go#L23),
    which would require developers to handle various cases perfectly. This
    PR solves this problem.
    BlackHole1 authored and cfergeau committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    bf93e84 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2023

  1. Set vfkitVersion to 0.5.0

    This jumps from 0.1.1 to 0.5.0 to better reflect vfkit's maturity.
    cfergeau committed Oct 30, 2023
    Configuration menu
    Copy the full SHA
    f3c783d View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2023

  1. doc: Add quickstart document

    cfergeau authored and gbraad committed Nov 10, 2023
    Configuration menu
    Copy the full SHA
    95a6a8e View commit details
    Browse the repository at this point in the history
  2. doc: Document sparse/cow images with APFS

    cfergeau authored and gbraad committed Nov 10, 2023
    Configuration menu
    Copy the full SHA
    2a4d725 View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2023

  1. Fix crash in timesync code

    When ConnectVSockSync fails in watchWakeupNotifications(),
    the returned net.Conn contains a nil value, but is not a nil interface
    (ie checking it for `== nil` returns false).
    This means we'll try to call `Close()` on the connection, which will
    cause a nil pointer dereference.
    See https://go.dev/doc/faq#nil_error and https://groups.google.com/g/golang-nuts/c/wnH302gBa4I
    for details about this behaviour.
    
    This bug is fixed by returning a nil interface when
    `vsockDevice.Connect(uint32(port))` returns an error.
    cfergeau authored and praveenkumar committed Nov 22, 2023
    Configuration menu
    Copy the full SHA
    f19a643 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7572104 View commit details
    Browse the repository at this point in the history
Loading
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载