char buffer[];
};
-static long cf_check microcode_update_helper(void *data)
+static long cf_check ucode_update_hcall_cont(void *data)
{
struct microcode_patch *patch = NULL;
int ret, result;
return ret;
}
-int microcode_update(XEN_GUEST_HANDLE(const_void) buf,
- unsigned long len, unsigned int flags)
+int ucode_update_hcall(XEN_GUEST_HANDLE(const_void) buf,
+ unsigned long len, unsigned int flags)
{
int ret;
struct ucode_buf *buffer;
buffer->flags = flags;
/*
- * Always queue microcode_update_helper() on CPU0. Most of the logic
+ * Always queue ucode_update_hcall_cont() on CPU0. Most of the logic
* won't care, but the update of the Raw CPU policy wants to (re)run on
* the BSP.
*/
- return continue_hypercall_on_cpu(0, microcode_update_helper, buffer);
+ return continue_hypercall_on_cpu(0, ucode_update_hcall_cont, buffer);
}
/* Load a cached update to current cpu */
DECLARE_PER_CPU(struct cpu_signature, cpu_sig);
void microcode_set_module(unsigned int idx);
-int microcode_update(XEN_GUEST_HANDLE(const_void) buf,
- unsigned long len, unsigned int flags);
+int ucode_update_hcall(XEN_GUEST_HANDLE(const_void) buf,
+ unsigned long len, unsigned int flags);
int microcode_update_one(void);
struct boot_info;
guest_from_compat_handle(data, op->u.microcode.data);
- ret = microcode_update(data, op->u.microcode.length, 0);
+ ret = ucode_update_hcall(data, op->u.microcode.length, 0);
break;
}
guest_from_compat_handle(data, op->u.microcode2.data);
- ret = microcode_update(data, op->u.microcode2.length,
- op->u.microcode2.flags);
+ ret = ucode_update_hcall(data, op->u.microcode2.length,
+ op->u.microcode2.flags);
break;
}