Commit 8b47ce4
committed
refactor: Calc right-shift bits for socket domain
The number of bits that the x2APIC ID must be shifted to the right to
address instances of the socket domain, which is next higher-scoped
domain to the core domain, was hardcoded as 7. That means up to 128
vcpus support. Currently the max vcpu count is hardcoded as 32, so it
is enough but we might want to increase it in the future. To avoid
unexpected issues when increasing the max vcpu count, calculate the
value based on the max vCPU count.
Signed-off-by: Takahiro Itazuri <[email protected]>1 parent cdcf35a commit 8b47ce4
1 file changed
+11
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | 285 | | |
291 | 286 | | |
292 | 287 | | |
| |||
365 | 360 | | |
366 | 361 | | |
367 | 362 | | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | 363 | | |
372 | 364 | | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
373 | 376 | | |
374 | 377 | | |
375 | 378 | | |
| |||
0 commit comments