Commit 52249f0f3c9f101a71ed24e207731525b8431c0a
1 parent
eeb34af9
Disable kqemu by default at run time
-no-kqemu -> -enable-kqemu kqemu is still present at compile time by default Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Showing
3 changed files
with
7 additions
and
7 deletions
kqemu.c
qemu-options.hx
| ... | ... | @@ -1396,12 +1396,12 @@ Enable KQEMU full virtualization (default is user mode only). |
| 1396 | 1396 | ETEXI |
| 1397 | 1397 | |
| 1398 | 1398 | #ifdef CONFIG_KQEMU |
| 1399 | -DEF("no-kqemu", 0, QEMU_OPTION_no_kqemu, \ | |
| 1400 | - "-no-kqemu disable KQEMU kernel module usage\n") | |
| 1399 | +DEF("enable-kqemu", 0, QEMU_OPTION_enable_kqemu, \ | |
| 1400 | + "-enable-kqemu enable KQEMU kernel module usage\n") | |
| 1401 | 1401 | #endif |
| 1402 | 1402 | STEXI |
| 1403 | -@item -no-kqemu | |
| 1404 | -Disable KQEMU kernel module usage. KQEMU options are only available if | |
| 1403 | +@item -enable-kqemu | |
| 1404 | +Enable KQEMU kernel module usage. KQEMU options are only available if | |
| 1405 | 1405 | KQEMU support is enabled when compiling. |
| 1406 | 1406 | ETEXI |
| 1407 | 1407 | ... | ... |
vl.c
| ... | ... | @@ -5344,8 +5344,8 @@ int main(int argc, char **argv, char **envp) |
| 5344 | 5344 | break; |
| 5345 | 5345 | #endif |
| 5346 | 5346 | #ifdef CONFIG_KQEMU |
| 5347 | - case QEMU_OPTION_no_kqemu: | |
| 5348 | - kqemu_allowed = 0; | |
| 5347 | + case QEMU_OPTION_enable_kqemu: | |
| 5348 | + kqemu_allowed = 1; | |
| 5349 | 5349 | break; |
| 5350 | 5350 | case QEMU_OPTION_kernel_kqemu: |
| 5351 | 5351 | kqemu_allowed = 2; | ... | ... |