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
Tim Deegan
05519dcda3
[HVM] Builder must know which kind of vcpu context struct to use
...
when the tools are being run in a compat-mode domain
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com >
2007-03-01 11:04:23 +00:00
kfraser@localhost.localdomain
6065dcf331
libxc: Quieten the discard_file_cache() function. Preserve errno
...
across it. No longer make calls to the function dependent on 'non-live
save/restore': it's not a good test of whether the fd is a socket.
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-02-28 18:15:42 +00:00
kfraser@localhost.localdomain
e5d4e1285c
Let xend choose to do hard or soft domain resumption depending on
...
whether the domain advertises support for soft resumption in its
elfnotes.
Signed-off-by: Brendan Cully <brendan@kublai.com >
2007-02-28 09:39:03 +00:00
kfraser@localhost.localdomain
e60659a59b
Accelerate IDE PIO on HVM/IA64 [2/3]
...
Add one more page to the guest for IDE PIO.
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com >
2007-02-27 15:34:24 +00:00
Steven Hand
c516e5ec52
Fix save/restore (and non-live migrate) on PAE.
...
Plus add some more debug output to help us spot similar issues in the future.
Signed-off-by: Steven Hand <steven@xensource.com >
2007-02-27 14:33:07 +00:00
Tim Deegan
a9ddde26e2
[TOOLS] fix sizeof() usage in xc_core
...
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com >
2007-02-26 14:47:54 +00:00
kfraser@localhost.localdomain
f7e153faad
Resolve conflict over use of name xen_elfnote.
...
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-02-26 11:21:03 +00:00
kfraser@localhost.localdomain
57b00da84b
libxc, ia64: Added new arch_hook for registering ia64 big endian images.
...
Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com >
2007-02-26 10:18:52 +00:00
kfraser@localhost.localdomain
41881805d1
Write Xen ELF notes into xenstore on domain build.
...
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca >
2007-02-26 09:59:33 +00:00