KVM: selftests: define and use EVMCS_VERSION
[linux-block.git] / tools / testing / selftests / kvm / lib / x86_64 / vmx.c
index ff0a657a42d33042fb326c7ed7bd29690f61610f..6f17f69394be53eb40466cab71b975f59296bfe3 100644 (file)
@@ -191,7 +191,7 @@ bool load_vmcs(struct vmx_pages *vmx)
                if (evmcs_vmptrld(vmx->enlightened_vmcs_gpa,
                                  vmx->enlightened_vmcs))
                        return false;
-               current_evmcs->revision_id = vmcs_revision();
+               current_evmcs->revision_id = EVMCS_VERSION;
        }
 
        return true;