aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc
Commit message (Collapse)AuthorAgeFilesLines
...
| * [BUILDER]: Initialize code segment selectors in virtual IDT to 0.Ian Campbell2007-03-081-26/+4
| | | | | | | | | | | | | | | | | | | | 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>
* | [LIBXC][POWERPC] Use new domain builder.Hollis Blanchard2007-03-2110-613/+277
| | | | | | | | Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
* | [POWERPC][LIBXC] Remove Prose builder.Hollis Blanchard2007-03-212-216/+0
| | | | | | | | | | | | 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>
* | [LIBXC] Allocate memory and populate p2m in arch-specific code.Hollis Blanchard2007-03-214-15/+30
| | | | | | | | Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
* | [LIBXC] Move domain builder hooks into arch-specific files and remove ifdefs.Hollis Blanchard2007-03-215-291/+220
| | | | | | | | Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
* | [POWERPC][XEN] Fix "xc_core" build break. Untested but might work.Hollis Blanchard2007-03-214-0/+139
|/ | | | Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
* dump-core: always use elfclass64 format to support x86_32pae.kfraser@localhost.localdomain2007-03-076-30/+32
| | | | | | Without this patch xen dump-core format can't handle over 4GB case. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* Merge with xenppc-unstable.hgkfraser@localhost.localdomain2007-03-053-6/+37
|\
| * [domain builder] Remove unnecessary alignment of virtual address base.Christian Limpach2007-03-031-3/+0
| | | | | | | | | | | | Unbreaks loading NetBSD kernels with the new ^^ domain builder. Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
| * x86/64: Save/restore user pagetable pointer for x86/64 PV guests.Keir Fraser2007-03-022-3/+37
| | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* | [LIBXC][POWERPC] make sure DTB is truncated and has a decent modeJimi Xenidis2007-02-081-1/+1
| | | | | | | | | | | | | | | | | | Also, since we only write to this FD, we mau as well use creat(2) Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com> Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com> --HG-- extra : transplant_source : %05%9B%EF%F4%12%9B%C0%FCD%03%2A%95%A8ull%A8%9Fk%21
* | [LIBXC][POWERPC] use O_CREAT on open call for DTB_FILEJimi Xenidis2007-02-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a bug in the creating of the flat dev tree. If open is used and O_CREAT not is specified, it will fail if the file has not already been created. This patch will create the file if it does not exist already. Which will allow for DomU creation. Signed-off-by: Jerone Young <jyoung5@us.ibm.com> Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com> Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com> --HG-- extra : transplant_source : Q%CA%40%88N%D8%25%B0%D7%FD%F8%1A%1E%07%8E2E%1BM%22
* | [POWERPC][XEN][LIBXC] Make xc_linux_build() use populate_physmap()Hollis Blanchard2007-03-021-25/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - populate_physmap() is the only way to invoke guest_physmap_{add/remove}_page(), which populate our new p2m table. - To use it, we must to specify an array of PFNs where the new MFNs will be mapped. - Split out alloc_memory() from xc_linux_build(). - Fix memory free path in xc_linux_build(). Signed-off-by: Ryan Harper <ryanh@us.ibm.com> Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com> --HG-- extra : transplant_source : %9F%E6%FE%88%A6%A1%A2%88l%24%F2%AFvMf%3C%05%AF%DAU
* | [POWERPC][XEN] Don't create a start_info_t structure for dom0.Hollis Blanchard2007-03-011-5/+3
|/ | | | | | | | | | It's no longer needed now that Linux constructs its own via device tree properties. Signed-off-by: Ryan Harper <ryanh@us.ibm.com> Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com> --HG-- extra : transplant_source : 6%29Qsq%F0%05x%9B%1B%03%8E%FC%93%EAI%B6%D4%FAx
* Save/restore context of all online VCPUs in PV save/restore/migrate.kfraser@localhost.localdomain2007-03-012-87/+141
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* [tools] Set guest address size to be the same as dom0 address size on restore.Christian Limpach2007-03-011-0/+13
| | | | Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
* [HVM] Save/restore: remove bogus "valid state" checkTim Deegan2007-03-011-8/+1
| | | | Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* [HVM] Builder must know which kind of vcpu context struct to useTim Deegan2007-03-011-4/+26
| | | | | when the tools are being run in a compat-mode domain Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* libxc: Quieten the discard_file_cache() function. Preserve errnokfraser@localhost.localdomain2007-02-284-27/+21
| | | | | | 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>
* Let xend choose to do hard or soft domain resumption depending onkfraser@localhost.localdomain2007-02-282-7/+5
| | | | | | | whether the domain advertises support for soft resumption in its elfnotes. Signed-off-by: Brendan Cully <brendan@kublai.com>
* Accelerate IDE PIO on HVM/IA64 [2/3]kfraser@localhost.localdomain2007-02-271-2/+10
| | | | | | Add one more page to the guest for IDE PIO. Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
* Fix save/restore (and non-live migrate) on PAE.Steven Hand2007-02-271-3/+6
| | | | | | Plus add some more debug output to help us spot similar issues in the future. Signed-off-by: Steven Hand <steven@xensource.com>
* [TOOLS] fix sizeof() usage in xc_coreTim Deegan2007-02-261-1/+1
| | | | Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* Resolve conflict over use of name xen_elfnote.kfraser@localhost.localdomain2007-02-263-7/+7
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* libxc, ia64: Added new arch_hook for registering ia64 big endian images.kfraser@localhost.localdomain2007-02-261-0/+10
| | | | Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
* Write Xen ELF notes into xenstore on domain build.kfraser@localhost.localdomain2007-02-262-0/+39
| | | | Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
* libxc: Code format cleanups.Keir Fraser2007-02-2411-1000/+1093
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* Reduce impact of saving/restoring/dumping large domains on Dom0 memoryKeir Fraser2007-02-247-8/+110
| | | | | | | 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>
* xc_ptrace_core.c new elf format supportKeir Fraser2007-02-241-36/+549
| | | | | | | 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>
* Xen coredump format: ELF formatified with note section.Keir Fraser2007-02-249-41/+1513
| | | | | | | | | | | | | | | | | | 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>
* Move some definitions from xg_save_resotre.h to xg_private.hKeir Fraser2007-02-244-21/+19
| | | | | | which are necessary for the new dump core implementation. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* x86 hvm domain builder, restore: set shared_info.arch.max_pfn forKeir Fraser2007-02-242-0/+12
| | | | | | dump-core to know the area to dump Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* Support new xm command: xm trigger <Domain> <nmi|reset|init> [<VCPU>]Keir Fraser2007-02-242-0/+29
| | | | | | 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>
* hvm: Fix save/restore to handle missing pages.kfraser@localhost.localdomain2007-02-232-28/+27
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* [XEN] [TOOLS] 32on64 compat save/restore: unadjust L3E flags at save timeEmmanuel Ackaouy2007-02-231-0/+12
| | | | | | | | | | 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>
* Remove unnecessary check from HVM builder.kfraser@localhost.localdomain2007-02-151-9/+0
| | | | | Thanks to Guy Zana for spotting this. Signed-off-by: Keir Fraser <keir@xensource.com>
* Lift physical address restriction in save/restore code.kfraser@localhost.localdomain2007-02-154-9/+16
| | | | | | Bump this to 44 bits for x86-32 and 52 bits for x86-64. Signed-off-by: Jan Beulich <jbeulich@novell.com>
* libxc: Fix xc_vcpu_{set,get}_affinity (Xen-bugzilla No.900).kfraser@localhost.localdomain2007-02-151-2/+2
| | | | | | http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=900 Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* Remove old elf-parsing code from tools and from Xen.kfraser@localhost.localdomain2007-02-156-2410/+0
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* Export PRI_xen_pfn rather than PRIpfn: less polluting of namespace.kfraser@localhost.localdomain2007-02-141-0/+2
| | | | | | libxc continues to use PRIpfn internally, #defined to PRI_xen_pfn. Signed-off-by: Keir Fraser <keir@xensource.com>
* Merge with xenppc-unstable.hgkfraser@localhost.localdomain2007-02-145-91/+71
|\
| * [HVM] Save/restore: disentangle max_pfn from nr_pages.Tim Deegan2007-02-093-32/+28
| | | | | | | | | | | | | | 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>
| * [HVM] Save/restore: don't try to set the console ring MFNTim Deegan2007-02-083-7/+4
| | | | | | | | | | | | 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>
| * [HVM] Save/restore: don't try to save the MMIO memory-hole at 4GB.Tim Deegan2007-02-071-43/+27
| | | | | | | | | | Also remove two integer arrays that were set to a[i] == i. Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
| * [HVM] Save/restore: dynamically calculate the size of the save bufferTim Deegan2007-02-072-12/+15
| | | | | | | | Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* | [LIBELF] Define PRIpfn next to xen_pfn_t.Hollis Blanchard2007-02-091-5/+0
| | | | | | | | Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
* | [POWERPC][XEN] Opt out of new libxc domain builder.Hollis Blanchard2007-02-092-107/+0
| | | | | | | | | | PowerPC needs more flexibility than the new framework allows. Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
* | [POWERPC][XEN] Fix mismerge.Hollis Blanchard2007-02-071-0/+14
| |
* | [POWERPC][XEN] Merge with xen-unstable.hg.Hollis Blanchard2007-02-0635-946/+5051
|\| | | | | | | Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
| * New domain builder arch_setup hook clean up.kfraser@localhost.localdomain2007-02-022-26/+19
| | | | | | | | | | | | | | | | 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>