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

Feature request: Add vCPU to thread ID API #6103

Open
jodh-intel opened this issue Jan 11, 2024 · 2 comments
Open

Feature request: Add vCPU to thread ID API #6103

jodh-intel opened this issue Jan 11, 2024 · 2 comments

Comments

@jodh-intel
Copy link
Contributor

The new Kata Containers rust runtime (runtime-rs) defines a get_thread_ids() API that hypervisor drivers, such as the Kata rust Cloud Hypervisor driver need to implement. This should return a map of vCPU numbers to host-side thread IDs.

As such, please consider adding a new API to allow the Kata CH driver to query these vCPU details.

/cc @likebreath

@rbradford
Copy link
Member

The new Kata Containers rust runtime (runtime-rs) defines a get_thread_ids() API that hypervisor drivers, such as the Kata rust Cloud Hypervisor driver need to implement. This should return a map of vCPU numbers to host-side thread IDs.

As such, please consider adding a new API to allow the Kata CH driver to query these vCPU details.

/cc @likebreath

The vcpu id is embedded in the thread name:

.name(format!("vcpu{vcpu_id}"))
I think that should be sufficient.

@peng6662001
Copy link
Contributor

peng6662001 commented Feb 6, 2024

ps -T -p pid

3644621 3644631 pts/3    00:00:02 vcpu0
3644621 3644632 pts/3    00:00:01 vcpu1
3644621 3644633 pts/3    00:00:00 vcpu2
3644621 3644634 pts/3    00:00:00 vcpu3

dborquez added a commit to dborquez/kata-containers that referenced this issue Mar 8, 2024
Add in the full details once cloud-hypervisor/cloud-hypervisor#6103
has been implemented, and the feature is available in a Cloud Hypervisor
release.

Fixes: kata-containers#8799

Signed-off-by: David Esparza <david.esparza.borquez@intel.com>
dborquez added a commit to dborquez/kata-containers that referenced this issue Mar 14, 2024
Add in the full details once cloud-hypervisor/cloud-hypervisor#6103
has been implemented, and the feature is available in a Cloud Hypervisor
release.

Fixes: kata-containers#8799

Signed-off-by: David Esparza <david.esparza.borquez@intel.com>
dborquez added a commit to dborquez/kata-containers that referenced this issue Mar 18, 2024
Add in the full details once cloud-hypervisor/cloud-hypervisor#6103
has been implemented, and the feature is available in a Cloud Hypervisor
release.

Fixes: kata-containers#8799

Signed-off-by: David Esparza <david.esparza.borquez@intel.com>
dborquez added a commit to dborquez/kata-containers that referenced this issue Mar 18, 2024
Add in the full details once cloud-hypervisor/cloud-hypervisor#6103
has been implemented, and the feature is available in a Cloud Hypervisor
release.

Fixes: kata-containers#8799

Signed-off-by: David Esparza <david.esparza.borquez@intel.com>
dborquez added a commit to dborquez/kata-containers that referenced this issue Mar 20, 2024
Add in the full details once cloud-hypervisor/cloud-hypervisor#6103
has been implemented, and the feature is available in a Cloud Hypervisor
release.

Fixes: kata-containers#8799

Signed-off-by: David Esparza <david.esparza.borquez@intel.com>
dborquez added a commit to dborquez/kata-containers that referenced this issue Mar 20, 2024
Add in the full details once cloud-hypervisor/cloud-hypervisor#6103
has been implemented, and the feature is available in a Cloud Hypervisor
release.

Fixes: kata-containers#8799

Signed-off-by: David Esparza <david.esparza.borquez@intel.com>
dborquez added a commit to dborquez/kata-containers that referenced this issue Mar 21, 2024
Add in the full details once cloud-hypervisor/cloud-hypervisor#6103
has been implemented, and the feature is available in a Cloud Hypervisor
release.

Fixes: kata-containers#8799

Signed-off-by: David Esparza <david.esparza.borquez@intel.com>
zvonkok pushed a commit to zvonkok/kata-containers that referenced this issue Apr 10, 2024
Add in the full details once cloud-hypervisor/cloud-hypervisor#6103
has been implemented, and the feature is available in a Cloud Hypervisor
release.

Fixes: kata-containers#8799

Signed-off-by: David Esparza <david.esparza.borquez@intel.com>
zvonkok pushed a commit to zvonkok/kata-containers that referenced this issue Apr 16, 2024
Add in the full details once cloud-hypervisor/cloud-hypervisor#6103
has been implemented, and the feature is available in a Cloud Hypervisor
release.

Fixes: kata-containers#8799

Signed-off-by: David Esparza <david.esparza.borquez@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants