Commit Graph
8636 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk e3f67392ec ia64 specific part of gdbstub.
Signed-off-by: Isaku Yamahtata <yamahata@valinux.co.jp>
2006-01-23 15:47:00 +01:00
kaf24@firebug.cl.cam.ac.uk 5a132f7674 Emergency system halt should halt all processors, not just
the crashing processor.

Signed-off-by: Jan Beulich <JBeulich@novell.com>
2006-01-23 15:17:14 +01:00
kaf24@firebug.cl.cam.ac.uk 55fe40b0d1 The arguments to memset are ordered incorrectly in the
pcm_hw_clear function of audio.c.

Signed-off-by: Charles Coffing <ccoffing@novell.com>
2006-01-20 20:31:09 +01:00
kaf24@firebug.cl.cam.ac.uk 31415c26f9 Allow disabling the tx checksums on the xen loopback
interface, which is used for the virtual interfaces of dom0 instead 
of netfront/netback.

I need to issue ethtool -K eth0 tx off to work around a bad checksum
problem, which has been reported for domUs a few months ago. I'm
bridging dom0's eth0 to a domU where I do NAT to a different virtual
interface. Without this change, I get lots of packets with bad
checksums.

Signed-off-by: Jan Niehusmann <jan@gondor.com>
2006-01-19 20:11:09 +01:00
kaf24@firebug.cl.cam.ac.uk 55d921d433 Fix a bug that causes storage key auth to be generated twice.
Signed-off-by: Vinnie Scarlata <vincent.r.scarlata@intel.com>
2006-01-19 20:04:53 +01:00
kaf24@firebug.cl.cam.ac.uk 1d2c4dd171 Having /usr/bin/xsls conflicts with xsls as distributed in scalapack
(http://www.netlib.org/scalapack/).  It should probably be xenstore-ls
a) for namespacing and b) to match up with the other xenstore commands
better. 

Signed-off-by: Jeremy Katz <katzj@redhat.com>
2006-01-19 09:16:01 +01:00
kaf24@firebug.cl.cam.ac.uk 981d16a128 Cleanup dirty code avoiding warning messages when compiling
ioemu.

Signed-off-by: Haifeng Xue <haifeng.xue@intel.com>
2006-01-19 09:12:40 +01:00
vhanquez@kneesa.uk.xensource.com 67a3f812a2 Delete 2 unused Kconfig files.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2006-01-18 12:58:11 +00:00
smh22@firebug.cl.cam.ac.uk 426f6b2e81 No longer call xc_vcpu_getcontext() on restore (required after cset 8610).
Signed-off-by: Steven Hand <steven@xensource.com>
2006-01-17 16:09:03 +01:00
maf46@burn.cl.cam.ac.uk 232f69bfdd Minor documentation fix 2006-01-17 16:06:03 +01:00
kaf24@firebug.cl.cam.ac.uk af8becc6b9 Remove the spin on VCPUF_running from context_switch().
It doesn't work because we already set VCPUF_running
locally, and the scheduler should not pick another CPU's
VCPUF_running VCPU anyway, since it mustn't modify the 
processor field.

