Commit Graph
6545 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk ec401bab1b Add back missing part of XenLinux acpi/boot.c.
This fixes bug #76 (IRQ sharing fails under load).
Signed-off-by: Natasha Jarymowycz <natasha@us.ibm.com>
2005-08-31 08:43:57 +00:00
kaf24@firebug.cl.cam.ac.uk 4955f329c8 merge? 2005-08-31 08:27:34 +00:00
adsharma@los-vmm.sc.intel.com a8211ec86e Merge. 2005-08-30 13:36:49 -07:00
cl349@firebug.cl.cam.ac.uk 4e17f8f6d1 merge? 2005-08-30 20:03:51 +00:00
cl349@firebug.cl.cam.ac.uk af2f00c972 Use watch to detect new domains and avoid polling for dead domains.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-30 20:02:59 +00:00
cl349@firebug.cl.cam.ac.uk 7af47820e8 Raise VIRQ_DOM_EXC when a domain is destroyed from dom0.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-30 20:01:23 +00:00
cl349@firebug.cl.cam.ac.uk a4c07d4f6d Don't clear console entries.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-30 19:47:39 +00:00
kaf24@firebug.cl.cam.ac.uk 0e0f890e89 Unify access to mpt using macros.
Also some code cleanup to x86_64 fault.c

