Commit Graph
842 Commits
Author SHA1 Message Date
kfraser@localhost.localdomain bb4adad4e1 save/restore: If ENABLE_LOGDIRTY fails, it may be because it is
already active. To find out, attempt to disable and then reenable the
mode.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
2007-05-01 10:16:26 +01:00
kfraser@localhost.localdomain 56d126ace6 hvmloader: Place SMBIOS tables at 0xE9000. Previous location was lower
than nay native system would place them.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-26 16:45:06 +01:00
kfraser@localhost.localdomain faae093917 domain builder: Fix sanity check for gzip size.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-26 15:42:49 +01:00
Keir Fraser 259e50f593 xen: Fix maximum_gpfn() hypercall to always return max_gpfn not nr_gpfns.
Fix callers to convert this to nr_gpfns (aka p2m_size) if that's what
they actually need.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-25 22:22:31 +01:00
kfraser@localhost.localdomain 6663bba3a2 libxc: Fix xc_translate_foreign_address() to parse non-pae pagetables
correctly.
From: Chris Morrow <cmorrow@yottayotta.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-25 09:49:18 +01:00
kfraser@localhost.localdomain 8f1d9b4696 libxenguest: Remove bogus weak definitions of xc_{set,get}_hvm_param().
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-13 11:09:58 +01:00
Tim Deegan 1db798cdbe [HVM] Save/restore: catch more error cases in the tools
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-04-12 15:54:59 +01:00
Tim Deegan 833623e78a [HVM] Save/restore: save HVM GPRs and DRs with the rest of the CPU state
and remove the use of xc_vcpu_getcontext() from HVM save/restore.
Also fixes loss of CR2, DR6 and DR7 contents across HVM save/restore.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-04-12 15:02:03 +01:00
kfraser@localhost.localdomain a01197aeb4 HVM: First attempt at domain-resume on save-failure.
Not working yet as we are a bit too keen to kill the qemu-dm process,
before we know that the save has been successful.

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-12 14:13:04 +01:00
Tim Deegan d11bec8a19 [HVM] Save/restore: merge xc_linux_save and xc_hvm_save
into xc_domain_save, like we did for xc_domain_restore
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>

--HG--
rename : tools/libxc/xc_linux_save.c => tools/libxc/xc_domain_save.c
2007-04-11 14:45:14 +01:00
kfraser@localhost.localdomain e2492c5e9e Fix PV guest restore.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-10 13:46:28 +01:00
Keir Fraser 4a96848dc8 libxc: Fix save/restore code for style.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-09 11:11:23 +01:00
kfraser@localhost.localdomain 5166d94a6a libxc: Clarify xc_mmu interface and make it private.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-06 22:48:25 +01:00
Alex Williamson a449ed227c merge with xen-unstable.hg 2007-04-06 10:08:30 -06:00
Keir Fraser 97c4f107f9 ia64: Fix libxenguest build after save/restore interface changes.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-04-06 10:14:02 +01:00
Alex Williamson f694450239 [IA64] Fix xm dump-core with vti domain
Share privregs with domain and assign it to pseudo physical
address space as para virtualized domain.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-04-05 09:18:49 -06:00
Tim Deegan 538a65bcc3 [HVM] Save/restore: merge xc_linux_restore and xc_hvm_restore
into one function (and one file) since they share a lot of code
Signed-off-by: Tim Deegan <Tim.Deegan@øensource.com>

--HG--
rename : tools/libxc/xc_linux_restore.c => tools/libxc/xc_domain_restore.c
2007-04-05 15:11:22 +01:00
kfraser@localhost.localdomain d5f5ff766f Clean up save/restore state record handling. No need for Python to
read out the 'p2m size' field. Also that field is not needed at all
for HVM guests.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-04 16:34:56 +01:00
kfraser@localhost.localdomain 087d43326a hvm: Lazy memory allocation during HVM restore. General cleanup and
reduce gross assumptions about memory-map layout.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-04 16:18:28 +01:00
kfraser@localhost.localdomain 4edabeff5a Remove hvm_drain_io() hypercall, simplify qemu main loop and do not
pause the domain on reboot (not necessary and defeats new deferred
shutdown logic).
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-04 10:42:58 +01:00
kfraser@localhost.localdomain ebecb5a9d3 Fix the ia64 build after save/restore cleanups.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-04-03 09:03:03 +01:00
Steven Hand e2a44bc7a4 Some save/restore cleanups.
Signed-off-by: Steven Hand <steven@xensource.com>
2007-04-02 16:46:52 +01:00
Keir Fraser 3e2ea003c4 libxc: Fix the build with some versions of gcc.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-31 16:52:36 +01:00
Keir Fraser 7aeca46425 libxc: User-space grant table device.
Changes to libxc to enable easy access to the grant table device.

