Commit Graph
10150 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk 1ac7d8afca [XENSTORE] Make use of /proc/xen/xsd_{port,kva} private to the Linux implementation.
Signed-off-by: John Levon <john.levon@sun.com>
2006-05-24 14:24:57 +01:00
kaf24@firebug.cl.cam.ac.uk 04f28b0fc7 [PTRACE] Fix ptrace for hvm guests.
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2006-05-24 14:12:40 +01:00
kaf24@firebug.cl.cam.ac.uk 300fe48878 Event-channel driver: Use for_each_possible_cpu instead
of for_each_cpu , or statically initialize data when possible.
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
2006-05-24 12:01:25 +01:00
kaf24@firebug.cl.cam.ac.uk 56d1a3fa40 Fix kcons_write and kcons_write_dom0 CodingStyle.
Use roundup_pow_of_two().

Signed-off-by: Chris Wright <chrisw@sous-sol.org>
2006-05-24 11:57:37 +01:00
kaf24@firebug.cl.cam.ac.uk 9c62f76963 Use DEFINE_SPINLOCK in Linux drivers, conforming to coding style.
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
2006-05-24 11:56:40 +01:00
kaf24@firebug.cl.cam.ac.uk c05b1e9f6f Remove broken inline-asm string functions from Xen/x86. The
generic implementations in string.c are quite sufficient.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-24 11:52:25 +01:00
emellor@leeni.uk.xensource.com e73effa056 Allow a guest to determine its VM UUID.
Use xenstore-read $(xenstore-read vm)/uuid.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-05-23 16:23:10 +01:00
emellor@leeni.uk.xensource.com 7bc3fa8ada Fix log message written when xenstored corrupts its store.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-05-23 16:17:28 +01:00
emellor@leeni.uk.xensource.com 43af8d669f Added get_permissions implementation.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-05-23 16:14:49 +01:00
emellor@leeni.uk.xensource.com 8b8e97bb5b Fix xspy_get_permissions -- you can't increment the perms pointer when
iterating and expect to be able to free that pointer afterwards.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-05-23 16:14:03 +01:00
kaf24@firebug.cl.cam.ac.uk c9d2f9fc59 Move Xen CPU hotplug code into new file cpu_hotplug.c.
Cleaner and allows use by architectures which aren't currently
using Xen's smpboot.c.

Based on an original patch by Tristan Gingold.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-23 12:05:08 +01:00
awilliam@xenbuild.aw 9d51c4357f [IA64] update default build configs
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-05-22 15:08:26 -06:00
awilliam@xenbuild.aw 7e713108be merge with xen-unstable.hg 2006-05-22 14:13:38 -06:00
kaf24@firebug.cl.cam.ac.uk 9892f9d1aa [IA64] Work around auto-ballooning changes.
Original patch from Kevin Tian at Intel.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-22 17:30:25 +01:00
Ian.Campbell@xensource.com eb8b146a00 Fix x86/64 by passing the required length to reserve_bootmem instead of the end address
Fixup a warning since the machine_e820 and memmap variables are only used if
CONFIG_XEN_PRIVILEGED_GUEST.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-05-22 17:03:24 +01:00
awilliam@xenbuild.aw 56bad25d65 [IA64] Enable VTi network by defalt
Due to dom0_vp open, we can enable VTi's network in configuration file now.

