@@ -123,6 +123,7 @@ static void svm_enable_intr_window(struct vcpu *v, struct hvm_intack intack)
vmcb, general1_intercepts | GENERAL1_INTERCEPT_VINTR);
}
+/* SAF-1-safe */
void svm_intr_assist(void)
{
struct vcpu *v = current;
@@ -1441,6 +1441,7 @@ nestedsvm_vcpu_vmexit(struct vcpu *v, struct cpu_user_regs *regs,
}
/* VCPU switch */
+/* SAF-1-safe */
void nsvm_vcpu_switch(void)
{
struct cpu_user_regs *regs = guest_cpu_user_regs();
@@ -1056,6 +1056,7 @@ static void noreturn cf_check svm_do_resume(void)
reset_stack_and_jump(svm_asm_do_resume);
}
+/* SAF-1-safe */
void svm_vmenter_helper(void)
{
const struct cpu_user_regs *regs = guest_cpu_user_regs();
@@ -2586,6 +2587,7 @@ const struct hvm_function_table * __init start_svm(void)
return &svm_function_table;
}
+/* SAF-1-safe */
void svm_vmexit_handler(void)
{
struct cpu_user_regs *regs = guest_cpu_user_regs();
@@ -224,6 +224,7 @@ void vmx_sync_exit_bitmap(struct vcpu *v)
}
}
+/* SAF-1-safe */
void vmx_intr_assist(void)
{
struct hvm_intack intack;
@@ -4035,6 +4035,7 @@ static void undo_nmis_unblocked_by_iret(void)
guest_info | VMX_INTR_SHADOW_NMI);
}
+/* SAF-1-safe */
void vmx_vmexit_handler(struct cpu_user_regs *regs)
{
unsigned long exit_qualification, exit_reason, idtv_info, intr_info = 0;
@@ -4787,6 +4788,7 @@ static void lbr_fixup(void)
}
/* Returns false if the vmentry has to be restarted */
+/* SAF-1-safe */
bool vmx_vmenter_helper(const struct cpu_user_regs *regs)
{
struct vcpu *curr = current;
@@ -1490,6 +1490,7 @@ static void nvmx_eptp_update(void)
__vmwrite(EPT_POINTER, get_shadow_eptp(curr));
}
+/* SAF-1-safe */
void nvmx_switch_guest(void)
{
struct vcpu *v = current;
@@ -2265,6 +2265,7 @@ void asm_domain_crash_synchronous(unsigned long addr)
}
#ifdef CONFIG_DEBUG
+/* SAF-1-safe */
void check_ist_exit(const struct cpu_user_regs *regs, bool ist_exit)
{
const unsigned int ist_mask =
@@ -266,6 +266,7 @@ void show_page_walk(unsigned long addr)
l1_table_offset(addr), l1e_get_intpte(l1e), pfn);
}
+/* SAF-1-safe */
void do_double_fault(struct cpu_user_regs *regs)
{
unsigned int cpu;