Skip to contentSkip to conversation

documentation/kvm: additional explanations on KVM_SET_BOOT_CPU_ID

PATCH Applied Emanuele Giuseppe Esposito 2 participants 2 messages Mar 19, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 documentation/kvm: additional explanations on KVM_SET_BOOT_CPU_ID

The ioctl KVM_SET_BOOT_CPU_ID fails when called after vcpu creation. Add this explanation in the documentation.

---
 Documentation/virt/kvm/api.rst | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/virt/kvm/api.rst +2 -1
index 38e327d4b479..bece398227f5 100644
@@ -1495,7 +1495,8 @@ Fails if any VCPU has already been created.
 
 Define which vcpu is the Bootstrap Processor (BSP).  Values are the same
 as the vcpu id in KVM_CREATE_VCPU.  If this ioctl is not called, the default
-is vcpu 0.
+is vcpu 0. This ioctl has to be called before vcpu creation,
+otherwise it will return EBUSY error.
 
 
 4.42 KVM_GET_XSAVE
Signature · 1 line
2.29.2
maintainer Applied
#1 lore raw
Quoted 14 lines · Emanuele Giuseppe Esposito

The ioctl KVM_SET_BOOT_CPU_ID fails when called after vcpu creation. Add this explanation in the documentation.

---
  Documentation/virt/kvm/api.rst | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/virt/kvm/api.rst +0 -0
index 38e327d4b479..bece398227f5 100644

Documentation/virt/kvm/api.rst Fails if any VCPU has already been created. · line 1502

Quoted 9 lines
Documentation/virt/kvm/api.rst +2 -1
@@ -1495,7 +1495,8 @@ Fails if any VCPU has already been created.
 
  Define which vcpu is the Bootstrap Processor (BSP).  Values are the same
  as the vcpu id in KVM_CREATE_VCPU.  If this ioctl is not called, the default
-is vcpu 0.
+is vcpu 0. This ioctl has to be called before vcpu creation,
+otherwise it will return EBUSY error.
 
 
  4.42 KVM_GET_XSAVE

Queued, thanks.

Paolo