Signed-off-by: Derek Murray <Derek.Murray@cl.cam.ac.uk>
2007-03-31 14:03:17 +01:00
Tim Deegan e0638f7e62 [HVM] Save/restore: don't get guest size from "memory_static_min"
since it doesn't mean that any more.  This is a sticking-plaster
to get HVM S/R working until the proper memory-map handling patch
is ready.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-03-29 15:27:18 +00:00
Ian Campbell 630a9be9d0 [TOOLS] libxc: Fix x86 build.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-03-22 12:22:16 +00:00
Hollis Blanchard 001e8c5cd8 Merge with xen-unstable.hg.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-03-21 18:08:31 -05:00
Hollis Blanchard a7706a8de0 [LIBXC][POWERPC] Use new domain builder.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-03-21 17:03:00 -05:00
Hollis Blanchard cb8cdc98fd [POWERPC][LIBXC] Remove Prose builder.
It is no longer being maintained and probably shouldn't have existed in the
first place, since it was almost identical to xc_linux_build.c.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-03-21 17:03:00 -05:00
Hollis Blanchard ba5aedc193 [LIBXC] Allocate memory and populate p2m in arch-specific code.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-03-21 17:02:59 -05:00
Hollis Blanchard 06aaae8408 [LIBXC] Move domain builder hooks into arch-specific files and remove ifdefs.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-03-21 17:02:59 -05:00
Hollis Blanchard b09b06b6de [POWERPC][XEN] Fix "xc_core" build break. Untested but might work.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-03-21 17:02:59 -05:00
kfraser@localhost.localdomain 49a55b0fb3 coredump: Allow mmap of shinfo to fail for any HVM guest (x86 or ia64).
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-19 16:55:21 +00:00
kfraser@localhost.localdomain 28f7888d7f hvm: Do not save/restore shared_info gpfn location.
Instead of kludging a max_gpfn estimate in shared_info, add a new
XENMEM command to discover the actual maximum gpfn value as known by
the shadow code.

This needs to be more robust when we support HVM ballooning in future
anyway. One interesting point is that max_gpfn may be close to 4GB
even for small-memory HVM guests since for example SVGA LFB is mapped
into the I/O hole. We may need to special case the I/O hole somehow,
or provide some finer-grained way to find out which parts of the GPFN
space are actually used (e.g., get Xen to fill in a bitmap with 1 bit
per 1024 pages, or similar).

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-19 16:48:24 +00:00
kfraser@localhost.localdomain 6f672de826 libxc: Explicitly reserve space for special pages in HVM memmap.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-16 18:59:28 +00:00
Tim Deegan da12f80b3e [HVM][QEMU] Save/restore: enable HVM live migration
by getting page-dirtying bitmaps from qemu-dm as well as from xen.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-03-16 11:39:50 +00:00
kfraser@localhost.localdomain d5cbf3ec58 x86: Add VGCF_onlien flag to vcpu_guest_context.
Change common Xen code to start all VCPUs (except idle ones)
offline. Change arch code to deal with this.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-12 13:53:43 +00:00
kfraser@localhost.localdomain 4d42d7146c dump-core: store .xen_p2m or .xen_pfn section in pfn ascending order.
So far the order isn't specified and may be random in theory.
But sorted array is requested by crash utility for efficient search.

Fortunately it is the case except ia64 full virtualized domain.
Update document such that those array must be sorted and fix the ia64
full virtualized domain case.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-03-09 18:33:36 +00:00
kfraser@localhost.localdomain e1bc13a960 xm: New command 'debug-keys' to inject debug-key events into Xen.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-09 11:11:59 +00:00
Ewan Mellor 45e2bb215f Fix duplicate consts around xc_error declarations.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-08 22:33:47 +00:00
Tim Deegan 8ae71c0646 [HVM] Save/restore: tidy PFN handling in the tools.
Make the differences clearer between the number of frames, the max PFN
and the size of the pfn array, and handle te framebuffer more cleanly.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-03-08 16:40:35 +00:00
Tim Deegan 78938b42ad [HVM] Save/restore: make sure all ioreqs are gone when a domain is saved
by pausing the domain and pulling them through.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-03-08 16:38:15 +00:00
Ian Campbell 75c73974d7 [BUILDER]: Initialize code segment selectors in virtual IDT to 0.
These should not be set until the guest kernel kernel configures an
entry point otherwise the null_trap_bounce() check gets confused.

This change was made to the old domain builder in 12455:3fa6635d04b9
but was lost in the transition to the new builder.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-03-08 15:35:28 +00:00
kfraser@localhost.localdomain 0cb97f4d8b dump-core: always use elfclass64 format to support x86_32pae.
Without this patch xen dump-core format can't handle over 4GB case.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-03-07 10:53:34 +00:00
kfraser@localhost.localdomain 4df0bbfe89 Merge with xenppc-unstable.hg 2007-03-05 11:14:15 +00:00
Christian Limpach 87832ae661 [domain builder] Remove unnecessary alignment of virtual address base.
Unbreaks loading NetBSD kernels with the new ^^ domain builder.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-03-03 20:42:38 +00:00
Keir Fraser 0ada151b05 x86/64: Save/restore user pagetable pointer for x86/64 PV guests.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-02 22:57:27 +00:00
kfraser@localhost.localdomain 06cffd6c17 Save/restore context of all online VCPUs in PV save/restore/migrate.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-01 17:59:17 +00:00
Christian Limpach c93712d655 [tools] Set guest address size to be the same as dom0 address size on restore.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-03-01 17:28:31 +00:00
Tim Deegan 4bbfa3da11 [HVM] Save/restore: remove bogus "valid state" check
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-03-01 14:00:05 +00:00