The two functions are not needed when HVM is not supported in
hypervisor.
Note that using hvm_enabled won't work because early_microcode_init
gets to cpu_request_microcode before hvm_enabled is set in presmp init
call stage.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xfree(mc_old);
out:
+#if CONFIG_HVM
svm_host_osvw_init();
+#endif
/*
* In some cases we may return an error even if processor's microcode has
static int start_update(void)
{
+#if CONFIG_HVM
/*
* We assume here that svm_host_osvw_init() will be called on each cpu (from
* cpu_request_microcode()).
* supporting OSVW so we will not deal with this possibility.
*/
svm_host_osvw_reset();
+#endif
return 0;
}