7
7
#include <hypervisor.h>
8
8
#include <multiboot.h>
9
9
#include <boot_context.h>
10
- #include <uefi .h>
10
+ #include <firmware_uefi .h>
11
11
12
12
static int32_t uefi_sw_loader (struct acrn_vm * vm )
13
13
{
14
14
int32_t ret = 0 ;
15
15
/* get primary vcpu */
16
16
struct acrn_vcpu * vcpu = vcpu_from_vid (vm , BOOT_CPU_ID );
17
17
struct acrn_vcpu_regs * vcpu_regs = & boot_context ;
18
- const struct efi_context * efi_ctx = get_efi_ctx ();
19
- const struct lapic_regs * uefi_lapic_regs = get_efi_lapic_regs ();
18
+ const struct uefi_context * uefi_ctx = get_uefi_ctx ();
19
+ const struct lapic_regs * uefi_lapic_regs = get_uefi_lapic_regs ();
20
20
21
21
pr_dbg ("Loading guest to run-time location" );
22
22
23
23
vlapic_restore (vcpu_vlapic (vcpu ), uefi_lapic_regs );
24
24
25
25
/* For UEFI platform, the bsp init regs come from two places:
26
- * 1. saved in efi_boot : gpregs, rip
26
+ * 1. saved in uefi_boot : gpregs, rip
27
27
* 2. saved when HV started: other registers
28
- * We copy the info saved in efi_boot to boot_context and
28
+ * We copy the info saved in uefi_boot to boot_context and
29
29
* init bsp with boot_context.
30
30
*/
31
31
memcpy_s (& (vcpu_regs -> gprs ), sizeof (struct acrn_gp_regs ),
32
- & (efi_ctx -> vcpu_regs .gprs ), sizeof (struct acrn_gp_regs ));
32
+ & (uefi_ctx -> vcpu_regs .gprs ), sizeof (struct acrn_gp_regs ));
33
33
34
- vcpu_regs -> rip = efi_ctx -> vcpu_regs .rip ;
34
+ vcpu_regs -> rip = uefi_ctx -> vcpu_regs .rip ;
35
35
set_vcpu_regs (vcpu , vcpu_regs );
36
36
37
37
/* defer irq enabling till vlapic is ready */
@@ -40,7 +40,7 @@ static int32_t uefi_sw_loader(struct acrn_vm *vm)
40
40
return ret ;
41
41
}
42
42
43
- int32_t init_vm_boot_info (__unused struct acrn_vm * vm )
43
+ int32_t uefi_init_vm_boot_info (__unused struct acrn_vm * vm )
44
44
{
45
45
vm_sw_loader = uefi_sw_loader ;
46
46
0 commit comments