linux/arch/x86/xen
Mukesh Rathor 8d656bbe43 xen/pvh: Load GDT/GS in early PV bootup code for BSP.
During early bootup we start life using the Xen provided
GDT, which means that we are running with %cs segment set
to FLAT_KERNEL_CS (FLAT_RING3_CS64 0xe033, GDT index 261).

But for PVH we want to be use HVM type mechanism for
segment operations. As such we need to switch to the HVM
one and also reload ourselves with the __KERNEL_CS:eip
to run in the proper GDT and segment.

For HVM this is usually done in 'secondary_startup_64' in
(head_64.S) but since we are not taking that bootup
path (we start in PV - xen_start_kernel) we need to do
that in the early PV bootup paths.

For good measure we also zero out the %fs, %ds, and %es
(not strictly needed as Xen has already cleared them
for us). The %gs is loaded by 'switch_to_new_gdt'.

Signed-off-by: Mukesh Rathor <mukesh.rathor@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
2014-01-06 10:44:10 -05:00
..
apic.c
debugfs.c
debugfs.h
enlighten.c xen/pvh: Load GDT/GS in early PV bootup code for BSP. 2014-01-06 10:44:10 -05:00
grant-table.c
irq.c
Kconfig xen/pvh/x86: Define what an PVH guest is (v3). 2014-01-06 10:43:58 -05:00
Makefile
mmu.c xen/pvh/mmu: Use PV TLB instead of native. 2014-01-06 10:44:07 -05:00
mmu.h
multicalls.c
multicalls.h
p2m.c xen/pvh: Setup up shared_info. 2014-01-06 10:44:09 -05:00
pci-swiotlb-xen.c
platform-pci-unplug.c xen/pvhvm: Remove the xen_platform_pci int. 2014-01-03 14:54:53 -05:00
setup.c xen/pvh: Early bootup changes in PV code (v4). 2014-01-06 10:43:59 -05:00
smp.c
smp.h
spinlock.c
suspend.c
time.c xen/x86: set VIRQ_TIMER priority to maximum 2014-01-06 10:07:55 -05:00
trace.c
vdso.h
vga.c
xen-asm_32.S
xen-asm_64.S
xen-asm.h
xen-asm.S
xen-head.S
xen-ops.h