Commit Graph
9369 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk 8fa9ee9178 Prevent a stray error message in the case that either DISTDIR or
DESTDIR is empty, by preventing readlink from being called in that
case.

Another option would be to use readlink -s, but that has the
undesirable effect of staying silent in situations other than empty
DISTDIR/DESTDIR

Signed-off-by: Aron Griffis <aron@hp.com>
2006-03-21 22:57:47 +01:00
kaf24@firebug.cl.cam.ac.uk 2e327ea4ab Clean up #include in init-xen.h.
Signed-off-by: Muli Ben-Yehuda <mulix@mulix.org>
2006-03-21 22:55:29 +01:00
kaf24@firebug.cl.cam.ac.uk 8c489ac453 The following patch adds support to vmxassist for SYSLINUX/ISOLINUX. This
enables you to install SLES-10 as an unmodified guest.

Notice that at this time, vmxassist does not support the graphic bootstrap
loader (gfxboot), so be sure the set "stdvga=1" in your configuration file
to prevent gfxboot from kicking in (or hit SHIFT really fast).

Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
2006-03-21 22:50:48 +01:00
kaf24@firebug.cl.cam.ac.uk 2e3c599844 Fix a build problem when enabling XEN_SYSFS on xen/ia64.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-03-21 22:48:04 +01:00
emellor@leeni.uk.xensource.com 6ebfc91b5d The patch fixes a problem when testing for device /dev/tpm0. The API
call os.path.exists() must be called instead of os.path.isfile().

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-03-21 18:57:23 +01:00
kaf24@firebug.cl.cam.ac.uk af34eb43a1 Nanosecs not usecs in a time comment.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-21 15:40:54 +01:00
kaf24@firebug.cl.cam.ac.uk e718ef7000 'permitted_clock_jitter' units are nanoseconds not microseconds.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-21 15:10:26 +01:00
emellor@leeni.uk.xensource.com fd1da4fbf1 Remove import of xen.lowlevel.xc, left over from when ballooning was done here
(moved to the server in December).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-21 12:45:59 +01:00
emellor@leeni.uk.xensource.com 1de73a0df0 Protect cleanupDomain with the refresh_shutdown_lock. This stops the device
and watch teardown being run concurrently from multiple threads, silencing
the No such file or directory error when tearing down the control/shutdown
watch, and reducing load on the store.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-21 12:41:33 +01:00
emellor@leeni.uk.xensource.com 7555524dd7 Merged. 2006-03-21 12:26:38 +01:00
emellor@leeni.uk.xensource.com fb57267cd6 Only send the OFFLINE hotplug event if be->netif is set. Firstly, this ensures
that OFFLINE is only sent if the ONLINE event has been sent.  Secondly, this
fixes one possible cause of the reopened bug #549 as it prevents be->netif
being dereferenced inside netback_uevent.  Early reports suggest that this is
not the only cause of #549, so that bug remains open for now.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-21 12:25:23 +01:00
emellor@leeni.uk.xensource.com d24b3a43ce Fix the implicit declaration of function `swiotlb_init' warning, by including
the appropriate headers.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-21 12:21:08 +01:00
kaf24@firebug.cl.cam.ac.uk 728b3dab17 Creates a module that exports Xen Hypervisor attributes to sysfs. The
module has a tri-state configuration so it can be a loadable module.

Views the hypervisor as hardware device, uses sysfs as  a scripting
interface for user space tools that need these attributes.

Some user space apps, particularly for systems management, need to
know if their kernel is running in a virtual machine and if so in
what type of virtual machine. This property is contained in the
file /sys/hypervisor/type.

The file hypervisor_sysfs.c creates a generic  hypervisor subsystem
that can be linked to by any hypervisor. The file xen_sysfs.c exports
the xen-specific attributes.

Signed-off-by: Mike D. Day <ncmike@us.ibm.com>
2006-03-21 12:17:19 +01:00
emellor@leeni.uk.xensource.com ef1189d806 Increase timeout while waiting for console/tty node to appear in the store:
the intention appears to have been 500msec, but struct timeval when used with
a select() is in usec, not msec.  The timeout has been set to 250msec (500msec
seems a little long, in any case).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-21 11:56:11 +01:00
emellor@leeni.uk.xensource.com 92b9cad184 Break out common parts of vtpm tests into new vtpm_utils library.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-21 11:49:29 +01:00
emellor@leeni.uk.xensource.com c1c70c79d6 Merged. 2006-03-21 11:44:56 +01:00
emellor@leeni.uk.xensource.com 2b3f3100df Stop the domain at the end of the test.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-21 11:44:18 +01:00
kaf24@firebug.cl.cam.ac.uk 2f7e99bafd Merged. 2006-03-21 11:43:44 +01:00
kaf24@firebug.cl.cam.ac.uk 8ee3524cfb Since we now have general rules to build ALL_OBJS, we don't need to manually
build them. Compile-tested on x86 and PPC. Should work on IA64 too.

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2006-03-21 11:42:39 +01:00
emellor@leeni.uk.xensource.com f106653690 Merged. 2006-03-21 11:42:08 +01:00
kaf24@firebug.cl.cam.ac.uk 813acc73e2 Add a.out files to mercurial ignore list.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-21 11:40:41 +01:00
emellor@leeni.uk.xensource.com 69c80650bf Added -u flag (unsafe) to runtest.sh, to skip the sanity checks. This improves
turnaround when developing tests.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-21 11:39:09 +01:00
kaf24@firebug.cl.cam.ac.uk 9b6dad0873 Update xen/ia64 to use the new build system. Fixes the ia64 build.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-03-21 11:38:50 +01:00
kaf24@firebug.cl.cam.ac.uk 7ce80e59d4 Fix a bug, and also fixes the build with some gcc4 versions.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-21 11:34:41 +01:00
kaf24@firebug.cl.cam.ac.uk 0b35103d54 The current ptrace code is traversing the page table structures to
guest guest physical address, even when the guest paging is disabled.
The gdbserver-xen tries to access guest pdes & ptes to map memory of
hvm guest being debugged; and it gets a seg-fault because guest has not
setup it's paging yet. The attached patch adds guest paging state check,
so that the map_domain_va() can get the correct guest physical address
from guest va.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2006-03-21 11:29:17 +01:00
kaf24@firebug.cl.cam.ac.uk 6e159fba3f New SMP IPI interface function called on_selected_cpus(), currently implemented
only for x86. The x86 implementation of smp_call_function has been simplified 
and is now based on on_slected_cpus().

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-21 11:28:03 +01:00
emellor@leeni.uk.xensource.com c03842a4e9 Put 03_vtpm-susp_res.py in its rightful place.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-21 09:53:00 +01:00
emellor@leeni.uk.xensource.com 3a9669c79f Test suspend and resume cycles of the TPM front- and backend.
Now that sysfs is mounted in the RAM disk of the test environment, the
test code does not need to do this anymore. This patch also simplifies
previous tests and the APIs used there. If prerequisites are not met
(vtpm manager not running) the patch will 'skip'.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-03-21 01:28:29 +01:00
pl@us.ibm.com 452c180f44 Add an option to xmtest to report results to an alternative results repository.
The default is preserved but can be overridden by either passing it with -r to runtest.sh or by setting the xmtest_repo environment variable.

Signed-off-by: Paul Larson <pl@us.ibm.com>
2006-03-21 01:19:24 +01:00
stekloff@elm3b49.beaverton.ibm.com 29cd655b85 Make sure the check to see if device is in use doesn't happen. We need
to share disk.imgs. Qemu doesn't honor the 'r' read-only value.

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
2006-03-21 01:13:14 +01:00
stekloff@elm3b49.beaverton.ibm.com db7fe2279d Remove obsolete startNow() method from XmTestDomain object.
Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
2006-03-21 01:11:18 +01:00
stekloff@dyn9047022152.beaverton.ibm.com f91ada1ab5 Add mounting /sys for 2.6 xm-test images.
Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
2006-03-21 01:10:46 +01:00
root@dyn9047022116.beaverton.ibm.com 246684ceba Patch to correct inconsistencies of xm-test reporting.
Signed-off-by: Woody Marvel <marvel@us.ibm.com>
2006-03-21 01:08:59 +01:00
cl349@firebug.cl.cam.ac.uk f9da43103c Update to Linux 2.6.16.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>


--HG--
rename : patches/linux-2.6.16-rc6/i386-mach-io-check-nmi.patch => patches/linux-2.6.16/i386-mach-io-check-nmi.patch
rename : patches/linux-2.6.16-rc6/net-csum.patch => patches/linux-2.6.16/net-csum.patch
rename : patches/linux-2.6.16-rc6/pmd-shared.patch => patches/linux-2.6.16/pmd-shared.patch
rename : patches/linux-2.6.16-rc6/smp-alts.patch => patches/linux-2.6.16/smp-alts.patch
2006-03-20 20:10:17 +00:00
kaf24@firebug.cl.cam.ac.uk 8d10ad85b8 Add missing empty ia64 files.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-20 18:38:50 +01:00
kaf24@firebug.cl.cam.ac.uk 2a2926808c Some more build-system finessing:
1. subdirs-y -> subdir-y (match Linux name, and also obj-y
    is singular so this makes sense).
 2. subdirs can be declared with or without trailing slash
 3. As with Linux, subdirs can be declared in the obj-y list
    but they must be distinguished by a trailing slash

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-20 18:36:35 +01:00
kaf24@firebug.cl.cam.ac.uk db3a615c31 Fix Xen target image dependencies.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-20 18:25:01 +01:00
kaf24@firebug.cl.cam.ac.uk 652e141b62 Fix 64-bit build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-20 18:20:44 +01:00
kaf24@firebug.cl.cam.ac.uk bb9e70bf52 Upgrade genapic code to 2.6.16-rc6 codebase. Remove entries from
genapic structure that Xen does not require (mostly because we do
not support Visual Workstation nor IBM/Sequent NUMA-Q).

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-20 17:01:16 +01:00
kaf24@firebug.cl.cam.ac.uk 57ac22d899 Fix a protocol violation in the pcnet emulation. Tested on at least
two systems and fixes the 'corrupt MAC' with scp or sftp.  See bug 574
for more information.

Signed-off-by:  Don Fry <brazilnut@us.ibm.com>
2006-03-20 12:01:32 +01:00
kaf24@firebug.cl.cam.ac.uk 4a58d57594 Add poll() support to xenbus device file.
From: Gerd Hoffmann
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-20 12:00:58 +01:00
emellor@leeni.uk.xensource.com 29073ce353 Merged. 2006-03-20 09:56:54 +01:00
emellor@leeni.uk.xensource.com d3e701ea7f Remove unused, broken, redundant and undocumented option xm create -L.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-20 09:56:46 +01:00
kaf24@firebug.cl.cam.ac.uk 4d32eea226 Fix VMX guest can not be created on PAE xen with more than 4G RAM.
Also change v_end type from unsigned long to unsigned long long, for we
will have PAE VMX guest with more than 4G memory on PAE xen.

Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-03-19 18:55:46 +01:00
kaf24@firebug.cl.cam.ac.uk 22f244482c This patch fix HVM/VMX time resolution issue that cause IA32E complain
"loss tick" occationally and APIC time calibration issue.

Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
Signed-off-by: Eddie Dong <eddie.dong@intel.com>
2006-03-19 18:52:20 +01:00
kaf24@firebug.cl.cam.ac.uk 3e86701226 Abstract some details of context switching into ctxt_switch_from/to
function hooks. Allows neater separation between paravirtual and
HVM code paths.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-19 17:10:20 +01:00
kaf24@firebug.cl.cam.ac.uk e1d13ddb53 Move arch/x86 to new build system.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-19 15:17:50 +01:00
kaf24@firebug.cl.cam.ac.uk 26f7973d6a Apply Xen build system changes to all non-arch subdirectories.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-19 14:02:18 +01:00
kaf24@firebug.cl.cam.ac.uk e09c21cb7f Conditionalize building the Xen ACPI driver.
Also introduces some cleanups to the Xen build system.

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-19 13:13:35 +01:00
kaf24@firebug.cl.cam.ac.uk ff24170e9c Fix VMX EFER write logic. Also some cleanups.
Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-03-19 12:48:51 +01:00