Commit 04cd8f8
committed
KVM: x86: Disallow KVM_CAP_X86_DISABLE_EXITS after vCPU creation
Reject KVM_CAP_X86_DISABLE_EXITS if vCPUs have been created, as disabling
PAUSE/MWAIT/HLT exits after vCPUs have been created is broken and useless,
e.g. except for PAUSE on SVM, the relevant intercepts aren't updated after
vCPU creation. vCPUs may also end up with an inconsistent configuration
if exits are disabled between creation of multiple vCPUs.
Cc: Hou Wenlong <[email protected]>
Link: https://lore.kernel.org/all/9227068821b275ac547eb2ede09ec65d2281fe07.1680179693.git.houwenlong.hwl@antgroup.com
Link: https://lore.kernel.org/all/[email protected]
Reviewed-by: Maxim Levitsky <[email protected]>
Reviewed-by: Xiaoyao Li <[email protected]>
Reviewed-by: Binbin Wu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>1 parent 21d7f06 commit 04cd8f8
2 files changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7670 | 7670 | | |
7671 | 7671 | | |
7672 | 7672 | | |
| 7673 | + | |
7673 | 7674 | | |
7674 | 7675 | | |
7675 | 7676 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6531 | 6531 | | |
6532 | 6532 | | |
6533 | 6533 | | |
| 6534 | + | |
| 6535 | + | |
| 6536 | + | |
| 6537 | + | |
6534 | 6538 | | |
6535 | 6539 | | |
6536 | 6540 | | |
| |||
6552 | 6556 | | |
6553 | 6557 | | |
6554 | 6558 | | |
| 6559 | + | |
| 6560 | + | |
6555 | 6561 | | |
6556 | 6562 | | |
6557 | 6563 | | |
| |||
0 commit comments