Signed-off-by: Xin Li <xin.b.li@intel.com>
2005-08-30 17:53:49 +00:00
kaf24@firebug.cl.cam.ac.uk a13db0cf75 Add some more EXPORT_SYMBOLs for Xen-defined stuff.
Based on a patch from Ross Mcilroy.
2005-08-30 17:09:43 +00:00
kaf24@firebug.cl.cam.ac.uk 1d6f2a8f56 Some fixes to the performance counters code.
Signed-off-by: Ross McIlroy <mcilrorc@dcs.gla.ac.uk>
2005-08-30 17:00:26 +00:00
kaf24@firebug.cl.cam.ac.uk c76b902135 When generating an exception frame for injection into a
guest, that frame's base should be aligned on a 16-byte
boundary (as is done by the hardware).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2005-08-30 16:53:40 +00:00
kaf24@firebug.cl.cam.ac.uk 4651c5a95e Fix x86/64 Xen register and stack dumps so they don't
wrap on an 80-column display.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2005-08-30 16:44:05 +00:00
kaf24@firebug.cl.cam.ac.uk cdb54b8880 Fix x86/64 pagetable initialisation to not waste several
megabytes of memory.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-30 16:19:07 +00:00
cl349@firebug.cl.cam.ac.uk 5ac4e5d825 merge? 2005-08-30 16:15:27 +00:00
cl349@firebug.cl.cam.ac.uk 14329d584a New console transport and update xenconsoled.
Add a new console interface using a seperate shared page and event channel
instead of passing the console input/output over control messages.
Update xenconsoled to use the new console interface.
Make xenconsoled garbage collect dying domains by subscribing to
the domain exception virq.
Signed-off-by: Robert Read <robert@xensource.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-30 16:14:53 +00:00
kaf24@firebug.cl.cam.ac.uk 8687567766 Fix user-space four- and five-argument hypercalls on
x86/64. This fixes domU building on x86/64 (bug #196).
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-30 14:14:31 +00:00
kaf24@firebug.cl.cam.ac.uk 9dda6164e6 Fix memory_op domid parameter in dom0 tools.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-30 13:56:08 +00:00
kaf24@firebug.cl.cam.ac.uk 19fd798dab Fix build failure due to missing unistd.h
Signed-off-by: Michal Ostrowski <mostrows@watson.ibm.com>
2005-08-30 13:16:05 +00:00
kaf24@firebug.cl.cam.ac.uk 16504669c5 Cross-compilation fixes.
Signed-off-by: Michal Ostrowski <mostrows@watson.ibm.com>
2005-08-30 13:15:20 +00:00
kaf24@firebug.cl.cam.ac.uk 5dbd0a6081 Make mbootpack work on big-endian systems.
Signed-off-by: Michal Ostrowski <mostrows@watson.ibm.com>
2005-08-30 13:12:47 +00:00
kaf24@firebug.cl.cam.ac.uk e4dfe0cdba Replace dom_mem_op hypercall with memory_op hypercall with
better interface. Fix "mem=" parameter on x86/64 boot.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-30 11:53:47 +00:00
kaf24@firebug.cl.cam.ac.uk 855b34ec99 This patch export symbols in xenbus that is used by netfront
and blkfront so that vbd and vnif can be made to modules.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
2005-08-30 09:46:33 +00:00
kaf24@firebug.cl.cam.ac.uk 750871efed Add CONFIG_BLK_DEV_UB as unconfigured item to x86/64 dom0
defconfig file. Spotted by Yongkang You at Intel.
2005-08-30 08:47:51 +00:00
shand@ubuntu.eng.hq.xensource.com d4e4e3abee Fix save/restore (for SMP guests in particularl); the blkfront suspend code
was failing to unbind its irq handler correctly which (on SMP) caused the 
guest to BUG() on resume when trying to request its callfunc_irq. Plus a 
few small cosmetic changes. 

Signed-off-by: Steven Hand <steven@xensource.com> 
/bin/bash: ❌ command not found
2005-08-29 19:20:55 -08:00
adsharma@los-vmm.sc.intel.com 5cb9019986 Sync Makefile with xen-unstable.hg. This should fix x86-64 bit build. 2005-08-29 16:05:29 -07:00
adsharma@los-vmm.sc.intel.com 9f956a39af Merge. 2005-08-29 15:31:51 -07:00
adsharma@los-vmm.sc.intel.com dfcfb2ba53 Merge. 2005-08-29 13:19:24 -07:00
cl349@firebug.cl.cam.ac.uk 0d6bfee094 Simplify and fix SMP irq and ipi teardown/setup on suspend/resume.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-29 17:40:47 +00:00
cl349@firebug.cl.cam.ac.uk 1b7bae227d Update suspend/resume functions for xenbus.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-29 17:15:56 +00:00
cl349@firebug.cl.cam.ac.uk 099d84b15c Only hotplug cpus and save/restore vcpu context on SMP builds.
The for_each_cpu_mask macro has a slightly odd behaviour in the
non-CONFIG_SMP case, making the code unexpectedly incorrect.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-29 17:14:08 +00:00
kaf24@firebug.cl.cam.ac.uk 7fa8b30f7d Fix page_is_ram() start-of-day checks, and the watch routine
inside balloon driver.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-29 14:53:38 +00:00
cl349@firebug.cl.cam.ac.uk 82e2e63c60 Fix "bogus" check by moving it inside the length check.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-29 13:58:46 +00:00
kaf24@firebug.cl.cam.ac.uk 79bcde0dd2 Allocate a request-id space per vbd in blkfront.
This should fix the assertions people have been seeing
in domU blkfront where we run out of IDs (because they
were being shared by multiple vbds).

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-29 13:56:53 +00:00
shand@ubuntu.eng.hq.xensource.com cabdee2e7c Minor (partial) build fix for 2.4.
Signed-off-by: Steven Hand <steven@xensource.com>
2005-08-28 21:50:04 -08:00
shand@ubuntu.eng.hq.xensource.com 1f1e576a4a Fix nasty tools race between barking xu_autoreap() and xpopen3.wait() -
save/restore now seems more robust from a tools pov at least. 

Signed-off-by: Steven Hand <steven@xensource.com>
2005-08-28 21:40:36 -08:00
kaf24@firebug.cl.cam.ac.uk dc5fbb4fa2 blkfront cleanup and retab.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-28 14:21:08 +00:00
lcy@vtsmp-build.sh.intel.com 59d0e58be8 Update __vmread()
To make it not to break the stack.

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Chengyuan Li <chengyuan.li@intel.com>
2005-08-28 14:55:37 +08:00
kaf24@firebug.cl.cam.ac.uk 4eaf491a1f CONFIG_X86_PM_TIMER is a no-op option when building Linux
for Xen, but make sure it doesn't break the build.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-27 11:49:35 +00:00
kaf24@firebug.cl.cam.ac.uk f1a675f424 Don't build pcbios.c for xen/i386. No good can come of it.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-27 09:15:17 +00:00
adsharma@los-vmm.sc.intel.com e903c56339 Merge. 2005-08-26 13:47:16 -07:00
kaf24@firebug.cl.cam.ac.uk fc6151d0e9 Refactor sync_lazy_execstate_cpu() into the more sensible
sync_vcpu_execstate().

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-26 17:57:09 +00:00
kaf24@firebug.cl.cam.ac.uk edf2226577 Clean up and fix hypercall macros in XenLinux: we must assume that
all register parameters are clobbered on return. Furthermore,
multicall arrays are clobbered on return from a multicall (only the
result field can be trusted!).

These restrictions are enforced by debug builds of Xen in the
following ways:
 1. On completion of a multicall, the call array is overwritten
    with garbage before writing in the result fields.
 2. On completion of a hypercall, all parameter registers are
    overwritten with garbage.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-26 17:42:34 +00:00
kaf24@firebug.cl.cam.ac.uk 5946ce59ff Remove the unused ia64 patch directory.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-26 13:06:49 +00:00
kaf24@firebug.cl.cam.ac.uk 8a181133e2 The patched attached enables x86_64 xenlinux with "late pin, early
unpin", which is already implemented for x86_32. Since we now only pin
the root rather than any of the other levels, the overall performance
became better especially with workloads that require heavy memory
management operations.

On 8-way x86_64 xenlinux (dom0) the kernel build was improved by about
10% (using make -j32). Even a small setup like a UP HT system, I see
about 3% performance gain with kernel build (make -j4).

Lmbench also shows improvements in fork/exec/sh:
Processor, Processes - times in microseconds - smaller is better
--------------------------------------------------------------------
Host    OS  Mhz   null null      open slct sig  sig  fork exec sh =20
                  call  I/O stat clos TCP  inst hndl proc proc proc
--------- ------------- ---- ---- ---- ---- ---- ---- ---- ---- ----=20
Linux 2.6.12- 3786 1.13 1.36 3.93 6.04 10.5 1.43 4.33 536. 1446 3614
Linux 2.6.12- 3786 1.13 1.36 3.91 6.03 10.4 1.44 4.38 346. 1050 2831

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
2005-08-26 11:02:14 +00:00
kaf24@firebug.cl.cam.ac.uk f67a7f7902 Fix GDT allocation for SMP guests.
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
2005-08-26 11:00:14 +00:00
cl349@firebug.cl.cam.ac.uk eec8a20f38 Vnet update.
Fix the tools/vnet makefiles so that vnets will compile
and includes updates to the vnet implementation.
Vnet ids are increased to 128 bits. The vnet module will
insmod whether xen-br0 exists or not.
Signed-off-by: Mike Wray <mike.wray@hp.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-26 10:52:53 +00:00
cl349@firebug.cl.cam.ac.uk 2912a41dd1 Fix vnets in xm.
The removal of 'xm call' to call a xend interface function directly
made the xend vnet functions inaccessible. This patch adds those functions
to xm and fixes the persistence in XmVnet to use xenstore.
Signed-off-by: Mike Wray <mike.wray@hp.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-26 10:51:10 +00:00
kaf24@firebug.cl.cam.ac.uk 393415f09c The patch removes broken, and very complicated malloc in
favour of much simpler (and working) Xen's allocator
(xmalloc by Rusty).

Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
2005-08-26 10:35:36 +00:00
kaf24@firebug.cl.cam.ac.uk 4fb2acfb09 Clean up and fix domain_pause and friends. Synchronous
pause should not only wait for the running flag to clear,
but also for the scheduler lock to be released. Also get
rid of some unused sync_lazy_execstate functions.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-26 09:29:54 +00:00
kaf24@firebug.cl.cam.ac.uk 04e978dd6b merge? 2005-08-26 09:05:43 +00:00