From: Zhang Xiantao <xiantao.zhang@intel.com>
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-05-22 08:53:26 -06:00
ack@kneesa.uk.xensource.com 90dac40a78 Patch linux so that /proc/stat shows all -- not just online -- CPUs.
This way, tools such as TOP don't freak out when CPUs are hotplugged.
2006-05-22 15:42:54 +01:00
Ian.Campbell@xensource.com b0084aa59b Fix x86/64 -xenU build. probe_roms() is only defined if building a privleged
or !xen build.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-05-22 15:03:46 +01:00
Ian.Campbell@xensource.com 25ea2bde51 Remove DOM0_PHYSICAL_MEMORY_MAP dom0 op.
The addition of the e820 style memory_op sub calls make this operation
obsolete.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-05-22 09:23:21 +01:00
Ian.Campbell@xensource.com f715a4ce18 Convert x86/64 Linux to use the new memory map hypercall.
This change removes several of the differences between the bare-metal
and Xen versions.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-05-22 09:23:15 +01:00
Ian.Campbell@xensource.com 87fa9db8a1 Convert x86/32 Linux to use the new memory map hypercall.
This change removes several of the differences between the bare-metal
and Xen versions.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-05-22 09:23:03 +01:00
Ian.Campbell@xensource.com a141304c8e New memory_op subops which return the apparent or actual physical address map.
The new subops return a memory map in e820 format. This will allow the
removal of some Xen special casing in the Linux port by using the same
code as native.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-05-22 09:22:18 +01:00
Ian.Campbell@xensource.com c9e03023f9 Add include/asm-x86_64/e820.h to sparse tree
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-05-22 09:21:58 +01:00
Ian.Campbell@xensource.com d06514a140 Re-order code in preparation for future patches.
There is no change to the functions which have moved.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-05-22 09:21:01 +01:00
kaf24@firebug.cl.cam.ac.uk ed7041aaff [LOADER] More sanity checks when parsing Elf images to avoid
out-of-bounds array accesses when loading the image.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-21 20:15:58 +01:00
kaf24@firebug.cl.cam.ac.uk 630ad4e0ad [ACM] Replace the union structure parameter of the ACM hypercalls
with command-specific request structures. It aligns the ACM
hypercalls with the way parameters are passed in the event channel
hypercalls.

Advantages include backward-compatibility regarding old guests when
new calls are added and clarity of the code.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>
2006-05-21 19:05:31 +01:00
kaf24@firebug.cl.cam.ac.uk 5ce12bed04 Finish separating the typedefs from structure definitions in Xen public headers.
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
2006-05-21 18:57:42 +01:00
kaf24@firebug.cl.cam.ac.uk b9cede7418 [LOADER] Another change to the elf_paddr_offset/virt_base logic.
This avoids using zero to indicate 'undefined'. Instead we use
an explicit boolean to indicate whether suitable defaults should
be used. As well as making the logic clearer (I believe) it also
avoids problems if anyone ever explicitly specifies virt_base
(and also elf_paddr_offset) as zero.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-21 18:55:14 +01:00
awilliam@xenbuild.aw a9ca520ba1 [IA64] Enable P2M/VP by default
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-05-21 07:49:46 -06:00
awilliam@xenbuild.aw 2cb5de3797 [IA64] add missing ia64_trace_syscall privop
This patch adds a missing privop definition for ia64_trace_syscall
when CONFIG_XEN is unset.  It also cleans up some inconsistent
spacing.

Signed-off-by: Aron Griffis <aron@hp.com>
2006-05-21 07:31:02 -06:00
awilliam@xenbuild.aw 9df82c7e67 [IA64] make it possible to disable CONFIG_XEN
This patch helps distro inclusion efforts by making it possible to
build a xen-patched Linux kernel with CONFIG_XEN disabled.

Signed-off-by: Aron Griffis <aron@hp.com>
2006-05-21 07:28:05 -06:00
awilliam@xenbuild.aw c4fde3eb15 [IA64] sparse-merge: check SPARSEDIR for modifications
Check SPARSEDIR for modifications before allowing the merge.
This removes the need for the FIXME.  Additionally clean up
empty diffs at the end of the run.

Signed-off-by: Aron Griffis <aron@hp.com>
2006-05-21 07:24:51 -06:00
awilliam@xenbuild.aw c4f9430994 [IA64] minor fix for sparse-merge
Here's another sparse-merge patch to allow ARCH to be set on the
command-line, and to add -C to the final hg update since it's probably
switching between branches.

Signed-off-by: Aron Griffis <aron@hp.com>
2006-05-21 07:22:58 -06:00
kaf24@firebug.cl.cam.ac.uk e699658dbb [LOADER] Remove check for VIRT_BASE existence: it's not needed
to prevent xend crashign (when Aravindh's latest patch is
applied) and breaks ia64. Also, ensure we set a reasonable
default for elf_paddr_offset.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-21 09:55:15 +01:00
kaf24@firebug.cl.cam.ac.uk 1dfbe29c87 [BUILDER] Always build initial PAE pagetables with a fourth mid-level
pgdir. This is required for Xen to be able to insert its own protected
mappings. At the same time, clean up 32b and pae pagetable-size
calculations to use the helper macro already used for x86/64.

