Skip to content

Commit db78e42

Browse files
authored
Merge pull request #1834 from giuseppe/tag-1.23
NEWS: tag version 1.23
2 parents ce0987c + 3fc2561 commit db78e42

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

NEWS

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
* crun-1.23
2+
3+
- krun: enable virtio-gpu. Enable and configure a virtio-gpu device
4+
if /dev/dri and /usr/libexec/virgl_render_server are present within
5+
the container.
6+
- krun: add support for nitro enclaves.
7+
- criu: Add support for tcp-close.
8+
- linux: fix issue when RestrictAddressFamilies="AF_UNIX AF_NETLINK" is
9+
in place in the systemd unit. Regression introduced in crun 1.17.
10+
- cgroup,systemd: use BPFProgram=device on systemd to install the device
11+
controller eBPF.
12+
- cgroup,systemd: allow empty slice in cgroupsPath.
13+
- crun: print the program version even with an invalid rundir.
14+
- linux: fix regression with idmapped mounts. Support idmapped mounts
15+
also when there is no user namespace specified for the container.
16+
crun 1.22 introduced the regression.
17+
- cgroup: change formula to convert from cpu shares to cpu weight.
18+
The OCI CPU shares (range [2-262144]) to cgroup v2 `cpu.weight`
19+
(range [1-10000]) conversion formula has been updated to use a
20+
quadratic function so that min, max and default values match.
21+
122
* crun-1.22
223

324
- crun: add a new command crun mounts to dynamically add or remove

src/libcrun/handlers/krun.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,17 @@ libkrun_configure_kernel (uint32_t ctx_id, void *handle, yajl_val *config_tree,
145145
return 0;
146146
}
147147

148+
# ifndef KRUN_NITRO_IMG_TYPE_EIF
149+
# define KRUN_NITRO_IMG_TYPE_EIF 1
150+
# endif
151+
148152
static int
149153
libkrun_configure_nitro (uint32_t ctx_id, void *handle, yajl_val *config_tree, libcrun_error_t *err)
150154
{
151155
int32_t (*krun_nitro_set_image) (uint32_t ctx_id, const char *image_path, uint32_t image_type);
152156
int32_t (*krun_nitro_set_start_flags) (uint32_t ctx_id, uint64_t start_flags);
153157
const char *path_eif[] = { "eif_file", (const char *) 0 };
154158
yajl_val val_eif_image = NULL;
155-
uint64_t start_flags = 1;
156159
char *eif_image = NULL;
157160
int ret;
158161

@@ -347,7 +350,6 @@ libkrun_exec (void *cookie, libcrun_container_t *container, const char *pathname
347350
int32_t (*krun_set_root) (uint32_t ctx_id, const char *root_path);
348351
int32_t (*krun_set_root_disk) (uint32_t ctx_id, const char *disk_path);
349352
int32_t (*krun_set_tee_config_file) (uint32_t ctx_id, const char *file_path);
350-
int32_t (*krun_nitro_set_image) (uint32_t ctx_id, const char *image_path, uint32_t image_type);
351353
struct krun_config *kconf = (struct krun_config *) cookie;
352354
void *handle;
353355
uint32_t num_vcpus, ram_mib;

0 commit comments

Comments
 (0)