Instead just add a simple assertion to the scheduler to
ensure the scheduling algorithm is not picking an
inappropriate VCPU.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-01-17 14:24:42 +01:00
kaf24@firebug.cl.cam.ac.uk d7d7c642c2 Sync against scheduler tail on other CPUs when context
switching to a new VCPU. Otherwise we cannot pull the 
VCPU's state off the other CPU.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-01-17 13:25:30 +01:00
vhanquez@kneesa.uk.xensource.com 99720cafe6 return -ENOMEM value instead of -1 when running out of memory.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2006-01-16 23:54:24 +00:00
vhanquez@kneesa.uk.xensource.com 4ca0e16c74 sanitize tpmfront. missing spin_unlock'ing in error paths and fix coding style.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2006-01-16 23:43:58 +00:00
vhanquez@kneesa.uk.xensource.com 403ce4ff82 bool type doesn't exist in C, don't try to emulate one.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2006-01-16 22:11:43 +00:00
vhanquez@kneesa.uk.xensource.com 562b48cc4f remove ASSERT macro.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2006-01-16 22:07:29 +00:00
vhanquez@kneesa.uk.xensource.com ff45641f7d replace ASSERT by BUG_ON.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2006-01-16 22:04:42 +00:00
vhanquez@kneesa.uk.xensource.com c4975c1cf0 define all DPRINTK as pr_debug
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2006-01-16 21:58:44 +00:00
vhanquez@kneesa.uk.xensource.com ffd9d0c69e fix xenbus_scanf called with NULL instead of XBT_NULL.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2006-01-16 21:48:24 +00:00
vhanquez@kneesa.uk.xensource.com 1765b01024 use standard pr_debug macro for DPRINTK.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2006-01-16 21:43:17 +00:00
vhanquez@kneesa.uk.xensource.com 23a6ea1276 remove ASSERT macro that is not used anymore in blkback.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2006-01-16 21:29:10 +00:00
vhanquez@kneesa.uk.xensource.com bc7c642662 remove unnecessary macro bdev_put which is an alias to blkdev_put.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2006-01-16 21:13:29 +00:00
kaf24@firebug.cl.cam.ac.uk 4e25f64449 Complete arch_domain_create refactoring for ia64.
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
2006-01-16 14:47:31 +01:00
kaf24@firebug.cl.cam.ac.uk cbafa2c56b Remove the free_vcpu() interface I added in the preceding
changeset. It makes no sense, since an allocated VCPU
cannot be freed at any arbitrary point because individual
VCPUs are not refcounted.

Instead extend free_domain() slightly so it really does do
the reverse of alloc_vcpu() for every allocated VCPU.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-01-14 23:40:09 +01:00
kaf24@firebug.cl.cam.ac.uk 0ed0e37193 Some refactoring of domain creation/destruction.
Interface name changes:
1. do_createdomain -> domain_create

2. domain_destruct -> domain_destroy

Arch-specific changes:
1. arch_do_createdomain -> arch_domain_create
This function now takes a domain pointer, not a VCPU
pointer! Initialisation of VCPU0 must happen in
alloc_vcpu_struct().

2. free_perdomain_pt -> arch_domain_destroy
This function must undo the work of arch_domain_create

TODO: arch_domain_create() refactoring is not completed
for ia64.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-01-14 23:16:43 +01:00
kaf24@firebug.cl.cam.ac.uk f59958dd82 xc_vcpu_getcontext() can no longer be called before a
VCPU's context has been explicitly initialised. 

Fix all the domain builders to no longer attempt this.
They really don't need to anyhow.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-01-14 22:17:33 +01:00
kaf24@firebug.cl.cam.ac.uk 6294397fba Arch-specific per-vcpu info should be initialised to zero
when allocating a new vcpu structure, not copied from
CPU0's idle VCPU. Especially now that the idle VCPU itself
is dynamically allocated. 

This should fix assertions people have been seeing in
getdomain_info_ctxt() relation to IOPL in eflags.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-01-14 21:26:40 +01:00
kaf24@firebug.cl.cam.ac.uk 7770ed988a Fix 64-bit build with crash_debug enabled.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-01-14 17:05:31 +01:00
kaf24@firebug.cl.cam.ac.uk 360a1871b5 Rename cdb to gdbstub and split it into arch dependent/neutral part.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2006-01-14 16:58:54 +01:00
kaf24@firebug.cl.cam.ac.uk 843f4eb435 merge 2006-01-14 10:36:40 +01:00
kaf24@firebug.cl.cam.ac.uk b395f5ac6d Fix the issue of system crash in vmx stress test.
There is a path that shadow L2 table is assigned
after it is unshadowed in stress test.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
2006-01-14 10:35:39 +01:00
kaf24@firebug.cl.cam.ac.uk f2a2bc3248 Merge with xen-ia64-unstable.hg 2006-01-14 01:04:06 +01:00
kaf24@firebug.cl.cam.ac.uk c9a14b06a4 Make all nmi debugkey tracing arch specific.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-01-13 23:41:28 +01:00
djm@kirby.fc.hp.com 180a69c1e2 Work around new nmi code in keyhandler
Signed-off-by: Dan Magenheimer <dan.magenheimer@hp.com>
2006-01-13 14:58:41 -06:00
djm@kirby.fc.hp.com 4b79423778 Leave *_SOFTIRQ definitions to Xen common code
Signed-off-by: Dan Magenheimer <dan.magenheimer@hp.com>
2006-01-13 14:31:00 -06:00
djm@kirby.fc.hp.com 3773da3862 Remove annoying #warning when compiling with CONFIG_XEN_SMP 2006-01-13 14:19:30 -06:00
djm@kirby.fc.hp.com cff39e47eb Fix for !CONFIG_SMP compile
Signed-off-by: Dan Magenheimer <dan.magenheimer@hp.com>
2006-01-13 14:16:44 -06:00
djm@kirby.fc.hp.com 0070cb1f3a Merge 2006-01-13 14:12:24 -06:00
Ian.Campbell@xensource.com 0828aa84f7 Correctly handle dumping a VM86 guest's stack.
If the guest context is VM86 then we need to treat ss:sp as 16 bit
segment:offset rather than 32 bit selector:offset.

