... to clarify that the register state does not get altered (behind the
back of the emulator).
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
vmx_vmcs_exit(v);
}
-static int vmx_vcpu_emulate_vmfunc(struct cpu_user_regs *regs)
+static int vmx_vcpu_emulate_vmfunc(const struct cpu_user_regs *regs)
{
int rc = X86EMUL_EXCEPTION;
struct vcpu *curr = current;
void (*altp2m_vcpu_update_p2m)(struct vcpu *v);
void (*altp2m_vcpu_update_vmfunc_ve)(struct vcpu *v);
bool_t (*altp2m_vcpu_emulate_ve)(struct vcpu *v);
- int (*altp2m_vcpu_emulate_vmfunc)(struct cpu_user_regs *regs);
+ int (*altp2m_vcpu_emulate_vmfunc)(const struct cpu_user_regs *regs);
/*
* Parameters and callbacks for hardware-assisted TSC scaling,