Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime-rs: guest_id and vhost_fd for VsockDevice should be initialised when necessary #8671

Closed
BbolroC opened this issue Dec 14, 2023 · 0 comments · Fixed by #8672
Closed
Labels
enhancement Improvement to an existing feature needs-review Needs to be assessed by the team.

Comments

@BbolroC
Copy link
Member

BbolroC commented Dec 14, 2023

Which feature do you think can be improved?

As a follow-up for #8516 to realise the 2nd step in #8414 (comment), we should separate an initialisation part from an instantiation part for a struct VsockDevice.

@BbolroC BbolroC added enhancement Improvement to an existing feature needs-review Needs to be assessed by the team. labels Dec 14, 2023
BbolroC added a commit to BbolroC/kata-containers that referenced this issue Dec 14, 2023
As a follow-up for kata-containers#8516, guest_cid and vhost_fd are not necessarily instantiated
via new(). Instead, the fields should be initialised later when they are really
used to construct hypervisor's parameters.
This commit is to separate init_config() from new() to initialise guest_cid
and vhost_fd and leave only the assignment of id for the existing function.

Fixes: kata-containers#8671

Signed-off-by: Hyounggyu Choi <Hyounggyu.Choi@ibm.com>
@katacontainersbot katacontainersbot moved this from To do to In progress in Issue backlog Dec 14, 2023
BbolroC added a commit to BbolroC/kata-containers that referenced this issue Dec 14, 2023
As a follow-up for kata-containers#8516, guest_cid and vhost_fd are not necessarily initialised
via new(). Instead, the fields should be initialised later when they are really
used to construct hypervisor's parameters.
This commit is to separate init_config() from new() to initialise guest_cid
and vhost_fd and leave only the assignment of id for the existing function.

Fixes: kata-containers#8671

Signed-off-by: Hyounggyu Choi <Hyounggyu.Choi@ibm.com>
BbolroC added a commit to BbolroC/kata-containers that referenced this issue Dec 15, 2023
As a follow-up for kata-containers#8516, guest_cid and vhost_fd are not necessarily initialised
via new(). Instead, the fields should be initialised later when they are really
used to construct hypervisor's parameters.
This commit is to separate init_config() from new() to initialise guest_cid
and vhost_fd and leave only the assignment of id for the existing function.

Fixes: kata-containers#8671

Signed-off-by: Hyounggyu Choi <Hyounggyu.Choi@ibm.com>
BbolroC added a commit to BbolroC/kata-containers that referenced this issue Dec 18, 2023
As a follow-up for kata-containers#8516, guest_cid and vhost_fd are not necessarily initialised
via new(). Instead, the fields should be initialised later when they are really
used to construct hypervisor's parameters.
This commit is to separate init_config() from new() to initialise guest_cid
and vhost_fd and leave only the assignment of id for the existing function.

Fixes: kata-containers#8671

Signed-off-by: Hyounggyu Choi <Hyounggyu.Choi@ibm.com>
@BbolroC BbolroC mentioned this issue Dec 20, 2023
sprt pushed a commit to microsoft/kata-containers that referenced this issue Dec 20, 2023
As a follow-up for kata-containers#8516, guest_cid and vhost_fd are not necessarily initialised
via new(). Instead, the fields should be initialised later when they are really
used to construct hypervisor's parameters.
This commit is to separate init_config() from new() to initialise guest_cid
and vhost_fd and leave only the assignment of id for the existing function.

Fixes: kata-containers#8671

Signed-off-by: Hyounggyu Choi <Hyounggyu.Choi@ibm.com>
sprt pushed a commit to microsoft/kata-containers that referenced this issue Dec 20, 2023
As a follow-up for kata-containers#8516, guest_cid and vhost_fd are not necessarily initialised
via new(). Instead, the fields should be initialised later when they are really
used to construct hypervisor's parameters.
This commit is to separate init_config() from new() to initialise guest_cid
and vhost_fd and leave only the assignment of id for the existing function.

Fixes: kata-containers#8671

Signed-off-by: Hyounggyu Choi <Hyounggyu.Choi@ibm.com>
sprt pushed a commit to microsoft/kata-containers that referenced this issue Dec 20, 2023
As a follow-up for kata-containers#8516, guest_cid and vhost_fd are not necessarily initialised
via new(). Instead, the fields should be initialised later when they are really
used to construct hypervisor's parameters.
This commit is to separate init_config() from new() to initialise guest_cid
and vhost_fd and leave only the assignment of id for the existing function.

Fixes: kata-containers#8671

Signed-off-by: Hyounggyu Choi <Hyounggyu.Choi@ibm.com>
sprt pushed a commit to microsoft/kata-containers that referenced this issue Dec 20, 2023
As a follow-up for kata-containers#8516, guest_cid and vhost_fd are not necessarily initialised
via new(). Instead, the fields should be initialised later when they are really
used to construct hypervisor's parameters.
This commit is to separate init_config() from new() to initialise guest_cid
and vhost_fd and leave only the assignment of id for the existing function.

Fixes: kata-containers#8671

Signed-off-by: Hyounggyu Choi <Hyounggyu.Choi@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement to an existing feature needs-review Needs to be assessed by the team.
Projects
Issue backlog
  
In progress
Development

Successfully merging a pull request may close this issue.

1 participant