Commit Graph
9358 Commits
Author SHA1 Message Date
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
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
kaf24@firebug.cl.cam.ac.uk d97c941f88 Add back hvm guest apm support and fixed the original apm issues to
make "halt -p" and "shutdown -h now" work. Also added apm 0x05 CPU
idle, 0x08 Enable PM and 0x0f apm engage/disengage subfunctions.

Signed-off-by: Winston Wang <winston.l.wang@intel.com>
2006-03-19 12:41:28 +01:00
cl349@firebug.cl.cam.ac.uk 686bde3ed0 linux-x86_64: Sync with native.
From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-03-18 16:30:20 +00:00
vhanquez@kneesa.uk.xensource.com be4c0619d5 Fix a race that crash domU by calling xenbus_probe twice if it receive event
between xs_init and setting xenbus_running

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2006-03-18 13:56:34 +00:00
kaf24@firebug.cl.cam.ac.uk d3ef5b488a Move __do_IRQ() definition to ia64 header file where it belongs.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-18 11:12:45 +01:00
kaf24@firebug.cl.cam.ac.uk ed87d736e9 merge with xen-ia64-unstable.hg 2006-03-18 10:59:11 +01:00
cl349@firebug.cl.cam.ac.uk ce0bcf0e64 Update to Linux 2.6.16-rc6.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>


--HG--
rename : patches/linux-2.6.16-rc5/i386-mach-io-check-nmi.patch => patches/linux-2.6.16-rc6/i386-mach-io-check-nmi.patch
rename : patches/linux-2.6.16-rc5/net-csum.patch => patches/linux-2.6.16-rc6/net-csum.patch
rename : patches/linux-2.6.16-rc5/pmd-shared.patch => patches/linux-2.6.16-rc6/pmd-shared.patch
rename : patches/linux-2.6.16-rc5/smp-alts.patch => patches/linux-2.6.16-rc6/smp-alts.patch
2006-03-18 00:12:26 +00:00
awilliam@xenbuild.aw b6144da6bb merge 2006-03-17 15:37:28 -07:00
awilliam@xenbuild.aw 9dc734c3ad [IA64] VT-i Domains should use same hvm builder as VT-x
Signed-off-by: Fred Yang <fred.yang@intel.com>
2006-03-17 14:26:24 -07:00
awilliam@xenbuild.aw b7c7a62b6d [IA64] -mconstant-gp gcc/as option added.
Thus gp is not saved/restored before calls, saving memory and bundles.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-03-17 14:23:43 -07:00
awilliam@xenbuild.aw e14a1fda82 [IA64] zero_page_memmap_ptr removed (was unused).
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-03-17 14:21:56 -07:00
awilliam@xenbuild.aw 7d408ed38f [IA64] fixed a vcpu_translate bug
There are some below code segments in guest OS
1.     Rsm psr.dt
       ...
2.     itc.d r18
       ...
3.     rfi

After executing instruction 1, domain is in metaphysical mode.
When executing instruction 2, VMM gets control to emulate this
instruction. Firstly VMM will try to get opcode, which may
trigger a tlb miss. At this time domain is in metaphysical mode
and the fault address is in region 5. vcpu_translate handles this
as normal guest metaphysical mode.

It's not correct; sometimes this will make dom0 hang.

cpu_translate should handle this situation as if
guest is not in metaphysical mode.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2006-03-17 14:06:20 -07:00