KVM: nVMX: Remove stale comment from nested_vmx_load_cr3()
linmiaohe
Reviewed-byQuoted 8 lines · Sean Christopherson
The blurb pertaining to the return value of
nested_vmx_load_cr3()no longer matches reality, remove it entirely as the behavior it is attempting to document is quite obvious when reading the actual code.Signed-off-by Sean Christopherson <[email protected]>- * Returns 0 on success, 1 on failure. Invalid state exit qualification code
- * is assigned toentry_failure_codeon failure.
*/
static int nested_vmx_load_cr3(structkvm_vcpu*vcpu, unsigned long cr3, boolnested_ept,
u32*entry_failure_code)
It seems the comment is uncorrect as it return -EINVAL on failure. Thanks.
Reviewed-by Miaohe Lin <[email protected]>