Commit Graph
9015 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk dfd53f76ba Fix tools Makefiles to respect CFLAGS. Disable stack-smash
protection when building vmxassist/hvmloader.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-28 11:41:54 +01:00
kaf24@firebug.cl.cam.ac.uk efc061e453 Add 'm' debug key to print free-memory info.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-28 11:07:18 +01:00
kaf24@firebug.cl.cam.ac.uk f9ef80600b Fix a multi HVM domain issue (bugzilla bug #542):
This issue can be reproduced on SMP platform, while the domain 0
is UP. The reason is, after finishing a dma request, the dma thread will
trigger the interrupt and then clear the call back function. When guest
get the interrupt , it will try to check the call back function, if it
is set, then it will trigger a dma request again. So if the checking for
the callbackfunction happens between trigger interrupt and clear
callback function on dma thread, it will cause NULL function calling.
After with domain 0 UP and smp platform, this situation can be
reproduced easily.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
2006-02-28 10:18:34 +01:00
kaf24@firebug.cl.cam.ac.uk cd39504aca Fix SVM cr0 handling.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
2006-02-28 10:14:32 +01:00
kaf24@firebug.cl.cam.ac.uk e7a6ad4927 Fix SVM PAE support.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
2006-02-28 10:14:10 +01:00
kaf24@firebug.cl.cam.ac.uk 2e9e5c7ead Fix SVM guest pin timer migration logic.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
2006-02-28 10:13:26 +01:00
kaf24@firebug.cl.cam.ac.uk a68cc879d9 Fix SVM vlapic logic.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
2006-02-28 10:12:29 +01:00
kaf24@firebug.cl.cam.ac.uk 42900bec7f Removing hvm_safe_block() from the SVM hlt function avoids SVM guest problems.
This is a temporary solution.

Signed-off-by: Tom Woller <thomas.woller@amd.com>
2006-02-28 10:11:33 +01:00
emellor@leeni.uk.xensource.com 902bd89eeb Merged. 2006-02-27 18:44:38 +01:00
Ian.Campbell@xensource.com a6f599555c Add support for configuring feature flags when starting guests.
Guest configuration files may now contain a features= declaration
listing the features which should be enabled in a | separated
list.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-02-27 17:27:52 +00:00
cl349@firebug.cl.cam.ac.uk 9d77d697b1 Update to Linux 2.6.16-rc5.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-27 16:56:08 +00:00
kaf24@firebug.cl.cam.ac.uk 444c98e4a7 Check feature flag supervisor_mode_kernel in dom0 builder.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-27 17:55:22 +01:00
emellor@leeni.uk.xensource.com 637c719f00 Reconstitute the ip parameter correctly. Closes bug #491.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-02-27 17:26:16 +01:00
kaf24@firebug.cl.cam.ac.uk 53fcd3bb76 Allow a guest to switch pagetables 'atomically'. That is, the new pagetables
do not need to be read-only in the old pagetables, and the old pagetables do
not need to be read-only in the new pagetables.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-27 17:18:58 +01:00
emellor@leeni.uk.xensource.com 3775cfcd81 Use cleverer sed pattern to avoid use of head -1.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-02-27 17:16:28 +01:00
emellor@leeni.uk.xensource.com f32e156c0e Break out the hotplug cleanup code into xen-hotplug-cleanup. Claim the block
script's lock before doing the cleanup, to avoid a race that causes the message
"xenstore-list: could not list path backend/vbd/40" in /var/log/hotplug.log,
with a subsequent refusal to create the domain, after a domain reboot.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-02-27 17:16:04 +01:00
emellor@leeni.uk.xensource.com 1b2fcd85a0 Merged. 2006-02-27 16:29:03 +01:00
emellor@leeni.uk.xensource.com 7aa86f0d35 Move files that have appeared in the wrong place due to incorrect patch -p setting.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-02-27 16:28:57 +01:00
kaf24@firebug.cl.cam.ac.uk 5a64892ddd xen/ia64 uaccess is still linux style with different declaration as
common xen. It's meaningless to patch original file with many #ifdef
XEN, and so instead copy that file to create a new xen specific
uaccess file, with unused lines removed. May need render later.

Or else it breaks compilation on xen-unstable.

Signed-off-by Kevin Tian <kevin.tian@intel.com>
2006-02-27 16:22:02 +01:00
kaf24@firebug.cl.cam.ac.uk a531692b45 Fix a missed unmap in __entry().
On x86_32p, after several creation/destroy of VMX domain, xen crashes
because we forget to unmap phys_table.

Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-02-27 16:20:23 +01:00
emellor@leeni.uk.xensource.com 975a49cb6e While testing TCP & UDP tests (coming soon), I tracked down a bug in the
IP addressing scheme
used by xm-test: each machine running network tests is using the same IP
addresses, so two machines
in the same network can cross-pollinate/interfere with each other's tests.

This patch changes the IP addressing scheme to add some randomness. It's
gone through a couple of dozen
passes of xm-test, some on -bridge and some on -route, while xm-test was
running on another box on the same network.

Signed-off-by: Jim Dykman <dykman@us.ibm.com>
2006-02-27 16:14:11 +01:00
emellor@leeni.uk.xensource.com d8a4248e02 The attached patch does the following:
- introduces two basic tests for the virtual TPM (skipped on hardware
where a TPM is not available or vtpm manager has not been started
manually before)
- adapts the Makefiles to make the test cases available
- splits up the hotplug files into two files where the vtpm-common.sh
can be sourced by 'other' scripts as well
- uses echo "$var" to return variables from functions
- gets rid of the 'set +e" work-around
- introduces a script (vtpm-delete) to delete entries from the virtual
TPM directory in /etc/xen/vtpm.db

The xm-tests will skip over the 2nd test on most systems and the patch
has otherwise no effect on existing tests.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-02-27 16:13:05 +01:00
emellor@leeni.uk.xensource.com 46ede6808b The attached patch breaks out
- log() function from xen-hotplug-common.sh -> logging.sh
- locking-related functions from xen-hotplug-common.sh  -> locking.sh

- xen-hotplug-common.sh 'sources' both those files now to not loose
these functions (which should make the break-out atomic)

- adapts the Makefile to install locking.sh and logging.sh at the right
place.

I ran the xm-tests over it and no (additional) errors appear due to this
change.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-02-27 16:11:01 +01:00
kaf24@firebug.cl.cam.ac.uk 79e4b2910a Add a compile time option to enable domain 0 running in ring 0.
In this mode only a single guest kernel is supported.

This mode only works for x86/32 (not x86/64).

Signed-off-by: Ian Campbell <Ian.Campbell@XenSource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-27 15:52:43 +01:00
Ian.Campbell@xensource.com d521323da3 merge 2006-02-27 11:02:00 +00:00
Ian.Campbell@xensource.com 002d669228 List pae_pgdir_above_4gb in features for x86/32 Linux kernel.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-02-27 11:01:06 +00:00
Ian.Campbell@xensource.com abc0b290e7 merge. 2006-02-27 10:59:31 +00:00
Ian.Campbell@xensource.com ebc9e1ccdb Support XENFEAT_supervisor_mode_kernel in x86/64 HYPERVISOR_IRET macro
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-02-27 10:58:17 +00:00
Ian.Campbell@xensource.com 0fd06de05a Only panic() if the dom0 kernel requires an unknown feature flag.
It is acceptable for a guest kernel to support (but not require)
a feature which the hypervisor does not understand.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-02-27 10:55:13 +00:00
emellor@leeni.uk.xensource.com 5c0eb80b10 Merged. 2006-02-27 11:55:11 +01:00
cl349@firebug.cl.cam.ac.uk 0a28c5336a Fix non-xen build for: Make the fixmap area moveable in kernel address space.
From: Gerd Hoffmann <kraxel@suse.de>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-27 10:34:03 +00:00
cl349@firebug.cl.cam.ac.uk 99e35ca051 Add arch/i386/mm/pgtable.c to sparse tree.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-27 10:31:30 +00:00
cl349@firebug.cl.cam.ac.uk 566a61fa41 Fix non-xen build for: Move the gate page (vsyscall) out of the fixmap area
into user address space, just below PAGE_OFFSET.

From: Gerd Hoffmann <kraxel@suse.de>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-27 10:27:57 +00:00
cl349@firebug.cl.cam.ac.uk 62d449275c Add include/asm-i386/{fixmap,page}.h to sparse tree.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-27 10:26:01 +00:00
kaf24@firebug.cl.cam.ac.uk 019e65778e Define strlcpy() in include/xen/string.h
Signed-off-by: Tsunehisa Doi <doi.tsunehisa@jp.fujitsu.com>
Signed-off-by: Kouya SHIMURA <kouya@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
2006-02-27 08:44:11 +01:00
kaf24@firebug.cl.cam.ac.uk 09066aa42a Periodically sytnchronize Xen's wallclock time with NTP-synchronized time in domain0.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-26 16:38:59 +01:00
kaf24@firebug.cl.cam.ac.uk 91bc5c3347 The disk isn't guaranteed to be the first device in the config sxp --
make sure we can restart domains when using a boot loader even if not.

Signed-off-by: Jeremy Katz <katzj@redhat.com>
2006-02-26 10:55:21 +01:00
kaf24@firebug.cl.cam.ac.uk b3a1978719 pygrub currently takes a file on the command line to mean a config file
if it can't figure out partitions and filesystems.  This then makes it
balloon to absurd sizes.  Make this only happen if you pass a debugging
flag

Signed-off-by: Jeremy Katz <katzj@redhat.com>
2006-02-26 10:54:06 +01:00
kaf24@firebug.cl.cam.ac.uk ad55a2d28a Instead of using a static filename in the guest bootloader, use a random
filename so that multiple guests can start up simultaneously.

Signed-off-by: Jeremy Katz <katzj@redhat.com>
2006-02-26 10:53:18 +01:00
kaf24@firebug.cl.cam.ac.uk 2a226028d3 Add 'console=xxx' to the Xen serial console section to make it obvious
that one might need to specify 'console=xxx' and not just 'comX=xxx'
if one isn't using the default com1,vga.

Signed-Off-By: Muli Ben-Yehuda <mulix@mulix.org>
2006-02-26 10:50:15 +01:00
kaf24@firebug.cl.cam.ac.uk 797df68829 Cross-compilation fixes (x86/64 on i386).
Use strtoull to parse the final_exec_addr value from the command
line. Whe cross compiling on i386 for x86-64 unsigned long is 32 bit,
which leads to final_exec_addr being truncated to 32 bits by strtoul,
which leads to grub refusing to load the resulting image. Please
apply.

Use the target nm(1) when cross compiling to pick the _end address
from the Xen binary.

Signed-Off-By: Muli Ben-Yehuda <mulix@mulix.org>
2006-02-26 10:42:07 +01:00
kaf24@firebug.cl.cam.ac.uk c173341886 Fix assertion.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-25 22:29:18 +01:00
kaf24@firebug.cl.cam.ac.uk 705ea2b54c New VCPUOP_register_runstate_memory_area hypercall. Avoids
need for a hypercall in the guest timer interrupt handler.

Cleaned up stolen/blocked tick handling in Linux.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-25 21:28:27 +01:00
kaf24@firebug.cl.cam.ac.uk 11a008c7c5 Update Linux time IRQ handler to understand the new stolen/blocked cycle counts
exported by Xen. This is based heavily on a patch from Rik van Riel, but
extended to distinguish between idle/blocked cycles and stolen cycles.

There is still stuff todo:
 1. Xen should export the time values in shared memory, to save a hypercall
    on every time interrupt (even though that is only every 10ms, worst case).
 2. As in s390, Xen's cputime_t should be measured at finer granularity than
    jiffies. Nanoseconds would be a better unit.
 3. Break out the internals of the account_steal_time() interface so that we don't
    need to abuse it so wretchedly.

Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-25 20:07:28 +01:00
kaf24@firebug.cl.cam.ac.uk eefccca99e New VCPUOP_get_runstate_info hypercall. Returns information about the current
run state of a VCPU (running, runnable, blocked, etc.) and the total time
spent in each state since the VCPU was created.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-25 17:58:37 +01:00
kaf24@firebug.cl.cam.ac.uk 73f56b3d57 Avoid pcnet dm packet loss / corruption.
Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
2006-02-25 12:27:53 +01:00
kaf24@firebug.cl.cam.ac.uk f79d0e5aeb Split XENFEAT_ feature flags into new header file features.h.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-24 19:34:54 +01:00
kaf24@firebug.cl.cam.ac.uk 396a3a4f19 Fix up CPU allocation and topology reporting.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-24 19:16:52 +01:00
kaf24@firebug.cl.cam.ac.uk 7258ce4242 Quieten down MSR access warnings.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-24 19:16:15 +01:00
kaf24@firebug.cl.cam.ac.uk 28c8245ab0 Default minimum number of receive buffers queued by netfront is now 64, not 8.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-24 17:50:20 +01:00