aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-10-17Some hack to make gic work on dom0 (I hope)d01Frediano Ziglio
2014-10-17xen/arm: Implement hip04-d01 platformFrediano Ziglio
Add this new platform to Xen. This platform require specific code to initialize CPUs. Signed-off-by: Frediano Ziglio <frediano.ziglio@huawei.com>
2014-10-17xen/arm: handle GICH register changes for hip04-d01 platformFrediano Ziglio
The GICH in this platform is mainly compatible with the standard GICv2 beside APR and LR register offsets. Signed-off-by: Frediano Ziglio <frediano.ziglio@huawei.com>
2014-10-17xen/arm: Make gic-v2 code handle hip04-d01 platformFrediano Ziglio
The GIC in this platform is mainly compatible with the standard GICv2 beside: - ITARGET is extended to 16 bit to support 16 CPUs; - SGI mask is extended to support 16 CPUs; - maximum supported interrupt is 510. Signed-off-by: Frediano Ziglio <frediano.ziglio@huawei.com>
2014-10-14xen: arm64: Handle memory banks which are not 1GB alignedIan Campbell
The code in the arm64 version of setup_xenheap_mappings was making some very confused attempts to handle this but was bogus. As well as adjusting the mapping to start on a 1GB boundary we also need to account for the offset between the start of the mapping and the actual start of the heap when converting between page pointers, virtual addresses and machine addresses. I preferred to do this by explicitly accounting for the offset rather than adding an offset to the frametable because that approach could potentially waste a large amount of frametable (up to just less than 1GB worth) but also because of issues with converting mfns from outside the regions considered for pdx initialisation (which are not 1GB aligned) back and forth. We already have an idea of the distinction between the start of the direct map and the start of the xenheap in the difference between DIRECTMAP_VIRT_START and XENHEAP_VIRT_START. Until now these were the same thing, but now we change XENHEAP_VIRT_START to point to the actual start of heap not the mapping. Surprisingly there was only one place which was using the conceptually wrong value. Also change xenheap_virt_end to a vaddr_t for consistency. We've been lucky so far that most hardware happens to locate memory on a 1GB boundary (we did have reports of a system with memory at a half gig boundary which exhibited failures which I didn't manage to follow up on successfully). The EFI support has exposed this shortcoming by the way it handles reserved memory, which has a similar effect to having memory non-1GB aligned. arm32 does things differently here due to using a small Xen heap and a demand mapped domain heap, so isn't affected. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Cc: Suravee Suthikulanit <suravee.suthikulpanit@amd.com> Cc: Roy Franz <roy.franz@linaro.org> Cc: Vijay Kilari <vijay.kilari@gmail.com> Reviewed-by: Julien Grall <julien.grall@linaro.org> Tested-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com> Roy Franz <roy.franz@linaro.org>
2014-10-14EFI: update MAINTAINERS after moving of filesJan Beulich
I forgot to request this to be done along with the files being moved. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
2014-10-14Merge branch 'staging' of ssh://xenbits.xen.org/home/xen/git/xen into stagingIan Campbell
2014-10-14Fix configure --with-systemd-modules-load=DIROlaf Hering
Currently --with-systemd=DIR1 --with-systemd-modules-load=DIR2 will set both XEN_SYSTEMD_DIR and XEN_SYSTEMD_MODULES_LOAD to DIR1. The reason is that both AC_ARG_WITH() use 'systemd' as the name for the internal variable. As a result the value of the first option is also use as the value for the second option. Fix this by using another variable name. Signed-off-by: Olaf Hering <olaf@aepfle.de> Cc: Ian Campbell <ian.campbell@citrix.com> Cc: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Cc: Wei Liu <wei.liu2@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> [ijc -- ran autogen.sh as requested]
2014-10-14libxl: include sys/ioctl.hRoger Pau Monne
This is a requirement for the code in libxl_remus_disk_drbd.c that uses the ioctl syscall. Fixes the following error when building on FreeBSD: libxl_remus_disk_drbd.c: In function 'drbd_postsuspend': libxl_remus_disk_drbd.c:197:9: error: implicit declaration of function 'ioctl' [-Werror=implicit-function-declaration] Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> Cc: Lai Jiangshan <laijs@cn.fujitsu.com> Cc: Wen Congyang <wency@cn.fujitsu.com> Cc: Yang Hongyang <yanghy@cn.fujitsu.com> Cc: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Ian Campbell <ian.campbell@citrix.com> Cc: Wei Liu <wei.liu2@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
2014-10-14Remove obsolete dev-docs target from toplevel MakefileOlaf Hering
The actual target was removed with commit 5806093a20e20209d4b88ab866ae1e6017c95de7 ("docs: drop doxygen stuff") Signed-off-by: Olaf Hering <olaf@aepfle.de> Cc: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Cc: Ian Campbell <ian.campbell@citrix.com> Cc: Wei Liu <wei.liu2@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
2014-10-14Remove dead qemu variables from toplevel MakefileOlaf Hering
The variables should have been removed already in 7ed06911dc596d23f21dee209b7f2db294e34b56 ("Remove dead qemu code from toplevel Makefile"), but I did not spot it at this time. Now it looks like the intention initially was to let the install-tools depend on tools/qemu-xen-traditional-dir. But that did not work because there was the typo in the variables (TGT vs. TARGET), and CONFIG_QEMU_TRAD was not defined anyway. So remove QEMU_TRAD_DIR_TARGET and QEMU_XEN_DIR_TARGET because they are not defined at all. Signed-off-by: Olaf Hering <olaf@aepfle.de> Cc: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Cc: Ian Campbell <ian.campbell@citrix.com> Cc: Wei Liu <wei.liu2@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
2014-10-14Use C xenstored with --disable-ocamltoolsOlaf Hering
When xen is configured with --disable-ocamltools then oxenstored will still be the default if all required ocaml devel packages are installed. The reason is that xenstored.m4 is included before the ocamltools check. And xenstored.m4 does not use the result of --disable-ocamltools. Rearrange the code to check first for the presence of ocaml, then check --disable-ocamltools and finally decide what sort of xenstored should be the default. Signed-off-by: Olaf Hering <olaf@aepfle.de> Cc: Ian Campbell <ian.campbell@citrix.com> Cc: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Cc: Wei Liu <wei.liu2@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> [ ijc -- ran autogen.sh as requested]
2014-10-14Adjust helptext in m4/systemd.m4Olaf Hering
Use AS_HELP_STRING for proper formating, mention both options take a directory, mention the default value, quote the arguments in brackets. Signed-off-by: Olaf Hering <olaf@aepfle.de> Cc: Ian Campbell <ian.campbell@citrix.com> Cc: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Cc: Wei Liu <wei.liu2@citrix.com> [ijc -- ran autogen.sh as requested] Acked-by: Ian Campbell <ian.campbell@citrix.com>
2014-10-14Fix typo in m4/xenstored.m4Olaf Hering
Signed-off-by: Olaf Hering <olaf@aepfle.de> Cc: Ian Campbell <ian.campbell@citrix.com> Cc: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Cc: Wei Liu <wei.liu2@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> [ijc -- ran autogen.sh as requested]
2014-10-14stubdom: provide install-c targetOlaf Hering
configure --enable-c-stubdom fails to build with 'make rpmball' because no install target exists for it. Just provide it to fix build. Signed-off-by: Olaf Hering <olaf@aepfle.de> Cc: Ian Campbell <ian.campbell@citrix.com> Cc: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Samuel Thibault <samuel.thibault@ens-lyon.org> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Cc: Wei Liu <wei.liu2@citrix.com> Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
2014-10-14xen/arm: Use PSCI-0.2 for machine_halt/restart by defaultSuravee Suthikulpanit
"machine_halt()" and "machine_restart()" are modified to use PSCI interface by default if PSCI-0.2 is supported. The "raw_machine_reset()" is also removed since this is unnecessary. Also, machine_halt() is modified to add 10ms delay to make sure all auxiliary CPUs are offlined before calling the shutdown. For non-PSCI, platform_poweroff() and platform_reset() are used instead. Signed-off-by: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
2014-10-14xen/arm: Initial support for PSCI-0.2Suravee Suthikulpanit
This patch adds SMC calls to suport a subset of PSCI-0.2 functions (PSCI_VERSION, CPU_ON, SYSTEM_OFF, SYSTEM_RESET). By default, the psci_init() will use PSCI-0.2. Otherwise, it will use PSCI-0.1 if PSCI-0.2 fails or un-supported. To add support for PSCI_VERSION, this patch replaces the "bool_t psci_available" variable with "int psci_ver", which contains the PSCI_VERSION as described in the PSCI-0.2 spec. Signed-off-by: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
2014-10-14xen: arm: Do not enable EFI in dom0 since it is not yet supported.Suravee Suthikulpanit
Since EFI is not yet supported in dom0, we need to remove the following properties from the chosen node: * linux,uefi-mmap-start * linux,uefi-mmap-size * linux,uefi-mmap-desc-size * linux,uefi-mmap-desc-ver These are added by "arch/arm/efi/efi-boot.h: fdt_add_uefi_nodes()", and used by dom0 kernel to enable EFI. Cc: Julien Grall <julien.grall@linaro.org> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Cc: Ian Campbell <ian.campbell@citrix.com> Cc: Roy Franz <roy.franz@linaro.org> Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com> Reviewed-by: Julien Grall <julien.grall@linaro.org> Reviewed-by: Roy Franz <roy.franz@linaro.org> Acked-by: Ian Campbell <ian.campbell@citrix.com>
2014-10-14Remove stray blexit()Roy Franz
A stray call to blexit() was in the normal processing path for handling FDTs specified in the config file, causing the EFI boot code to unconditionally exit. Remove the blexit() call as it should never have been here. Signed-off-by: Roy Franz <roy.franz@linaro.org> Tested-by: Vijaya Kumar K<Vijaya.Kumar@caviumnetworks.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
2014-10-14tools/hotplug: Removing of "all" dependency from "install" rule.Anthony PERARD
The "install" rules depends on both "all" and "subdirs-install" and "all" depends on "subdirs-all". This leads the "install" rules to call both "subdirs-all" and "subdirs-install" which create a race with two concurrent `make` within the same directory (systemd) trying to make the same things (xen.conf) and failing. Ultimatly, "install" should only depend on the things it needs to install, and not on "all". Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Tested-by: Olaf Hering <olaf@aepfle.de> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
2014-10-10x86/boot/reloc: remove redundant blank characters and reformat comments a bitDaniel Kiper
Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
2014-10-10VT-d: fix RMRR related error handlingJan Beulich
- reassign_device_ownership() now tears down RMRR mappings (for other than Dom0) - to facilitate that, rmrr_identity_mapping() now deals with both establishing and tearing down of these mappings (the open coded equivalent in intel_iommu_remove_device() is being replaced at once) - intel_iommu_assign_device() now unrolls the assignment upon RMRR mapping errors - intel_iommu_add_device() now returns consistent values upon RMRR mapping failures (was: failure when last iteration ran into a problem, success otherwise) - intel_iommu_remove_device() no longer special cases Dom0 (it only ever gets called for devices removed from the _system_, not a domain) - rmrr_identity_mapping() now returns a proper error indicator instead of -1 when intel_iommu_map_page() failed Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Kevin Tian <kevin.tian@intel.com>
2014-10-10x86/vlapic: don't silently accept bad vectorsJan Beulich
Vectors 0-15 are reserved, and a physical LAPIC - upon sending or receiving one - would generate an APIC error instead of doing the requested action. Make our emulation behave similarly. Signed-off-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
2014-10-10Revert "tools/hotplug: fix race during xen.conf creation"Ian Campbell
This reverts commit eac3f5122fd4769b2885d8ad78bcbcf5df2472c1. The "all" target should never depend on "install", it is supposed to only build not install. Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
2014-10-08xenstore: extend the xenstore ring with a 'closing' signalDavid Scott
Hvmloader uses the xenstore ring and then tries to reset it back to its initial state before booting the guest. Occasionally xenstored will read the ring while it is being zeroed and conclude it has been corrupted. This prevents PV drivers from loading in the guest. This patch updates the xenstore ring protocol definition, enabling a server to advertise additional features to the guest. One such feature is defined: the ability to cleanly reset the ring including the higher-level protocol, like an enhanced RESET_WATCHES for rings. This patch implements the ring reconnection features in oxenstored and hvmloader, fixing the bug. This patch also defines an 'invalid' xenstore packet type and uses this to poison the ring over a reconnect. This will make diagnosing this bug much easier in future. Signed-off-by: David Scott <dave.scott@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Reviewed-by: Jon Ludlam <jonathan.ludlam@citrix.com>
2014-10-08oxenstored: reduce syslog call overheadZheng Li
We noticed that, if configured to use syslog as the logging backend, every single line of access logging (via the syslog C binding) will call stat on /etc/localtime for 3 times. The rational behind this is probably to detect any timezone changes over time. This is a considerable cost we'd like to avoid, given the intensiveness of our access logging --- we log almost every xenstore status change (for good reason). Also a running Xen host is rarely a mobile environment, so the little benefit can hardly justify the cost. Setting up the TZ environment varialbe can avoid stat calls. Signed-off-by: Zheng Li <dev@zheng.li> Reviewed-by: David Scott <dave.scott@citrix.com>
2014-10-08oxenstored: add a safe net mechanism for existing ill-behaved clientsZheng Li
In previous commit, we moved from exhaustively scanning all domain connections to only processing those have correctly notified us by events. The benefits are not only efficiency but also correctness, because it could potentially block an ill-behaved client and have it waiting on its own mistake. If someone makes a mistake on this when developing a piece of code, he/she would immediately notice the problem (as the process being blocked), so that he/she could fix it rightaway before anything else. Note that the chances of making such mistakes are rare in reality, because most client code would use the libxenstore library (which has all the notification logic built in correctly) instead of having to implement raw accessing from scratch. On the other hand, we did notice that there were some legacy code that didn't do the notification correctly. As some code might be still running in wild, it would be bad if they break by this change (e.g. after an upgrade). This patch introduces a safe net mechanism to ensure ill-behaved clients continue to work, but still retain most of the performance benefits here. * We add a checker to still scan all the rings periodically, so that we can still pick up these messages at an acceptable frequency. * Internally, we introduce an io_credit concept for domain connections. It represents the rounds of ring scan we are going to perform on a domain connection. For well-behaved connections, this value is changing between 0 and 1; but for connections detected as ill-behaved, we'll bump its credit to a high value so that we'll unconditionally scan its ring for the next $n$ rounds. This way, the client won't hiccupped by the interval between checker's running (especially during periods when it continously interacts with oxenstored); and oxenstored doesn't have to keep scanning these rings indefinitely (with the credit running out), as they are usually quite most of the time. * We log an message when a domain connection is suspected as ill-behaved. Enable [info] level logging if you want/need to see it in action. Note that this information won't be accurate, as false positives are possible due to time window (e.g. we detect a client has written to the ring and we get no notificiation from it for the time being, but still the notification could potentially arrive at some time later). It's no harm to give a domain connection extra credit though. Signed-off-by: Zheng Li <dev@zheng.li> Reviewed-by: David Scott <dave.scott@citrix.com>
2014-10-08oxenstored: only process domain connections that notify us by eventsZheng Li
Currently, upon receiving an event, oxenstored will always scan/process all the domain connections (xs rings), disregarding which domain sent that event. This is rather costy and inefficient. It also shadows and indulges client for not correctly communicating with us on message/space availability. With this patch, oxenstore will only scan/process the domain connections that have correctly notified us by events or have IO actions leftover from previous communication. Signed-off-by: Zheng Li <dev@zheng.li> Reviewed-by: David Scott <dave.scott@citrix.com>
2014-10-08oxenstored: enable domain connection indexing based on eventchn portZheng Li
Currently in xenstore connection database, we use a hash table of (domid -> connection) to store domain connections. This allows fast indexing based on dom ids. This patch adds another dimention of fast indexing that is based on eventchn port number. This is useful when doing selective connection processing based on the port numbers of incoming events. Signed-off-by: Zheng Li <dev@zheng.li> Reviewed-by: David Scott <dave.scott@citrix.com>
2014-10-08oxenstored: use hash table to store socket connectionsZheng Li
Currently we use list to store socket connections. This is fine for smaller number of connections. But when we scale up, traveling through a list of hundreds or thousands of connections just to find a single one of them is very low efficient. This patch replaces the list with a (Unix.file_descr -> Connection.t) hash table. Signed-off-by: Zheng Li <dev@zheng.li> Reviewed-by: David Scott <dave.scott@citrix.com>
2014-10-08oxenstored: catch the error when a connection is already deletedZheng Li
The function process_fdset_with is called on the read set connections first. During the process, it might destroy a connection and remove it from the connections database if some errors occur. However, a reference to the same connection might still exist in the write set, which is awaiting to be processed next. In this case, a Not_found error will be raised and the process is aborted. This patch changes the logic to ignore connections just missing from the connection database and continue the rest part of the work. Signed-off-by: Zheng Li <dev@zheng.li> Reviewed-by: David Scott <dave.scott@citrix.com>
2014-10-08oxenstored: add a --use-select command line flagZheng Li
This allows to fall back to the original Unix.select if preferred. It could be useful for debugging purposes too. Signed-off-by: Zheng Li <dev@zheng.li> Reviewed-by: David Scott <dave.scott@citrix.com>
2014-10-08oxenstored: add facilities to raise the max open fds uplimitZheng Li
To go beyond 1024 fds, we also need to raise the process limitation on max open fds (usually defaults to 1024). We need to know the system level max open fds so that we won't go above that. Simply setting the limit to RLIM_INFINITY doesn't work on Linux 3.x (EPERM), a patch on this went into the 2.x branch but not 3.x for some reason. Signed-off-by: Zheng Li <dev@zheng.li> Reviewed-by: David Scott <dave.scott@citrix.com>
2014-10-08oxenstored: add a poll-based select mechanismZheng Li
Currently, oxenstored uses Unix.select underneath, so it doesn't work properly if given a FD number >= 1024. This is a scalability bottleneck for hosts running large number of VMs. To remove this limitation, we implemented a poll-based mechanism but with the same type signature as the Unix.select currently in use. So these two functions can be interchangeable at any stage. Signed-off-by: Zheng Li <dev@zheng.li> Reviewed-by: David Scott <dave.scott@citrix.com>
2014-10-08tools/ocaml: Gate building tests on CONFIG_TESTSAndrew Cooper
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> CC: David Scott <dave.scott@eu.citrix.com> CC: Ian Campbell <Ian.Campbell@citrix.com> CC: Ian Jackson <Ian.Jackson@eu.citrix.com> CC: Wei Liu <wei.liu2@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: David Scott <dave.scott@citrix.com>
2014-10-08tools/xenstore: Only create SBINDIR if it is to be usedAndrew Cooper
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> CC: Ian Campbell <Ian.Campbell@citrix.com> CC: Ian Jackson <Ian.Jackson@eu.citrix.com> CC: Wei Liu <wei.liu2@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
2014-10-08tools/xenstore: Introduce clients-install targetAndrew Cooper
...to match the existing 'clients' built target. This is particularly useful when rebuilding the xenstore clients separately for a non-dom0 environment. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> CC: Ian Campbell <Ian.Campbell@citrix.com> CC: Ian Jackson <Ian.Jackson@eu.citrix.com> CC: Wei Liu <wei.liu2@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
2014-10-08gitignore: CleanupAndrew Cooper
This is a rough pruning based mainly on directories which no longer exist. Some of this was code deleted in 2007. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> CC: Keir Fraser <keir@xen.org> CC: Jan Beulich <JBeulich@suse.com> CC: Tim Deegan <tim@xen.org> CC: Ian Campbell <Ian.Campbell@citrix.com> CC: Ian Jackson <Ian.Jackson@eu.citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
2014-10-08Remove dead qemu code from toplevel MakefileOlaf Hering
After commit b0f69ec5c71de1248d915c193b57c43e786857dd ("tools: Make qemu-xen-traditional build optional.") the existing make targets are wrapped in ifeq ($(CONF),y), but CONF is never set because config/Tools.mk is not included. Drop the dead code. The same effect can be achieved by calling the make commands directly, after calling configure. A better approach would be a simple, single 'make $something' which should be a wrapper around a targets in tools/Makefile that clones, updates and cleans the subprojects. That has to be worked out in a different patch. Signed-off-by: Olaf Hering <olaf@aepfle.de> Cc: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Cc: Ian Campbell <ian.campbell@citrix.com> Cc: Wei Liu <wei.liu2@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
2014-10-08stubdom: another for fix for lwip compileOlaf Hering
stubdom/lwip-x86_64/src/core/dhcp.c: In function 'dhcp_create_request': stubdom/lwip-x86_64/src/core/dhcp.c:1361:64: error: array subscript is above array bounds The previous attempt to fix the failure above worked fine in SLE11, openSUSE 13.1 and newer. But gcc-4.5 as included in openSUSE 11.4 still failed to compile. To fix compilation also with this version of gcc move the range check right into the code instead of assigning it to a temporary variable. Signed-off-by: Olaf Hering <olaf@aepfle.de> Cc: Samuel Thibault <samuel.thibault@ens-lyon.org> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Acked-by: Ian Campbell <ian.campbell@citrix.com>
2014-10-08tools/ocaml: use APPEND_CFLAGS and APPEND_LDFLAGSOlaf Hering
While implementing the --enable-rpath change I noticed that a ocaml build does not use APPEND_LDFLAGS. Make use of APPEND_CFLAGS and APPEND_LDFLAGS as it is done already in other places. Signed-off-by: Olaf Hering <olaf@aepfle.de> Cc: David Scott <dave.scott@eu.citrix.com> Cc: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Cc: Ian Campbell <ian.campbell@citrix.com> Cc: Wei Liu <wei.liu2@citrix.com> Acked-by: David Scott <dave.scott@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
2014-10-08config: remove unused MSGFMT and MSGMERGEOlaf Hering
Signed-off-by: Olaf Hering <olaf@aepfle.de> Cc: Ian Campbell <ian.campbell@citrix.com> Cc: Ian Jackson <ian.jackson@eu.citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
2014-10-08Fix comment typo in m4/paths.m4Olaf Hering
Please rerun autogen.sh after applying this patch. Signed-off-by: Olaf Hering <olaf@aepfle.de> Cc: Ian Campbell <ian.campbell@citrix.com> Cc: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Cc: Wei Liu <wei.liu2@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
2014-10-08stubdom: remove references to xend from READMEOlaf Hering
.. the xl part of the config is right above the removed lines. Signed-off-by: Olaf Hering <olaf@aepfle.de> Cc: Samuel Thibault <samuel.thibault@ens-lyon.org> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
2014-10-08tools: remove references to xend-config.sxpOlaf Hering
xend is gone. Remove references to its config file. Also remove python script sxp-pretty which relies on removed code. Signed-off-by: Olaf Hering <olaf@aepfle.de> Cc: Ian Campbell <ian.campbell@citrix.com> Cc: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Cc: Wei Liu <wei.liu2@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
2014-10-08tools/tests: remove code using xendOlaf Hering
Signed-off-by: Olaf Hering <olaf@aepfle.de> Cc: Ian Campbell <ian.campbell@citrix.com> Cc: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Cc: Wei Liu <wei.liu2@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
2014-10-08tools/hotplug: update rc.d dependency for NetBSDOlaf Hering
While searching remaining xend strings I noticed that xen-domains wants xencommons as dependency now. Signed-off-by: Olaf Hering <olaf@aepfle.de> Cc: Ian Campbell <ian.campbell@citrix.com> Cc: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Cc: Wei Liu <wei.liu2@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
2014-10-08libxl: Fix error handling in libxl_userdata_unlinkIan Jackson
Previously: * rc would not be set before leaving the function, with the result that an uninitialised value would be returned * failures of libxl__userdata_path would result in a NULL dereference * failures of unlink() would not be usefully logged This appears to be due to an attempt to avoid having to repeat the call to libxl__unlock_domain_userdata by informally sharing parts of the success and failure paths. Change to use the canonical error-handling style: * Initialise lock to 0. * Do the unlock in the `out' section - always attempt to unlock lock if it is non-0. * Explicitly set rc and `goto out' on all error paths, even those right at the end of the function. * Add an error check for filename = libxl__userdata_path(...); Coverity-ID: 1240237, 1240235. CC: Wei Liu <wei.liu2@citrix.com> CC: coverity@xenproject.org Reviewed-by: Andrew Cooper<andrew.cooper3@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
2014-10-06move vtpmmgr helpers from tools to stubdomOlaf Hering
Tools.mk contains a dead CONFIG_VTPM, @vtpm@ is never expanded because @vtpm@ is only known by stubdom/configure.ac. Move the two perl scripts to stubdom/vtpmmgr and install them as executeable. This was introduced by the recent commit ffa11862aa431494e809c6e99f7358c12cb67e44 ("vtpmmgr: add example control tools") Also remove vtpm= from config/Stubdom.mk because vtpm= is (appearently) not used by make itself. Signed-off-by: Olaf Hering <olaf@aepfle.de> Acked-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov> Cc: Ian Campbell <ian.campbell@citrix.com> Cc: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Samuel Thibault <samuel.thibault@ens-lyon.org> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Cc: Wei Liu <wei.liu2@citrix.com>
2014-10-06tools/hotplug: Use XEN_RUN_DIR instead of /var/run/xenOlaf Hering
Also remove duplicate XEN_RUN_DIR from m4/paths.m4. Signed-off-by: Olaf Hering <olaf@aepfle.de> Acked-by: Ian Campbell <ian.campbell@citrix.com> Cc: Ian Campbell <ian.campbell@citrix.com> Cc: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Cc: Wei Liu <wei.liu2@citrix.com> [ ijc -- ran autogen.sh as requested ]