This patch should have been part of, or a prerequiesite of, c/s
981c9a78 "x86:
provide stubs, declarations and macros in hvm.h" to avoid getting the API's
out of sync.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
HVMTRACE_2D(INJ_EXC, _event.vector, _event.error_code);
}
-static int svm_event_pending(struct vcpu *v)
+static bool svm_event_pending(const struct vcpu *v)
{
- struct vmcb_struct *vmcb = v->arch.hvm.svm.vmcb;
- return vmcb->eventinj.fields.v;
+ return v->arch.hvm.svm.vmcb->eventinj.fields.v;
}
static void svm_cpu_dead(unsigned int cpu)
HVMTRACE_2D(INJ_EXC, _event.vector, _event.error_code);
}
-static int vmx_event_pending(struct vcpu *v)
+static bool vmx_event_pending(const struct vcpu *v)
{
unsigned long intr_info;
void (*init_hypercall_page)(struct domain *d, void *hypercall_page);
- int (*event_pending)(struct vcpu *v);
+ bool (*event_pending)(const struct vcpu *v);
bool (*get_pending_event)(struct vcpu *v, struct x86_event *info);
void (*invlpg)(struct vcpu *v, unsigned long linear);
hvm_inject_event(&event);
}
-static inline int hvm_event_pending(struct vcpu *v)
+static inline bool hvm_event_pending(const struct vcpu *v)
{
return hvm_funcs.event_pending(v);
}