0005-Revert-KVM-VMX-enable-nested-virtualization-by-defau.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
  2. From: Thomas Lamprecht <[email protected]>
  3. Date: Fri, 7 Jun 2019 21:16:42 +0200
  4. Subject: [PATCH] Revert "KVM: VMX: enable nested virtualization by default"
  5. This reverts commit 1e58e5e59148916fa43444a406335a990783fb78
  6. As we're not yet there, and this effectively breaks live migration
  7. for all VMs using host or +vmx which did not manually enabled nesting
  8. Those which already enabled nesting manually have already breakage,
  9. but that was something to expect. The situation will get better in
  10. the future (probably post qemu 4.1).
  11. Signed-off-by: Thomas Lamprecht <[email protected]>
  12. ---
  13. arch/x86/kvm/vmx/vmx.c | 2 +-
  14. 1 file changed, 1 insertion(+), 1 deletion(-)
  15. diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c
  16. index 72f51275247e..597fe6f70d97 100644
  17. --- a/arch/x86/kvm/vmx/vmx.c
  18. +++ b/arch/x86/kvm/vmx/vmx.c
  19. @@ -103,7 +103,7 @@ module_param(enable_apicv, bool, S_IRUGO);
  20. * VMX and be a hypervisor for its own guests. If nested=0, guests may not
  21. * use VMX instructions.
  22. */
  23. -static bool __read_mostly nested = 1;
  24. +static bool __read_mostly nested = 0;
  25. module_param(nested, bool, S_IRUGO);
  26. static u64 __read_mostly host_xss;