Signed-off-by: Keir Fraser <keir@xensource.com>
#include <xen/kernel.h>
#include <asm/shadow.h>
#include <xen/keyhandler.h>
+
#if CONFIG_PAGING_LEVELS >= 3
#include <asm/shadow_64.h>
#endif
memset(arch_vmx, 0, sizeof(struct arch_vmx_struct));
spin_lock_init(&arch_vmx->vmcs_lock);
- arch_vmx->active_cpu = -1;
/*
* Create a new VMCS
return -ENOMEM;
}
- vmx_clear_vmcs(v);
+ __vmx_clear_vmcs(v);
vmx_load_vmcs(v);
if ((error = construct_vmcs_controls(arch_vmx))) {
{
struct arch_vmx_struct *arch_vmx = &v->arch.hvm_vmx;
+ if ( arch_vmx->vmcs == NULL )
+ return;
+
vmx_clear_vmcs(v);
free_vmcs(arch_vmx->vmcs);