Signed-off-by: Ian Campbell <Ian.Campbell@XenSource.com>
2006-01-13 16:56:09 +00:00
djm@kirby.fc.hp.com 542362015e Allow asm-offsets to work with vanilla binutils
Necessary because SHARED_ARCHINFO_ADDR is negative
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-01-13 10:38:44 -06:00
djm@kirby.fc.hp.com cafde138a1 correct implementation of flush_tlb_mask needed to reenable CONFIG_SMP
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-01-13 10:36:47 -06:00
djm@kirby.fc.hp.com 64d8a35871 Make xmexaple.vti support network option too and other small modifications for convenient use.
Signed-off-by Zhang xiantao <xiantao.zhang@intel.com>
2006-01-13 10:25:10 -06:00
djm@kirby.fc.hp.com a6be6177a3 Unused page struct fields commented out.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-01-13 10:24:19 -06:00
djm@kirby.fc.hp.com 7f762c3f38 add prototype of guest_cpu_user_regs() which is used by ns16550_poll().
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-01-13 10:23:01 -06:00
kaf24@firebug.cl.cam.ac.uk fc5423d8cd Introduce a locking protocol for acquiring the 'scheduler
lock' on a particular VCPU. Since this requires acquiring
the approrpiate per-CPU lock, we must re-check the VCPU's
current CPU binding after the lock is acquired.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-01-13 16:44:04 +01:00
kaf24@firebug.cl.cam.ac.uk c62fffdcdc Fix writable pagetables when a flush happens in a different
domain, which is temporarily made to run on the wrong
pagetables.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-01-13 16:27:45 +01:00
kaf24@firebug.cl.cam.ac.uk f9a0cd1238 Fix up the way we initialise and set the NMI heartbeat
timers. Also, compund updates to APIC ICR and ICR2 registers
must be done with interrupts disabled to ensure local
atomicity.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-01-13 16:09:45 +01:00
Ian.Campbell@xensource.com 82f5d7e034 Debug keyhandlers for triggering an NMI and examine current NMI state.
Add 'N' keyhandler to dump the current per CPU NMI counts and the
current NMI mask/pending status.

Add 'n' keyhandler to trigger an NMI by sending an IPI. For some
reason the destination shorthand for self is not valid when used with
the NMI delivery mode so we send the IPI to our own APIC ID
explicitly.

Signed-off-by: Ian Campbell <Ian.Campbell@XenSource.com>
2006-01-13 14:59:40 +00:00
djm@kirby.fc.hp.com a3b63a0ab6 Enable warnings and fix a few one (those which occur in almost every file).
The next step is to fix warnings one by one.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
# User tristan.gingold@bull.net
2006-01-13 08:52:05 -06:00
kaf24@firebug.cl.cam.ac.uk 723bbd528f Fix xenbus_cleanup_devices() to cleanup proper subdirectories
of the deleted path, not merely paths mwith matching prefixes.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-01-13 15:22:36 +01:00