acrn-hypervisor/hypervisor/common
Yin Fengwei 6beb34c3cb vm_load: update init gdt preparation
Now, we use native gdt saved in boot context for guest and assume
it could be put to same address of guest. But it may not be true
after the pre-launched VM is introduced. The gdt for guest could
be overwritten by guest images.

This patch make 32bit protect mode boot not use saved boot context.
Insteadly, we use predefined vcpu_regs value for protect guest to
initialize the guest bsp registers and copy pre-defined gdt table
to a safe place of guest memory to avoid gdt table overwritten by
guest images.

Tracked-On: #3532

Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2019-08-20 09:22:20 +08:00
..
hv_main.c hv_main: Remove the continue in vcpu_thread 2019-07-22 09:55:06 +08:00
hypercall.c hv: vpci: create iommu domain in vpci_init for all guests 2019-08-06 11:51:02 +08:00
ptdev.c hv: ptdev: refine ptdev active flag 2019-07-03 17:44:45 +08:00
schedule.c hv: schedule: minor fix about the return type of need_offline 2019-07-17 09:20:54 +08:00
softirq.c softirq: move softirq from hv_main to interrupt context 2019-07-22 09:55:06 +08:00
trusty_hypercall.c hv:fix "no prototype for non-static function" 2019-07-09 10:36:03 +08:00
vm_load.c vm_load: update init gdt preparation 2019-08-20 09:22:20 +08:00