]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
KVM: VMX: Fix stale docs for kvm-intel.emulate_invalid_guest_state
authorSean Christopherson <seanjc@google.com>
Tue, 7 Dec 2021 19:30:05 +0000 (19:30 +0000)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 7 Mar 2022 15:34:34 +0000 (16:34 +0100)
BugLink: https://bugs.launchpad.net/bugs/1958557
commit 0ff29701ffad9a5d5a24344d8b09f3af7b96ffda upstream.

Update the documentation for kvm-intel's emulate_invalid_guest_state to
rectify the description of KVM's default behavior, and to document that
the behavior and thus parameter only applies to L1.

Fixes: a27685c33acc ("KVM: VMX: Emulate invalid guest state by default")
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20211207193006.120997-4-seanjc@google.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Documentation/admin-guide/kernel-parameters.txt

index 914a2658417570fbe2129ab7bdc67901a894151d..a2a388df84aac15306138507517adc927d9ed397 100644 (file)
                        Default is 1 (enabled)
 
        kvm-intel.emulate_invalid_guest_state=
-                       [KVM,Intel] Enable emulation of invalid guest states
-                       Default is 0 (disabled)
+                       [KVM,Intel] Disable emulation of invalid guest state.
+                       Ignored if kvm-intel.enable_unrestricted_guest=1, as
+                       guest state is never invalid for unrestricted guests.
+                       This param doesn't apply to nested guests (L2), as KVM
+                       never emulates invalid L2 guest state.
+                       Default is 1 (enabled)
 
        kvm-intel.flexpriority=
                        [KVM,Intel] Disable FlexPriority feature (TPR shadow).