aboutsummaryrefslogtreecommitdiffstats
path: root/xen/tools
Commit message (Collapse)AuthorAgeFilesLines
* xen/compat: support XEN_HAVE_FOO ifdefs in public interfaceIan Campbell2013-08-202-0/+6
| | | | | | | | | | | | | | | | This allows us expose or hide interface features on different architectures without requiring nasty arch-specific ifdeffery. Preserves any #ifdef with a XEN_HAVE_* symbol name, as well as any #else or The ifdef symbol becomes COMPAT_HAVE in the compat versions so that architectures can enable or disable interfaces for compat mode too. (This actually just fell out of the way the existing stuff works and it didn't seem worth jumping through hoops to make the name remain XEN_HAVE). Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Keir Fraser <keir@xen.org> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
* scmversion: 'Improve' svn interaction.Andrew Cooper2013-08-021-10/+1
| | | | | | | | | | | Xen has never been in an svn tree, and the current code will unconditionally create a .svn directory when run from a tarball. Therefore, simply discard the svn support. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Keir Fraser <keir@xen.org>
* Cleanup scmversion script, fix --save-scmversion optionMarek Marczykowski2013-07-171-9/+6
| | | | | | Remove unused variable, fix erroneously removed --save-scmversion code. Signed-off-by: Marek Marczykowski <marmarek@invisiblethingslab.com>
* Use {git, hg, svn} commit id if available for xen_changesetMarek Marczykowski2013-05-131-0/+101
| | | | | | | | | As Xen uses git as primary repository, get git commit id for xen_changeset info. Signed-off-by: Marek Marczykowski <marmarek@invisiblethingslab.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Keir Fraser <keir@xen.org>
* Do not re-define XEN_ROOT in hypervisor sub-Makefiles.Keir Fraser2011-03-172-2/+0
| | | | | | | We can globally export it from xen/Makefile instead, as all hypervisor builds have this Makefile at their root. Signed-off-by: Keir Fraser <keir@xen.org>
* x86-64: reduce symbol table sizeKeir Fraser2009-07-131-31/+12
| | | | | | | | | | | | | | With all of Xen's symbols sitting within a 2Gb range on x86-64, they can be referred to by the kallsyms-like offset table using 4- instead of 8-byte slots. The marker table can use 4-byte slots in all cases, just like the table entry counts can (though that's only a minor improvement). If ia64's PERCPU_ADDR got moved down to (KERNEL_START + 2Gb - PERCPU_PAGE_SIZE), it could also utilize the more compact form. Signed-off-by: Jan Beulich <jbeulich@novell.com>
* Use $(PYTHON) Makefile variable when building the hypervisor.Keir Fraser2009-07-091-1/+8
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* tmem: fix 32-on-64 supportKeir Fraser2009-06-171-2/+58
| | | | | | | | | This implicitly required coverting the tmem_op structure from anonymous to standard struct/union sub-fields, and extending the get-fields.sh helper script to deal with typedef-ed guest handles used as types of translated compound type fields. Signed-off-by: Jan Beulich <jbeulich@novell.com>
* x86 mce: fix c/s 17968 for 32-on-64Keir Fraser2009-03-311-1/+1
| | | | | | | | | | | | | | | | 32-on-64 aspects were not properly considered. Add respective checking, and adjust structure layouts for the cases where the checking pointed out issues. Also, - fix a potential memory corruption issue (do_mca() could write beyond log_cpus' end if the guest specified less than the number of online CPUs - there is no reason to make the (not even properly prefixed) definitions in xen/public/arch-x86/xen-mca.h globally visible by including the file from xen/public/arch-x86/xen.h. Signed-off-by: Jan Beulich <jbeulich@novell.com>
* Avoid warn_unused_result build failure on fgets().Keir Fraser2008-11-271-1/+2
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* xen: build fix for NetBSD (test -x usage).Keir Fraser2008-06-051-1/+3
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* x86: fix a few 32-on-64 compat mode issuesKeir Fraser2008-05-121-1/+0
| | | | | | | | | | | - handle VCPUOP_register_vcpu_info and VCPUOP_get_physid (and add respective layout checks) - add missing structure size check for struct vcpu_info - add missing layout check for vcpu_set_periodic_timer - handle VCPUOP_set_singleshot_timer via argument translation as the structure sizes differ (due to padding in 64-bits) Signed-off-by: Jan Beulich <jbeulich@novell.com>
* figlet: Fix handling of full final line of octal output.Keir Fraser2008-04-231-10/+10
| | | | | | It should not be terminated with a backslash. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Cache figlet output across builds, and provide src-tarball targetKeir Fraser2008-04-211-2/+2
| | | | | | | which creates figlet output and then deletes figlet itself (which is not licensed under GPL). Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Use $(SHELL) to find shell to run get-fields.sh script.Keir Fraser2007-10-231-1/+0
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* Fix x86/64 build for *BSD.Keir Fraser2007-10-193-19/+27
| | | | | | | - Config.mk: uname -m prints "amd64". Deal with this. - do not assume python is always in /usr/bin - get-fields.sh: make it portable and non-bash specific Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* Fix xen build on NetBSD.kfraser@localhost.localdomain2007-05-301-2/+3
| | | | | From: Christoph Egger <Christoph.Egger@amd.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* [XEN] Wrap compat XLAT_ macros in "do { } while (0)".Tim Deegan2007-02-011-1/+3
| | | | | | | | | | | This unbreaks code like if ( !IS_COMPAT(dom) ) memcpy(); else XLAT_foo(); Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* Fix compat build for weird solaris gcc target.kaf24@localhost.localdomain2007-01-281-1/+1
| | | | Signed-off-by: John Levon <john.levon@sun.com>
* Make get-fields.sh really get run by bash rather than default /bin/sh.Alastair Tse2007-01-121-12/+12
| | | | | | Also fix some bashisms in the script. Signed-off-by: Alastair Tse <atse@xensource.com>
* [XEN] Partial fix for compat build non-portability.Emmanuel Ackaouy2007-01-103-15/+70
| | | | Signed-off-by: John Levon <john.levon@sun.com>
* Fix signedness issue in private implementation of memmem().kfraser@localhost.localdomain2007-01-081-1/+1
| | | | Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* Handle the creation of startup info for compatibility mode guests. ThisEmmanuel Ackaouy2007-01-051-0/+425
| | | | | | | includes a script to auto-generate checking or translation code between native and compatibility mode hypercall argument structures. Signed-off-by: Jan Beulich <jbeulich@novell.com>
* [XEN] Avoid use of GNU-specific memmem().kfraser@localhost.localdomain2007-01-041-2/+10
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* [XEN] Make labels _start,_end,_stext,_etext,_sinittext,_einittext generic.kaf24@localhost.localdomain2007-01-031-330/+111
| | | | | | Also sync the tools/symbol.c symbol table generator with Linux. Make section names generic (e.e.g, .init.text, .init.data, ...). Signed-off-by: Keir Fraser <keir@xensource.com>
* [XEN] Fix array ngative accesses in figlet tool.kaf24@firebug.cl.cam.ac.uk2006-09-151-2/+3
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* Use a global build configuration file, and rework libxc Makefile for PPC.kfraser@dhcp93.uk.xensource.com2006-05-312-2/+4
| | | | | Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
* Remove some bogus .PHONY Makefile declarations.kaf24@firebug.cl.cam.ac.uk2006-04-111-1/+0
| | | | | | | | Fixes xentop installation. Signed-off-by: Keir Fraser <keir@xensource.com>
* build: Clean up use of .PHONYkaf24@firebug.cl.cam.ac.uk2006-04-102-0/+4
| | | | | | | | | | | | * Move .PHONY directives next to targets, this makes them a lot harder to miss * Add missing .PHONY directives * Remove nonexistent .PHONY directives * Hopefully I didn'T miss anything... Signed-Off-By: Horms <horms@verge.net.au>
* Fix where "!" operator used in Bitwise operation. kaf24@firebug.cl.cam.ac.uk2005-08-111-1/+1
| | | | | | | | | In IBM we have an internal source code scanner called BEAM. We have run it against Xen and here are some of the results. Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
* The attached patch adds -Werror to HOSTCFLAGS in Config.mk, makeskaf24@firebug.cl.cam.ac.uk2005-08-082-6/+6
| | | | | | | | | xen/tools actually use HOSTCFLAGS (it was already using HOSTCC), and fixes some gcc-4.0 signedness warnings in xen/tools/symbols.c. Signed-off-by: Josh Triplett <josht@us.ibm.com>
* Port kallsyms to Xen, as 'symbols'.kaf24@firebug.cl.cam.ac.uk2005-07-222-1/+724
| | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* bitkeeper revision 1.1236.1.108 (423fe7beyFkqCprMaL7QQL_zfloFtQ)kaf24@firebug.cl.cam.ac.uk2005-03-221-1/+1
| | | | | | tiny makefile fix. Signed-off-by: Keir Fraser <keir@xensource.com>
* bitkeeper revision 1.1236.1.105 (423fdeaeuXmbQUj74cWh1nItpSKUjw)kaf24@firebug.cl.cam.ac.uk2005-03-221-2/+2
| | | | | | Improved cross-compilation support. Signed-off-by: Keir Fraser <keir@xensource.com>
* bitkeeper revision 1.1159.170.67 (41d291f6BNS1b72mftsOXrpMhpZ9og)kaf24@scramble.cl.cam.ac.uk2004-12-296-0/+4439
| | | | | M
* bitkeeper revision 1.1062.1.1 (40f00372K2jgGqY_Vwj24Lvaf0UqRw)kaf24@scramble.cl.cam.ac.uk2004-07-107-4562/+0
| | | | | | Rewritten bootstrap Elf-header creation to allow encapsulation of x86-64 code for 32-bit bootloaders.
* bitkeeper revision 1.1020 (40debbf6f8HvBW3MU_9c6ljHeGaKeQ)kaf24@scramble.cl.cam.ac.uk2004-06-271-3/+0
| | | | | cleanups.
* bitkeeper revision 1.779 (404f5e56uk4Iv1iH7kbxYdMbUacnlQ)iap10@tetris.cl.cam.ac.uk2004-03-101-0/+1
| | | | | minor makefile fix
* bitkeeper revision 1.396 (3f4d2199UsCzVuRmn-0-L6lh9VGYZg)kaf24@scramble.cl.cam.ac.uk2003-08-272-3/+3
| | | | | | Many files: Small cleanups. Faster checksum calculation for console UDP packets.
* bitkeeper revision 1.203.1.1 (3eb3c88bjetxHzcoqH6QUfVIBCLFGg)kaf24@scramble.cl.cam.ac.uk2003-05-036-0/+4440
| | | | | | | | xen.flf, figlet.c, README, Makefile, LICENSE, version.h, kernel.c: More initial banner fixes -- build version is stored in root Makefile. xen.flf, figlet.c, README, Makefile, LICENSE: new file
* bitkeeper revision 1.94 (3e5a4f5fzVaxemjfCt0N0OH8PYPiuw)iap10@labyrinth.cl.cam.ac.uk2003-02-242-0/+124
Rename xen-2.4.16 to just "xen" to reflect that it hasn't got any relation to the Linux kernel version.