Skip to content
This repository has been archived by the owner on Dec 20, 2021. It is now read-only.

Add MSHV support #22

Merged
merged 4 commits into from
Sep 7, 2021
Merged

Add MSHV support #22

merged 4 commits into from
Sep 7, 2021

Commits on Sep 3, 2021

  1. vfio-ioctls: add mshv feature gate and crates

    Signed-off-by: Wei Liu <liuwe@microsoft.com>
    liuw committed Sep 3, 2021
    Configuration menu
    Copy the full SHA
    03f75ff View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2021

  1. vfio_device: add MSHV support

    Rename KvmSetDeviceAttr to SetDeviceAttr and modify private helper
    functions to work with both hypervisors.
    
    Signed-off-by: Wei Liu <liuwe@microsoft.com>
    liuw committed Sep 6, 2021
    Configuration menu
    Copy the full SHA
    d3e3905 View commit details
    Browse the repository at this point in the history
  2. vfio_device: remove RawFd from function parameters

    Generally speaking functions take RawFd should be marked as unsafe.
    device_add_group and device_del group are such functions.
    
    Instead of marks them as unsafe, we can make these two functions take a
    reference to VfioGroup. This is far more elegant.
    
    Signed-off-by: Wei Liu <liuwe@microsoft.com>
    liuw committed Sep 6, 2021
    Configuration menu
    Copy the full SHA
    b1ea4b3 View commit details
    Browse the repository at this point in the history
  3. vfio_device: make buildkite happy

    Rust does not support mutually exclusive features. Buildkite enables all
    features. These two factors combined causes pipeline failures.
    
    Turn the feature gates in code a bit. Whenever "kvm" is specify, surface
    KVM's definitions. Make available MSHV if and only if "mshv" is
    specified.
    
    Add custom tests for MSHV.
    
    Signed-off-by: Wei Liu <liuwe@microsoft.com>
    liuw committed Sep 6, 2021
    Configuration menu
    Copy the full SHA
    9d6916f View commit details
    Browse the repository at this point in the history