Commit d29bf2c
committed
KVM: x86: Prevent excluding the BSP on setting max_vcpu_ids
If the BSP vCPU ID was already set, ensure it doesn't get excluded when
limiting vCPU IDs via KVM_CAP_MAX_VCPU_ID.
[mks: provide commit message, code by Sean]
Signed-off-by: Mathias Krause <minipli@grsecurity.net>
Link: https://lore.kernel.org/r/20240614202859.3597745-4-minipli@grsecurity.net
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent 7c305d5 commit d29bf2c
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6707 | 6707 | | |
6708 | 6708 | | |
6709 | 6709 | | |
6710 | | - | |
| 6710 | + | |
| 6711 | + | |
| 6712 | + | |
6711 | 6713 | | |
6712 | 6714 | | |
6713 | 6715 | | |
| |||
0 commit comments