aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* arm: add generated files to .gitignore and .hgignoreDavid Vrabel2012-03-142-0/+4
| | | | | Signed-off-by: David Vrabel <david.vrabel@citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
* arm: introduce more hypercallsStefano Stabellini2012-03-144-0/+34
| | | | | | | | Implement xen_version, event_channel_op, memory_op sysctl and physdev_op hypercalls. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
* arm: handle dom0_max_vcpus=0 case properlyIan Campbell2012-03-141-5/+6
| | | | | | | | Also use xzalloc_array. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
* arm: fix inflight_irqs list priority orderingStefano Stabellini2012-03-141-2/+2
| | | | | | | | | Lower priority integers mean higher priority. Also when we are about to insert the lowest priority IRQ so far, add it at the end. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
* arm: rename link to inflightStefano Stabellini2012-03-143-8/+10
| | | | | | | | The link field in pending_irq has a confusing name so rename it to inflight and comment its behaviour. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
* tools/hotplug/Linux/init.d/: create /var/run/xen if not existsFabio Fantoni2012-03-131-0/+1
| | | | | | Signed-off-by: Fabio Fantoni <fabio.fantoni@heliman.it> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* tools/python: Fix indenting in 25030:6ced0ed954d6Ian Jackson2012-03-131-2/+2
| | | | Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* tools/python: Py_INCREF(Py_None) when returing Py_NoneMarek Marczykowski2012-03-131-0/+2
| | | | | | Signed-off-by: Marek Marczykowski <marmarek@invisiblethingslab.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* xl block-detach: allow other than numeric-decimal specification of the diskJan Beulich2012-03-133-4/+8
| | | | | | | | ... to be in sync with block-attach. And rename the function. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* libxl: always set a default value for VFB.openglIan Campbell2012-03-131-3/+1
| | | | | | | | | | Fixes an assertion failure. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Reported-by: Fantu <fantonifabio@tiscali.it> Tested-by: Fantu <fantonifabio@tiscali.it> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* tools, build: Fix libaio Makefile to put files in $(DESTDIR)George Dunlap2012-03-131-5/+5
| | | | | | Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* MergeIan Jackson2012-03-132-11/+45
|\
| * arm: use r12 to pass the hypercall numberStefano Stabellini2012-03-132-11/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ** This is a guest visible ABI change which requires an updated guest kernel ** Use r12 to pass the hypercall number and r0-r4 for the hypercall arguments. Use the ISS to pass an hypervisor specific tag. Remove passing unused registers to arm_hypercall_table: we don't have 6 arguments hypercalls and we never use 64 bit values as hypercall arguments, 64 bit values are only contained within structs passed as arguments. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> [ use #ifndef NDEBUG, fix coding style, expand calling convention comment slightly and added a big fat note about ABI change - ijc ] Committed-by: Ian Campbell <ian.campbell@citrix.com>
* | xenstat: Use local domain namesDaniel De Graaf2012-03-131-10/+2
|/ | | | | | | | | | The domain name stored in /local/domain/$domid/name is simpler to access and is the only domain name modified by "xl rename". Use this domain name in libxenstat's reporting. Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* libxl: fix libxl_get_cpu_topologyWei Liu2012-03-131-1/+1
| | | | | | | | | Fix upper bound of for loop, thus preventing memory corruption. Signed-off-by: Wei Liu <wei.liu2@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* libxl: publish number of paged pages.Andres Lagar-Cavilla2012-03-132-0/+2
| | | | | | | | This is information is currently not harvested from libxc. Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* Update SEABIOS_UPSTREAM_TAGIan Campbell2012-03-131-3/+3
| | | | | | | | Switch to recently released 1.6.3.2 from upstream. This incorporates all the changesets which we previously applied to 1.6.3.1. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* MergeIan Jackson2012-03-1319-109/+575
|\
| * arm: Put the CPU into a sleep state in the idle loopTim Deegan2012-03-131-1/+5
| | | | | | | | | | | | | | | | | | The ARM doesn't actually say that the WFI instruction will return immediately if CPSR.I is clear and an instruction is pending, but this seems to match up with how linux uses it. Signed-off-by: Tim Deegan <tim@xen.org> Committed-by: Ian Campbell <ian.campbell@citrix.com>
| * arm: Actually free __init/__initdata ranges on bootTim Deegan2012-03-134-26/+83
| | | | | | | | | | Signed-off-by: Tim Deegan <tim@xen.org> Committed-by: Ian Campbell <ian.campbell@citrix.com>
| * arm: new hook for late MMU setup on secondary CPUsTim Deegan2012-03-133-0/+10
| | | | | | | | | | | | | | | | | | The boot CPU turns on W^X in setup_pagetables(). Do the same for other CPUs after they boot. If we go to per-CPU pagetables, this is where that will happen. Signed-off-by: Tim Deegan <tim@xen.org> Committed-by: Ian Campbell <ian.campbell@citrix.com>
| * arm: Shutdown and rebootTim Deegan2012-03-132-5/+54
| | | | | | | | | | | | | | | | | | Reboot runes grabbed from linux's SP810 reset function. Doesn't seem to work on the model, though. Signed-off-by: Tim Deegan <tim@xen.org> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
| * arm: SMP CPU shutdownTim Deegan2012-03-135-10/+71
| | | | | | | | | | | | | | For completeness, also implelent the CPU shutdown path. Signed-off-by: Tim Deegan <tim@xen.org> Committed-by: Ian Campbell <ian.campbell@citrix.com>
| * arm: Boot secondary CPUs into CTim Deegan2012-03-136-19/+100
| | | | | | | | | | | | | | | | | | Secondary CPUs come up directly onto the stack of the appropriate idle vcpu; the boot CPU starts on a statically allocated stack and switches over to the idle vcpu's one once the idle domain has been built. Signed-off-by: Tim Deegan <tim@xen.org> Committed-by: Ian Campbell <ian.campbell@citrix.com>
| * arm: start plumbing in SMP bringup in CTim Deegan2012-03-133-17/+36
| | | | | | | | | | | | | | | | Still a noop, but no longer just a dummy symbol. Signed-off-by: Tim Deegan <tim@xen.org> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
| * arm: per-cpu areasTim Deegan2012-03-136-5/+97
| | | | | | | | | | | | Signed-off-by: Tim Deegan <tim@xen.org> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
| * arm: More SMP bringupTim Deegan2012-03-135-36/+119
| | | | | | | | | | | | | | | | | | | | | | | | Bring non-boot CPUs up as far as running on the relocated pagetables, one at a time, before the non-relocated copy of Xen gets reused for general memory pools. Don't yet bring them up into C; that will happen later when stacks are allocated. Signed-off-by: Tim Deegan <tim@xen.org> Committed-by: Ian Campbell <ian.campbell@citrix.com>
| * arm: Add a comment explaining the GICD writes in the GICC init functionTim Deegan2012-03-131-1/+3
| | | | | | | | | | Signed-off-by: Tim Deegan <tim@xen.org> Committed-by: Ian Campbell <ian.campbell@citrix.com>
| * arm: implement udelay()Tim Deegan2012-03-133-3/+11
| | | | | | | | | | Signed-off-by: Tim Deegan <tim@xen.org> Committed-by: Ian Campbell <ian.campbell@citrix.com>
* | autoconf: add check for curses libraryRoger Pau Monne2012-03-1312-11/+173
|/ | | | | | | | | | | | Check for a curses compatible library (curses or ncurses basically). One of those is needed to compile Xen tools (gtraceview and xentop). Modify Makefiles/sources to use configure output (fetch CURSES_LIBS from tools/Tools.mk and header to include from tools/config.h) Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* x86/mm: drop gfn ref before calling handle_mmio()Tim Deegan2012-03-091-1/+3
| | | | | | | | Otherwise we get a deadlock between the p2m lock and the event lock, which handle_mmio() acquires. Signed-off-by: Tim Deegan <tim@xen.org> Acked-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
* low-mem virq: Parentheses around ternary operator in check_low_mem_virq()Keir Fraser2012-03-091-1/+1
| | | | Signed-off-by: Keir Fraser <keir@xen.org>
* Tools: After a helper maps a ring, yank it from the guest physmapTim Deegan2012-03-082-0/+10
| | | | | | | | | This limits the ability of the guest to play around with its own rings, and DoS itself. Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Tim Deegan <tim@xen.org>
* x86/mm: Fix mem event error message typosTim Deegan2012-03-081-3/+3
| | | | | | Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org> Acked-by: Tim Deegan <tim@xen.org> Committed-by: Tim Deegan <tim@xen.org>
* x86/mm: Clean up mem event structures on domain destructionTim Deegan2012-03-085-2/+24
| | | | | | | | | Otherwise we wind up with zombie domains, still holding onto refs to the mem event ring pages. Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org> Acked-by: Tim Deegan <tim@xen.org> Committed-by: Tim Deegan <tim@xen.org>
* Tools: libxc side for setting up the mem sharing ringTim Deegan2012-03-082-0/+30
| | | | | | | | This ring is used to report failed allocations in the unshare path. Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Tim Deegan <tim@xen.org>
* x86/mm: wire up sharing ringTim Deegan2012-03-083-1/+63
| | | | | | | | | Now that we have an interface close to finalizing, do the necessary plumbing to set up a ring for reporting failed allocations in the unshare path. Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org> Acked-by: Tim Deegan <tim@xen.org> Committed-by: Tim Deegan <tim@xen.org>
* Use a reserved pfn in the guest address space to store mem event ringsTim Deegan2012-03-0814-106/+214
| | | | | | | | | | | | | | | | | | This solves a long-standing issue in which the pages backing these rings were pages belonging to dom0 user-space processes. Thus, if the process would die unexpectedly, Xen would keep posting events to a page now belonging to some other process. We update all API-consumers in tree (xenpaging and xen-access). This is an API/ABI change, so please speak up if it breaks your accumptions. The patch touches tools, hypervisor x86/hvm bits, and hypervisor x86/mm bits. Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org> Acked-by: Tim Deegan <tim@xen.org> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Tim Deegan <tim@xen.org>
* x86/hvm: refactor calls to prepare and tear down a helper ringTim Deegan2012-03-082-12/+43
| | | | | | | | | These are currently used for the rings connecting Xen with qemu. Refactor them so the same code can be later used for mem event rings. Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org> Acked-by: Tim Deegan <tim@xen.org> Committed-by: Tim Deegan <tim@xen.org>
* Tools: Remove shared page from mem_event/access/paging interfacesTim Deegan2012-03-0811-84/+38
| | | | | | | | | | | | | | | | | | | | | | Don't use the superfluous shared page, return the event channel directly as part of the domctl struct, instead. In-tree consumers (xenpaging, xen-access) updated. This is an ABI/API change, so please voice any concerns. Known pending issues: - pager could die and its ring page could be used by some other process, yet Xen retains the mapping to it. - use a saner interface for the paging_load buffer. This change also affects the x86/mm bits in the hypervisor that process the mem_event setup domctl. Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org> Acked-by: Tim Deegan <tim@xen.org> Acked-by: Olaf Hering <olaf@aepfle.de> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Tim Deegan <tim@xen.org>
* x86/cpuidle: improve data arrangementJan Beulich2012-03-081-3/+3
| | | | | | | .. to reduce the amount of holes (wasted space). Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
* XENPF_set_processor_pminfo XEN_PM_CX overflows states arrayEric Chanudet2012-03-082-41/+38
| | | | | | | | | | | | | | | | | | | | Calling XENPF_set_processor_pminfo with XEN_PM_CX could cause states array in "struct acpi_processor_power" to exceed its limit. The array used to be reset (by function cpuidle_init_cpu()) for each hypercall. The patch puts it back that way and adds an assertion to make it clear in case that happens again. Signed-off-by: Eric Chanudet <eric.chanudet@eu.citrix.com> - convert assertion to printk() & bail - eliminate struct acpi_processor_cx's valid member (not read anymore) - further adjustments to one-time-only vs each-time operations in cpuidle_init_cpu() - don't use ACPI_STATE_Cn as array index anymore Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
* oprofile: don't pass around redundant, easily derived argumentsJan Beulich2012-03-087-41/+35
| | | | | | | | | | | Passing both a struct vcpu pointer and the corresponding struct domain one is simply pointless, especially when intermediate functions just forward it without themselves making use of the already obtained value. Also constify a few function parameters. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
* ia64: fix build (once more)Jan Beulich2012-03-082-2/+3
| | | | Signed-off-by: Jan Beulich <jbeulich@suse.com>
* Revert 24987:42afd4d1669bKeir Fraser2012-03-081-4/+0
| | | | Signed-off-by: Keir Fraser <keir@xen.org>
* hvm: Print support/enable status of HAP superpage mappings.Keir Fraser2012-03-084-8/+13
| | | | Signed-off-by: Keir Fraser <keir@xen.org>
* NMI: Command line parameter for watchdog timeoutAndrew Cooper2012-03-084-7/+30
| | | | | | | | | | Introduce a command parameter to set the watchtog timeout. Manually specifying "watchdog_timeout=<seconds>" on the command line will also turn the watchdog on. For consistency, move opt_watchdog into nmi.c along with opt_watchdog_timeout. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Committed-by: Keir Fraser <keir@xen.org>
* svm: Fake out the Bus Unit Config MSR on revF AMD CPUsGeorge Dunlap2012-03-082-0/+15
| | | | | | | | | | | Win2k8 x64 reads this MSR on revF chips, where it wasn't publically available; it uses a magic constant in %rdi as a password, which we don't have in rdmsr_safe(). Since we'll ignore the later writes, just use a plausible value here (the reset value from rev10h chips) if the real CPU didn't provide one. Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com> Committed-by: Keir Fraser <keir@xen.org>
* x86: Add more specific logging for get_page_from_l1e failuresGeorge Dunlap2012-03-081-0/+8
| | | | | | | | | | | This patch should clarify which of the two possible reasons cause the messages of the form "(XEN) mm.c:908:d1 Error getting mfn 29b2b (pfn 5555555555555555) from L1 entry 0000000029b2b067 for l1e_owner=1, pg_owner=1". Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com> Committed-by: Keir Fraser <keir@xen.org>
* x86: Reduce severity of hvm_op warningsGeorge Dunlap2012-03-082-2/+2
| | | | | Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com> Committed-by: Keir Fraser <keir@xen.org>