diff options
author | kaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk> | 2004-03-17 13:34:52 +0000 |
---|---|---|
committer | kaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk> | 2004-03-17 13:34:52 +0000 |
commit | 672c8342f6fe2a0b65aa3e7c87d4f0b41a9e4454 (patch) | |
tree | 89e64c06c575cf96b9b14059bf5b5714ac0046c2 /tools/xc/lib/xc_linux_restore.c | |
parent | 211e124bd8dff67a7a86e7ad2a92d76c38c59d84 (diff) | |
download | xen-672c8342f6fe2a0b65aa3e7c87d4f0b41a9e4454.tar.gz xen-672c8342f6fe2a0b65aa3e7c87d4f0b41a9e4454.tar.bz2 xen-672c8342f6fe2a0b65aa3e7c87d4f0b41a9e4454.zip |
bitkeeper revision 1.802.1.1 (405853fcN7rcf_nAOUv8-8C-udNDkw)
vnetif.c, Makefile:
new file
Many files:
Relaid out xenolinux drivers. More x86_64 stuff.
domain_page.c:
Rename: xen/common/domain_page.c -> xen/arch/i386/domain_page.c
vbd.c:
Rename: xenolinux-2.4.25-sparse/arch/xeno/drivers/block/xl_vbd.c -> xenolinux-2.4.25-sparse/arch/xeno/drivers/block/vbd.c
block.h:
Rename: xenolinux-2.4.25-sparse/arch/xeno/drivers/block/xl_block.h -> xenolinux-2.4.25-sparse/arch/xeno/drivers/block/block.h
block.c:
Rename: xenolinux-2.4.25-sparse/arch/xeno/drivers/block/xl_block.c -> xenolinux-2.4.25-sparse/arch/xeno/drivers/block/block.c
core.c:
Rename: xenolinux-2.4.25-sparse/arch/xeno/drivers/dom0/dom0_core.c -> xenolinux-2.4.25-sparse/arch/xeno/drivers/dom0/core.c
evtchn.c:
Rename: xenolinux-2.4.25-sparse/arch/xeno/drivers/evtchn/xl_evtchn.c -> xenolinux-2.4.25-sparse/arch/xeno/drivers/evtchn/evtchn.c
Diffstat (limited to 'tools/xc/lib/xc_linux_restore.c')
-rw-r--r-- | tools/xc/lib/xc_linux_restore.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tools/xc/lib/xc_linux_restore.c b/tools/xc/lib/xc_linux_restore.c index 3b00a81011..f0a2127bcc 100644 --- a/tools/xc/lib/xc_linux_restore.c +++ b/tools/xc/lib/xc_linux_restore.c @@ -313,13 +313,13 @@ int xc_linux_restore(int xc_handle, verbose_printf("\b\b\b\b100%%\nMemory reloaded.\n"); /* Uncanonicalise the suspend-record frame number and poke resume rec. */ - pfn = ctxt.i386_ctxt.esi; + pfn = ctxt.cpu_ctxt.esi; if ( (pfn >= nr_pfns) || (pfn_type[pfn] != NONE) ) { ERROR("Suspend record frame number is bad"); goto out; } - ctxt.i386_ctxt.esi = mfn = pfn_to_mfn_table[pfn]; + ctxt.cpu_ctxt.esi = mfn = pfn_to_mfn_table[pfn]; p_srec = map_pfn_writeable(pm_handle, mfn); p_srec->resume_info.nr_pages = nr_pfns; p_srec->resume_info.shared_info = shared_info_frame << PAGE_SHIFT; @@ -370,13 +370,13 @@ int xc_linux_restore(int xc_handle, /* * Safety checking of saved context: - * 1. i386_ctxt is fine, as Xen checks that on context switch. - * 2. i387_ctxt is fine, as it can't hurt Xen. + * 1. cpu_ctxt is fine, as Xen checks that on context switch. + * 2. fpu_ctxt is fine, as it can't hurt Xen. * 3. trap_ctxt needs the code selectors checked. * 4. fast_trap_idx is checked by Xen. * 5. ldt base must be page-aligned, no more than 8192 ents, ... * 6. gdt already done, and further checking is done by Xen. - * 7. check that ring1_ss is safe. + * 7. check that guestos_ss is safe. * 8. pt_base is already done. * 9. debugregs are checked by Xen. * 10. callback code selectors need checking. @@ -385,14 +385,14 @@ int xc_linux_restore(int xc_handle, { ctxt.trap_ctxt[i].vector = i; if ( (ctxt.trap_ctxt[i].cs & 3) == 0 ) - ctxt.trap_ctxt[i].cs = FLAT_RING1_CS; + ctxt.trap_ctxt[i].cs = FLAT_GUESTOS_CS; } - if ( (ctxt.ring1_ss & 3) == 0 ) - ctxt.ring1_ss = FLAT_RING1_DS; + if ( (ctxt.guestos_ss & 3) == 0 ) + ctxt.guestos_ss = FLAT_GUESTOS_DS; if ( (ctxt.event_callback_cs & 3) == 0 ) - ctxt.event_callback_cs = FLAT_RING1_CS; + ctxt.event_callback_cs = FLAT_GUESTOS_CS; if ( (ctxt.failsafe_callback_cs & 3) == 0 ) - ctxt.failsafe_callback_cs = FLAT_RING1_CS; + ctxt.failsafe_callback_cs = FLAT_GUESTOS_CS; if ( ((ctxt.ldt_base & (PAGE_SIZE - 1)) != 0) || (ctxt.ldt_ents > 8192) || (ctxt.ldt_base > HYPERVISOR_VIRT_START) || |