Based on an original patch from Bruce Rogers at Novell.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-20 16:25:28 +01:00
cl349@firebug.cl.cam.ac.uk e9f340a6bc Don't require sed to support the -r option.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-05-19 22:08:32 +01:00
cl349@firebug.cl.cam.ac.uk 8a7ecff138 Make the latest network-bridge tweaks work in a busybox environment too.
Signed-off-by: David Lively <dlively@virtualiron.com>
2006-05-19 22:00:28 +01:00
kaf24@firebug.cl.cam.ac.uk 25dd77a19b [SHADOW] Crash the guest rather than BUGing the whole system when out of memory.
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
2006-05-19 17:50:32 +01:00
emellor@leeni.uk.xensource.com 2852674877 Merged. 2006-05-19 17:31:34 +01:00
Anthony Liguori 0111c4bb06 Expose the exceptions thrown by xen.lowlevel.xc so they can be caught.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2006-05-19 17:31:28 +01:00
kaf24@firebug.cl.cam.ac.uk 0306a3dcf8 [MINIOS] PAE support.
Signed-off-by: Aravindh Puthiyaparambil <aravindh.puthiyaparambil@unisys.com>
2006-05-19 16:52:52 +01:00
harry@localhost.localdomain 71fd91f9ba Add a read-verify block device test to xm-test. 2006-05-19 16:30:21 +01:00
stekloff@elm3b216.beaverton.ibm.com 9c8277a2d8 This patch resizes the file system on the xm-test HVM disk.img to use
the entire space available.

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
2006-05-19 16:29:34 +01:00
emellor@leeni.uk.xensource.com 09eb4b87f7 Merged. 2006-05-19 16:21:49 +01:00
emellor@leeni.uk.xensource.com ddc7a4667e The enforce_dom0_cpus test sets the number of vcpus for the Dom0 and
checks to see if they have been set correctly. We found that on
multi-proc systems, it takes a certain amount of time for the number of
vcpus to change.

This patch checks the number of vcpus inside a loop until it is correct
or 20 seconds elapse, whichever happens first. If after 20 seconds the
number of vcpus is not changed correctly, an error is raised.

Signed-off-by: Rajagopalan Subrahmanian <raj.subrahmanian@unisys.com>
2006-05-19 16:21:43 +01:00
kaf24@firebug.cl.cam.ac.uk 573e986d56 Several page allocations, done in the hypervisor when starting an HVM
domain, are not checked.  This can cause the physical machine to crash
when starting the HVM domain during low-memory conditions.

Kudos to Charles Arnold for catching the problem with
shadow_direct_map_init.

Signed-off-by: Charles Coffing <ccoffing@novell.com>
2006-05-19 16:10:52 +01:00
kaf24@firebug.cl.cam.ac.uk 37d3005e62 [XEND] An empirical and more conservative memory-overhead estimate for PV and HVM guests.
This patch calculates the overhead needed for HVM domains.  If HVM is
supported by the hardware, I add a little ballooning overhead to
paravirtualized VMs also, to avoid low-memory situations.  (There are
various unchecked alloc_domheap_pages calls in shadow*.c that I am
trying to avoid tripping over for now...)  The values in this patch work
fine on 32 bit; I may update them later based on feedback and/or testing
on 64 bit.

Signed-off-by: Charles Coffing <ccoffing@novell.com>
2006-05-19 16:08:51 +01:00
kaf24@firebug.cl.cam.ac.uk 0a44ca5991 [XEND] separate concept of initial memory size and overhead memory size.
When a domain (whether para- or fully-virtualized) reports how much
overhead memory it requires (via getDomainMemory in image.py), all such
memory was immediately allocated to the domain itself.  This is
certainly incorrect for HVM domains, since additional
increase_reservation calls are made later in qemu.  Since all ballooned
memory is already taken, qemu will fail.  The fix is to treat the
requested memory size and the overhead size as separate values.  The
requested memory size is immediately allocated to the new domain; the
overhead is left unallocated for whatever else might need it later.

Signed-off-by: Charles Coffing <ccoffing@novell.com>
2006-05-19 16:07:36 +01:00
kaf24@firebug.cl.cam.ac.uk e7c2054604 [XM-TEST] Use explicit (IP id==packet size) on hping2 tests to avoid
problems with IP id==0

Signed-off-by: Jim Dykman <dykman@us.ibm.com>
2006-05-19 16:01:08 +01:00
kaf24@firebug.cl.cam.ac.uk 1e36436a10 [NET] front: Remove duplicate maybe_wake_tx
Since network_tx_buf_gc unconditionally calls network_maybe_wake_tx at
the end, there is no need to call it again right after a call to
network_tx_buf_gc.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-05-19 15:58:46 +01:00