aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc
Commit message (Collapse)AuthorAgeFilesLines
...
* | | [POWERPC][LIBXC] Fix pointer math in ft_add_rsvmap(), rename string block to ↵Ryan Harper2007-01-112-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | match DTC spec. Signed-off-by: Ryan Harper <ryanh@us.ibm.com> Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com> --HG-- extra : transplant_source : %D6H%17U%AD%E6%FB%E7-%8EQ%91%91%F1%21%60%F9%2C%D5%17
* | | [POWERPC][LIBXC] Whitespace cleanup of powerpc64/xc_linux_build.cRyan Harper2007-01-111-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Ryan Harper <ryanh@us.ibm.com> Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com> --HG-- extra : transplant_source : G%A4%3A%10%86G%A9%C8R4%08%C3%9A%B0Tj%B9H%3CZ
* | | [POWERPC][LIBXC] Add missing HVM stubs.Hollis Blanchard2007-01-031-0/+12
| |/ |/| | | | | | | | | | | Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com> --HG-- extra : transplant_source : %5B%A9%A9%F7%D5%F4%FF%16%85%00%06%B2%A0%B2%ECC%7Cy%D9
* | Remove unused #defines.Steven Hand2006-12-291-6/+0
| | | | | | | | Signed-off-by: Steven Hand <steven@xensource.com>
* | Remove 'netbuf race' debug output - we get tons of these for balloonedSteven Hand2006-12-291-6/+6
| | | | | | | | | | | | | | | | | | down domains, and there's no way for us to distinguish that from the (transient) case of network buffers. Also tidy up comment. Signed-off-by: Steven Hand <steven@xensource.com>
* | Improve consistency of type-attribute usage (volatile/const).kfraser@localhost.localdomain2006-12-215-60/+69
| | | | | | | | | | From: Christoph Egger <Christoph.Egger@amd.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* | [LIBXC] Fix iteration over GDT in save/restore code.kfraser@localhost.localdomain2006-12-202-12/+7
|/ | | | | Bug spotted by Tim Wood. Signed-off-by: Keir Fraser <keir@xensource.com>
* [IA64][HVM] Use vcpu info from getdomaininfoawilliam@xenbuild2.aw2006-12-141-2/+8
| | | | | | This replaces the get/set_param using HVM_PARAM_VCPUS Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* Allow loading of ELF kernel images that support both PAE and non-PAE.kfraser@localhost.localdomain2006-12-143-17/+28
| | | | | | Also change the elf loader to not look for a strings section unless it is needed. Signed-off-by: Bruce Rogers <brogers@novell.com>
* [TOOLS] Fix the build. Clearly demarcate PPC-specific stuff.kfraser@localhost.localdomain2006-12-132-4/+5
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* [POWERPC] Merge with xen-unstable.hg.Hollis Blanchard2006-12-1214-261/+563
|\ | | | | | | Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
| * [BUILDER] Enable shadow mode for shadow translate guests much earlier.Ian Campbell2006-12-111-99/+65
| | | | | | | | Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
| * Merge with xen-ia64-unstable.hgkaf24@localhost.localdomain2006-12-092-10/+16
| |\
| | * [LIBXC] Make strerror() thread-safe by protecting it with a mutex.kfraser@localhost.localdomain2006-12-082-10/+16
| | | | | | | | | | | | | | | | | | Using strerror_r() is made difficult by the different GNU definition, and different distros variously choose the POSIX or GNU prototype. Signed-off-by: Keir Fraser <keir@xensource.com>
| * | [IA64] xc_ia64_linux_restore fix for new foreign domain page mapping semanticsawilliam@xenbuild2.aw2006-12-071-36/+32
| | | | | | | | | | | | Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
| * | [IA64] Domain save fix for foreign domain page mapping semantics changeawilliam@xenbuild2.aw2006-12-071-3/+3
| | | | | | | | | | | | Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
| * | [IA64] Map shared_info into guest pseudo physical address spaceawilliam@xenbuild2.aw2006-12-071-8/+12
| | | | | | | | | | | | | | | | | | Allows libxc to map from dom0. This is used by domain builder. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
| * | merge with xen-unstable.hgawilliam@xenbuild2.aw2006-12-089-49/+285
| |\|
| | * [LIBXC] Clean up use of sterror(). Define a thread-safekfraser@localhost.localdomain2006-12-085-6/+20
| | | | | | | | | | | | | | | | | | version which uses strerror_r(), and tries to cope with the POSIX and GNU versions of that function. Signed-off-by: Keir Fraser <keir@xensource.com>
| | * [XEN] Implement XENMEM_set_memory_map, which specifies memory map tokfraser@localhost.localdomain2006-12-082-0/+50
| | | | | | | | | | | | | | | | | | | | | | | | be returned by XENMEM_memory_map. Hook this into the domain builder. Based on a patch by Glauber de Oliveira Costa <gcosta@redhat.com> Signed-off-by: Keir Fraser <keir@xensource.com>
| | * Fix PERROR.Ewan Mellor2006-12-071-1/+1
| | | | | | | | | | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
| | * [LIBXC] Add an error reporting API to the libxc library.kfraser@localhost.localdomain2006-12-076-44/+216
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - An 'xc_error' struct is used to pass around error details. Currently contains two members 'code' an enumeration of error types, and 'message' a free text description of the specific problem. - The xc_get_last_error() method returns a const pointer to the internal instance of this struct manged by libxc. By returning a const pointer we can add extra members to the end of the struct at any time without worrying about ABI of callers. This will let us provide more fine-grained info if needed in the future. - The xc_error instance is statically defined inside libxc and marked __thread. This ensures that errors are recorded per-thread, and that when dealing with errors we never need to call malloc - all storage needed is statically allocated. - The xc_clear_last_error() method resets any currently recorded error details - The xc_error_code_to_desc() method converts the integer error code into a generic user facing messsage. eg "Invalid kernel". Together with the 'message' field from xc_error, this provides the user visible feedback. eg "Invalid kernel: Non PAE-kernel on PAE host." - A callback can be registered with xc_set_error_handler to receive notification whenever an error is recorded, rather than querying for error details after the fact with xc_get_last_error - If built with -DDEBUG set, a default error handler will be registered which calls fprintf(stderr), thus maintaining current behaviour of logging errors to stderr during developer builds. - The python binding for libxc is updated to use xc_get_last_error to pull out error details whenever appropriate, instead of returning info based on 'errno' - The xc_set_error method is private to libxc internals, and is used for setting error details - The ERROR and PERROR macros have been updated to call xc_set_error automatically specifying XC_INTERNAL_ERROR as the error code. This gives a generic error report for all current failure points - Some uses of the ERROR macro have been replaced with explicit calls to xc_set_error to enable finer grained error reporting. In particular the code dealing with invalid kernel types uses this to report about PAE/architecture/wordsize mismatches The patch has been tested by calling xm create against a varietry of config files defining invalid kernels of various kinds. It has also been tested with libvirt talking to xend. In both cases the error messages were propagated all the way back up the stack. There is only one place where I need to do further work. The suspend & restore APIs in Xend invoke external helper programs rather than calling libxc directly. This means that error details are essentially lost. Since there is already code in XenD which scans STDERR from these programs I will investigate adapting this to extract actual error messages from these helpers. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
| * | [IA64] Fix Vtiawilliam@xenbuild2.aw2006-12-061-21/+4
| | | | | | | | | | | | | | | | | | | | | | | | Use new foreign page mapping interface Signed-off-by: Xu Anthony <Anthony.xu@intel.com> Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com> Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
| * | [IA64] changed foreign domain page mapping semantic.awilliam@xenbuild.aw2006-12-051-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | x86 foreign HVM domain page mapping semantic was changed to use gmfn instead mfn. It applies to domains with auto_translated_mode enabled, and all ia64 domains enable auto_translated_mode. This patch changes ia64 foreign domain page mapping to use gmfn and fixes ia64 domU buidler. However this patch breaks domain save/restore/dump-core. They should also be fixed-up Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
| * | [IA64] Fix VTi domain creationawilliam@xenbuild.aw2006-12-051-4/+6
| | | | | | | | | | | | | | | | | | Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
| * | [IA64][LIBXC] prep for fixesawilliam@xenbuild.aw2006-12-052-23/+7
| | | | | | | | | | | | | | | | | | | | | | | | Groundwork for real fixes to follow Signed-off-by: Alex Williamson <alex.williamson@hp.com>
| * | merge with xen-unstable.hgawilliam@xenbuild.aw2006-12-043-3/+31
| |\|
| | * [LIBXC] Add new AP{I function xc_evtchn_bind_unbound_port().kfraser@localhost.localdomain2006-12-013-3/+31
| | | | | | | | | | | | | | | | | | Add a comment clarifying how this function differs from xc_evtchn_alloc_unbound(). Signed-off-by: Keir Fraser <keir@xensource.com>
| * | [IA64] update xc_set_hvm_param(), add xc_get_hvm_param()awilliam@xenbuild.aw2006-12-021-7/+29
| | | | | | | | | | | | | | | | | | Signed-off-by: Alex Williamson <alex.williamson@hp.com>
| * | merge with xen-unstable.hgawilliam@xenbuild.aw2006-11-289-221/+144
| |\|
| * | [IA64] New initial memory interface for HVM on ia64awilliam@xenbuild.aw2006-11-221-20/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use xc_domain_memory_populate_physmap() to allocate memory and build P2M/M2P table in setup_guest(). vmx_build_physmap_table() is only used to mark IO space now. Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
* | | [POWERPC] Merge in outstanding changes from xenppc-unstable.hg.Hollis Blanchard2006-12-127-14/+71
| | | | | | | | | | | | | | | | | | | | | It's a long story, but basically a small divergence in xenppc-unstable meant a large number of changesets couldn't be directly imported to xen-unstable, so this changeset includes all of them. Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
* | | [TOOLS][POWERPC] Add missing prototypeJimi Xenidis2006-11-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | This gets rid of a warning on some GCC versions Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com> Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com> --HG-- extra : transplant_source : j%9A%E4%9A%3B%FE%5E%2B%F2%FC%FF%3A%17%9A%1CU%83%86%3D%F1
* | | [TOOLS][POWERPC]fixes to put back commandline in prose builderJimi Xenidis2006-10-241-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following patch puts back a couple of lines of code which copies the specified command line to the start info structure. Must have gotten lost in prior merges. Signed-off-by: Jonathan Appavoo <jappavoo@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 : %91H%F7%81m%00%BCE%A8yZQ%19%DB%99I%89J%3F%89
* | | [TOOLS][POWERPC] oops, forgot load_elf_kernel()Jimi Xenidis2006-10-181-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com> Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com> --HG-- extra : transplant_source : %EC%E7%03%7Cr%C6%B7%94N%DE%22a%EC%1F%E9%9C%14%89%CF%F4
* | | [TOOLS][POWERPC] Use a smaller page array and place common code in utils.cJimi Xenidis2006-10-185-369/+241
| | | | | | | | | | | | | | | | | | | | | | | | Since all the bits must be loaded into the RMA there is no need to get the entire page array, just those pages in the RMA. We also place common functions in utils.c Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com> Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
* | | [TOOLS][POWERPC] apply start_info changes to xc_prose_build.cJimi Xenidis2006-10-181-31/+29
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com> Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com> --HG-- extra : transplant_source : %D4%08%FC%F1%97ZCY%3Dtk%2A%CB%E8%40%DB%FF%D9%11%B8
* | | [TOOLS][POWERPC] Add Prose Domain BuilderJimi Xenidis2006-10-183-1/+492
| | | | | | | | | | | | | | | | | | | | | | | | The following patch addes a Prose domain builder. For the moment it is a clone of the linux ppc64 builder but will diverge quickly. Signed-off-by: Jonathan Appavoo <jappavoo@us.ibm.com> Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com> Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
* | | [TOOLS][POWERPC] Fix build breakage in powerpc64/xc_linux_build.cJimi Xenidis2006-10-181-25/+26
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | The patch "[SOLARIS] Don't build ptrace code on Solaris." from xen-unstable now causes siginfo.h to be included which #defines "si_addr" to "_sifields._sigfault.si_addr". and breaks the build of powerpc64/xc_linux_build.c. This patch renames si_addr -> start_info_addr si -> start_info (for consistency) and start_info -> si (in load_devtree beuse of the renaming above) Signed-off-by: Tony Breeds <tony@bakeyournoodle.com> Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com> Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
* | [HVM] Re-introduce the 'apic' configuration option, default to 1.kfraser@localhost.localdomain2006-11-273-137/+57
| | | | | | | | | | | | | | | | Also simplify the HVM builder interface by doing more work in the python wrapper, and fix mapping of shared_info page after the change to map foreign pages by GMFN rather than MFN. Signed-off-by: Keir Fraser <keir@xensource.com>
* | [XEN] Cleanups to phys/mach address handling.kfraser@localhost.localdomain2006-11-276-77/+6
| | | | | | | | | | | | | | | | | | | | 1. Balloon driver does not need to set M2P entry. This is done by the populate_physmap hypercall. 2. Xen now translates foreign mappings from GMFN->MFN. Tools are simplified because of this. Signed-off-by: Keir Fraser <keir@xensource.com>
* | [HVM] Reworked interrupt distribution logic.kfraser@localhost.localdomain2006-11-212-7/+81
|/ | | | | | | | | | | | | TODO: 1. Fix IO-APIC ID to not conflict with LAPIC IDS. 2. Fix i8259 device model (seems to work already though!). 3. Add INTSRC overrides in MPBIOS and ACPI tables so that PCI legacy IRQ routing always ends up at an IO-APIC input with level trigger. Restricting link routing to {5,6,10,11} and setting overrides for all four of those would work. Signed-off-by: Keir Fraser <keir@xensource.com>
* [LIBXC] Replace API uses of size_t with ulong.kfraser@localhost.localdomain2006-11-173-7/+6
| | | | | | | Avoids possibility of different FILE_OFFSET_BITS defn. across the interface. Signed-off-by: Keir Fraser <keir@xensource.com>
* [IA64] Fix build breakage.kaf24@firebug.cl.cam.ac.uk2006-11-161-1/+0
| | | | Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* [XEN] Various selector and callback cleanups to simplify the toolskfraser@localhost.localdomain2006-11-152-49/+3
| | | | | | and assumptions about callback selector values on x86/32. Original patch from Jan Beulich <jbeulich@novell.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* [BUILDER] Simplify vcpu context initialisation by pre-zeroingkfraser@localhost.localdomain2006-11-151-28/+3
| | | | | the context structure. Signed-off-by: Jan Beulich <jbeulich@novell.com>
* [LIBXC] Clarify error messages to talk about allocation 'extents'kfraser@localhost.localdomain2006-11-151-3/+3
| | | | | rather than 'pages'. Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
* [IA64] fix VTI bootawilliam@xenbuild.aw2006-11-101-1/+15
| | | | | | | | | workaroud patch for memory initial interface Signed-off-by: zhang xiantao <xiantao.zhang@intel.com> Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
* [IA64] IA64 counter part of the change 12204:e6fdb32b786c of xen-unstable.hgawilliam@xenbuild.aw2006-11-101-43/+31
| | | | | | | | | Remove xc_ia64_get_pfn_list() from setup_guest() in xc_linux_build.c, use xc_domain_populate_physmap() and xc_domain_translate_gpfn_list(). Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* [IA64] fix ia64 linux domain builder broken by 12009:4a320d26fc24 of ↵awilliam@xenbuild.aw2006-11-101-16/+32
| | | | | | | | xen-unstable.hg. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>