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
Keir Fraser
159ce02013
libxc: Code format cleanups.
...
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-02-24 15:30:19 +00:00
Keir Fraser
e0b421d242
Reduce impact of saving/restoring/dumping large domains on Dom0 memory
...
usage by means of fadvise64() to tell the OS to discard the cache
pages used for the save/dump file.
Signed-off-by: Simon Graham <Simon.Graham@stratus.com >
2007-02-24 14:48:17 +00:00
Keir Fraser
1c086c444c
xc_ptrace_core.c new elf format support
...
The old format is still supported and the old implementation is left
as is with the slight adjustment to coexist with new implementation.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp >
2007-02-24 14:32:43 +00:00
Keir Fraser
e3ce7ff90f
Xen coredump format: ELF formatified with note section.
...
added PFN-GMFN table for non-auto translated physmap
added PFN table for auto translated physmap.
HVM domain support.
IA64 support
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp >
Use the guest's own p2m table instead of xc_get_pfn_list(), which
cannot handle PFNs with no MFN.
Dump a zeroed page for PFNs with no MFN.
Clearly deprecate xc_get_pfn_list().
Do not include a P2M table with HVM domains.
Refuse to dump HVM until we can map its pages with PFNs.
Signed-off-by: John Levon <john.levon@sun.com >
2007-02-24 14:31:42 +00:00
Keir Fraser
4062095bcb
Move some definitions from xg_save_resotre.h to xg_private.h
...
which are necessary for the new dump core implementation.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp >
2007-02-24 14:19:42 +00:00
Keir Fraser
7a439455bd
x86 hvm domain builder, restore: set shared_info.arch.max_pfn for
...
dump-core to know the area to dump
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp >
2007-02-24 14:19:05 +00:00
Keir Fraser
da97fcd329
Support new xm command: xm trigger <Domain> <nmi|reset|init> [<VCPU>]
...
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com >
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com >
Signed-off-by: Zhang Xin <xing.z.zhang@intel.com >
2007-02-24 14:10:27 +00:00
kfraser@localhost.localdomain
7379f53a09
hvm: Fix save/restore to handle missing pages.
...
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-02-23 16:17:00 +00:00
Emmanuel Ackaouy
81665f8e30
[XEN] [TOOLS] 32on64 compat save/restore: unadjust L3E flags at save time
...
Get rid of USER|RW|ACCESSED L3 PTE flags which may be present
in a PAE guest when running on a 64bit hypervisor at save time.
This prevents the restore operation from getting confused by
these flags.
Reset disallowed L3E flags to match PAE case.
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com >
2007-02-23 12:58:20 +00:00
kfraser@localhost.localdomain
4008fb3e4d
Remove unnecessary check from HVM builder.
...
Thanks to Guy Zana for spotting this.
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-02-15 14:38:08 +00:00
kfraser@localhost.localdomain
cfafd88d92
Lift physical address restriction in save/restore code.
...
Bump this to 44 bits for x86-32 and 52 bits for x86-64.
Signed-off-by: Jan Beulich <jbeulich@novell.com >
2007-02-15 14:28:01 +00:00
kfraser@localhost.localdomain
a5c9d9c243
libxc: Fix xc_vcpu_{set,get}_affinity (Xen-bugzilla No.900).
...
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=900
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com >
2007-02-15 13:36:00 +00:00
kfraser@localhost.localdomain
af9049b580
Remove old elf-parsing code from tools and from Xen.
...
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-02-15 10:25:39 +00:00
kfraser@localhost.localdomain
6422b05e11
Export PRI_xen_pfn rather than PRIpfn: less polluting of namespace.
...
libxc continues to use PRIpfn internally, #defined to PRI_xen_pfn.
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-02-14 19:17:41 +00:00
kfraser@localhost.localdomain
b3f09a8a4f
Merge with xenppc-unstable.hg
2007-02-14 19:01:35 +00:00
Hollis Blanchard
f0f04a6035
[LIBELF] Define PRIpfn next to xen_pfn_t.
...
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com >
2007-02-09 14:43:22 -06:00
Hollis Blanchard
9fb65916be
[POWERPC][XEN] Opt out of new libxc domain builder.
...
PowerPC needs more flexibility than the new framework allows.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com >
2007-02-09 14:43:21 -06:00
Tim Deegan
e0bc4531df
[HVM] Save/restore: disentangle max_pfn from nr_pages.
...
These have been used interchangeably, which is OK for PV domains but
not for HVM. This fixes an over-allocation by 256MB when restoring
HVM guests that have more than 4GB of RAM.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com >
2007-02-09 10:48:41 +00:00
Tim Deegan
de602931ef
[HVM] Save/restore: don't try to set the console ring MFN
...
in a HVM restore. In particular, don't print an uninitialized stack
variable, which causes XMLRPC exceptions in xend.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com >
2007-02-08 15:00:33 +00:00
Hollis Blanchard
dd887f1615
[POWERPC][XEN] Fix mismerge.
2007-02-07 18:53:33 -06:00
Tim Deegan
2b30444fe2
[HVM] Save/restore: don't try to save the MMIO memory-hole at 4GB.
...
Also remove two integer arrays that were set to a[i] == i.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com >
2007-02-07 17:29:52 +00:00
Tim Deegan
01d0fc79ac
[HVM] Save/restore: dynamically calculate the size of the save buffer
...
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com >
2007-02-07 12:41:46 +00:00
kfraser@localhost.localdomain
34814f4465
New domain builder arch_setup hook clean up.
...
arch_setup_early -> arch_setup_meminit
arch_setup_middle -> arch_setup_bootearly
arch_setup_late -> arch_setup_bootlate
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp >
2007-02-02 15:50:27 +00:00
kfraser@localhost.localdomain
44480a0820
libxc: Domain builder must align initial virtual mapping to 4MB
...
boundaries.
From: Gerd Hoffmann <kraxel@suse.de >
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-02-02 15:41:45 +00:00
Ian Campbell
9c4ed974a4
[TOOLS] Remove a debug message which is spamming the logs during live
...
migration.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com >
2007-02-01 10:21:42 +00:00
Tim Deegan
782821bcb0
[HVM] Save/restore: clean up the new hypercall interface
...
Pass a buffer and size through instead of fixed-size structure.
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com >
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com >
2007-01-31 17:22:00 +00:00
Tim Deegan
3f44314932
[HVM] Save/restore: save shared-info pfn and re-map it on restore
...
In the short term this allows us to save the same domain more than once.
Longer-term some more careful shared-info management will be needed.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com >
2007-01-31 12:23:35 +00:00