Skip to content

Commit

Permalink
kata-containers: adapt for msft-main sources
Browse files Browse the repository at this point in the history
* Requires the new Rust virtiosfd 1.8.0.

* Removes all patches. See
  microsoft/kata-containers#122 (comment)
  for a discussion. Since then, the memory patch was included in msft-main
  and patch 0004 is included in microsoft/kata-containers#154.

* Cleans up runtime make flags:
  * The following were redundant as we were setting the default:
    * DEFSHAREDFS
    * DEFVIRTIOFSCACHESIZE
    * DEFSANDBOXCGROUPONLY
    * DEFSTATICRESOURCEMGMT_CLH
  • Loading branch information
sprt committed Jan 24, 2024
1 parent 889a87f commit 3daa9ec
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 629 deletions.

This file was deleted.

This file was deleted.

122 changes: 0 additions & 122 deletions SPECS/kata-containers/0001-osbuilder-Add-support-for-CBL-Mariner.patch

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

9 changes: 4 additions & 5 deletions SPECS/kata-containers/kata-containers.spec
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,8 @@
%global runtime_make_vars QEMUPATH=%{qemupath} \\\
KERNELTYPE="compressed" \\\
KERNELPARAMS="systemd.legacy_systemd_cgroup_controller=yes systemd.unified_cgroup_hierarchy=0" \\\
# DEFSHAREDFS="virtio-fs" \\\ # default DEFSHAREDFS_CLH_VIRTIOFS=virtio-fs
DEFVIRTIOFSDAEMON=%{_libexecdir}/"virtiofsd-rs" \\\
# DEFVIRTIOFSCACHESIZE=0 \\\ # default 0
# DEFSANDBOXCGROUPONLY=false \\\ # default false
DEFSTATICRESOURCEMGMT_CLH=true # false by default upstream
DEFSTATICRESOURCEMGMT_CLH=true \\\
DEFSTATICSANDBOXWORKLOADMEM=1792 \\\
DEFMEMSZ=256 \\\
SKIP_GO_VERSION_CHECK=y \\\
Expand Down Expand Up @@ -81,7 +78,9 @@ BuildRequires: rust
Requires: busybox
Requires: kernel
Requires: libseccomp
Requires: virtiofsd
# Must match the version specified by the `assets.virtiofsd.version` field in
# %{SOURCE0}/versions.yaml.
Requires: virtiofsd = 1.8.0

Conflicts: kata-agent
Conflicts: kata-ksm-throttler
Expand Down
Loading

0 comments on commit 3daa9ec

Please sign in to comment.