Skip to content

Update cpu_hotplug.md#960

Open
saurabhsadhalesuse wants to merge 1 commit intokubevirt:mainfrom
saurabhsadhalesuse:patch-1
Open

Update cpu_hotplug.md#960
saurabhsadhalesuse wants to merge 1 commit intokubevirt:mainfrom
saurabhsadhalesuse:patch-1

Conversation

@saurabhsadhalesuse
Copy link

What this PR does / why we need it:

The documentation incorrectly describes the previous behaviour of vCPU hot plug.

Special notes for your reviewer:

Checklist

This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.

Release note:


Signed-off-by: saurabhsadhalesuse <saurabh.sadhale@suse.com>
@kubevirt-bot kubevirt-bot added the dco-signoff: yes Indicates the PR's author has DCO signed all their commits. label Jan 30, 2026
@kubevirt-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign iholder101 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubevirt-bot
Copy link
Contributor

Hi @saurabhsadhalesuse. Thanks for your PR.

I'm waiting for a kubevirt member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@kubevirt-bot kubevirt-bot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XS labels Jan 30, 2026
A **virtual CPU** (vCPU) is the CPU that is seen to the Guest VM OS. A VM owner can manage the amount of vCPUs from the VM spec template using the CPU topology fields (`spec.template.spec.domain.cpu`). The `cpu` object has the integers `cores,sockets,threads` so that the virtual CPU is calculated by the following formula: `cores * sockets * threads`.

Before CPU hotplug was introduced, the VM owner could change these integers in the VM template while the VM is running, and they were staged until the next boot cycle. With CPU hotplug, it is possible to patch the `sockets` integer in the VM template and the change will take effect right away.
Before CPU hotplug was introduced, the VM owner could not change these integers in the VM template while the VM is running, and they were staged until the next boot cycle. With CPU hotplug, it is possible to patch the `sockets` integer in the VM template and the change will take effect right away.
Copy link
Member

@aburdenthehand aburdenthehand Mar 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Before CPU hotplug was introduced, the VM owner could not change these integers in the VM template while the VM is running, and they were staged until the next boot cycle. With CPU hotplug, it is possible to patch the `sockets` integer in the VM template and the change will take effect right away.
Before CPU hotplug was introduced, the VM owner could change these integers in the VM template while the VM was running but they would not take effect in the running VM until the next boot cycle. With CPU hotplug, it is possible to patch the `sockets` integer in the VM template and the change will take effect right away.

I don't think the original sentence is incorrect but I completely agree that it is not clear in it's current state.
What it is saying is that before the CPU hotplug feature, you could update the VM config but there would be no immediate change to the VMI (running VM): you had to reboot the VM before those changes would take place.
@iholder101 Can you please take a quick look to confirm?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the original sentence is incorrect but I completely agree that it is not clear in it's current state. What it is saying is that before the CPU hotplug feature, you could update the VM config but there would be no immediate change to the VMI (running VM): you had to reboot the VM before those changes would take place.
@iholder101 Can you please take a quick look to confirm?

Yes, that's entirely correct.

However, TBH I think that the original sentence was the best phrasing IMO. I think "but they would not be staged" is also misleading here, as in this context the meaning of a "staged change" is that it is changed on the VM yaml, but hadn't affected the VMI yet (but will make an effect on the next reboot).

Maybe the "staged change" terminology is misleading altogether?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @iholder101
I did not know that about the term 'staged change' :)
I've updated the suggested text to just use 'take effect in the running VM', which echoes the following sentence as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dco-signoff: yes Indicates the PR's author has DCO signed all their commits. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants