MCPcopy Create free account
hub / github.com/F-Stack/f-stack / set_percpu_callback

Function set_percpu_callback

freebsd/x86/xen/hvm.c:233–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233static int
234set_percpu_callback(unsigned int vcpu)
235{
236 struct xen_hvm_evtchn_upcall_vector vec;
237 int error;
238
239 vec.vcpu = vcpu;
240 vec.vector = IDT_EVTCHN;
241 error = HYPERVISOR_hvm_op(HVMOP_set_evtchn_upcall_vector, &vec);
242
243 return (error != 0 ? xen_translate_error(error) : 0);
244}
245
246/*
247 * Tell the hypervisor how to contact us for event channel callbacks.

Callers 2

xen_hvm_set_callbackFunction · 0.85
xen_hvm_cpu_initFunction · 0.85

Calls 1

HYPERVISOR_hvm_opFunction · 0.50

Tested by

no test coverage detected