Commit Graph
6460 Commits
Author SHA1 Message Date
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
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
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
cl349@firebug.cl.cam.ac.uk dbf45d274b Update xentop to use new name for Xen version function.
Signed-off-by: Josh Triplett <josht@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-26 08:50:31 +00:00
cl349@firebug.cl.cam.ac.uk d6ff39d0ae Changed xentop.c to include version in the summary.
Signed-off-by: Judy Fischbach <jfisch@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-26 08:50:02 +00:00
cl349@firebug.cl.cam.ac.uk 42778d65c7 Bugfix: xenstat_collect_networks now returns the correct error code.
Signed-off-by: Josh Triplett <josht@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-26 08:49:31 +00:00
cl349@firebug.cl.cam.ac.uk b70e51cdb2 Cache the Xen version in the xenstat_handle, since it should never change.
Use a collector and new flag for Xen version information, to avoid the
extra hypercall if the caller does not want the information.
Reference the xenstat_handle in the xenstat_node for ease of access
later, and update collectors accordingly.
Signed-off-by: Josh Triplett <josht@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-26 08:48:59 +00:00
cl349@firebug.cl.cam.ac.uk 82f5b43a1b Formatting fixes for xenstat and xentop.
Signed-off-by: Josh Triplett <josht@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-26 08:47:49 +00:00
cl349@firebug.cl.cam.ac.uk bf1b3d3089 Add file missed in c51562192ef6b1d94f6de7aba1daafe8353064a8 changeset.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-26 08:46:28 +00:00
djm@kirby.fc.hp.com cf5d4e4dd8 Merge with -unstable 2005-08-25 15:53:20 -07:00
cl349@firebug.cl.cam.ac.uk 2c705af2bb Minor cleanups.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-25 18:49:48 +00:00
cl349@firebug.cl.cam.ac.uk 37603efb6e merge? 2005-08-25 17:27:49 +00:00
cl349@firebug.cl.cam.ac.uk 989249c96f Add hotplug script to run vif-bridge up script when a backend vif starts up.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-25 17:27:31 +00:00
kaf24@firebug.cl.cam.ac.uk 5f2853adb1 Fix MPT mapping for x86/64. Also i386 no longer needs
4MB mapping for PAE, as xenlinux can handle faults when
accessing unmapped sections of the table.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-25 17:15:41 +00:00
cl349@firebug.cl.cam.ac.uk 47a972991f merge? 2005-08-25 16:27:04 +00:00
cl349@firebug.cl.cam.ac.uk 1e57dfe310 merge? 2005-08-25 16:26:30 +00:00
kaf24@firebug.cl.cam.ac.uk b7b544e749 Memory management fixes. Page tables are created, buddy allocator now
has ability to free memory (as well as allocate it).

Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
2005-08-25 16:25:26 +00:00
cl349@firebug.cl.cam.ac.uk a30cf89f37 Cleanup unused code.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-25 16:24:51 +00:00
kaf24@firebug.cl.cam.ac.uk 0c01ed4935 This patch fixes Bugzilla #169. (It should fix #187 too -- Keir).
The root cause of bug 169 is, machine_to_phys_mapping, starting from
0xffff800000000000, is mapped using 2M pages.  When the system has RAM
no more than 2G, only one 2M page is allocated and only one PDE entry is
created correspondingly, so calling mfn_to_pfn with mfn > 0x80000 will
overflow this 2M page and cause a unable handled kernel paging request.
The mfn > 0x80000 comes from PCI device I/O memory, here from AGP
display card when booting X server.  Jun suggested to use something like
get_user() when accessing machine_to_phys_mapping.

Signed-off-by: Xin Li <xin.b.li@intel.com>
2005-08-25 16:21:19 +00:00
kaf24@firebug.cl.cam.ac.uk d04c0fd02e The mpt entry is 4 bytes even on x86_64, so we use 4 when
calculating mpt size.

Signed-off-by: Xin Li <xin.b.li@intel.com>
2005-08-25 15:53:03 +00:00
kaf24@firebug.cl.cam.ac.uk 2a17786484 1. Remove workaround patch
2. Update scripts/vif-bridge to not call 'brctl delif'

When a domU is shutdown/destroyed and the netif is destroyed, the
notify_call_chain triggered from unregister_netdevice() will trigger the
bridge event handler and which will call the proper code to remove the
device from the bridge.

I can't see any reason why brtcl delif should be called when taking out
a domain if the call chain will delete the interface from the bridge
when the vif is destroyed automatically.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
2005-08-25 15:51:30 +00:00
cl349@firebug.cl.cam.ac.uk dc8d894939 Remove broken patch preventing net device unregister.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-25 15:46:23 +00:00
cl349@firebug.cl.cam.ac.uk 51a81da82a Cleanup vif entries in store when domain goes away.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-25 15:45:39 +00:00
cl349@firebug.cl.cam.ac.uk 73429619b1 Fix device destruction.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-25 15:45:19 +00:00
kaf24@firebug.cl.cam.ac.uk 2c9dd62c64 Store correct rx ring handle in netback driver.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-25 14:58:20 +00:00
cl349@firebug.cl.cam.ac.uk 7910cdc377 merge? 2005-08-25 14:41:52 +00:00
cl349@firebug.cl.cam.ac.uk cf462776ab g/c Linux 2.4 netback support.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-25 14:41:06 +00:00
cl349@firebug.cl.cam.ac.uk 04712d59a2 More cleanups and g/c of unused code.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-25 14:40:15 +00:00
kaf24@firebug.cl.cam.ac.uk 6e08df4d05 Fix grant-ref allocation in netfront.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-25 14:30:06 +00:00
cl349@firebug.cl.cam.ac.uk 4d317000ec merge? 2005-08-25 14:16:38 +00:00
cl349@firebug.cl.cam.ac.uk 2ef324a62b g/c unused code.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-25 14:16:23 +00:00
kaf24@firebug.cl.cam.ac.uk 8f6adc2cc8 Fix SMP booting: x86/64 startup initialisation fixes and so on.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-25 13:27:10 +00:00
kaf24@firebug.cl.cam.ac.uk ef591e9331 Fix install of xenctrl.h. 2005-08-25 13:26:37 +00:00
cl349@firebug.cl.cam.ac.uk 44aec1c696 merge? 2005-08-25 10:09:39 +00:00
cl349@firebug.cl.cam.ac.uk 47428adff6 Fix the exception thrown when doing, for example, "xm domid" on a non-existent domain.
Signed-off-by: Dan Smith <danms@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-25 09:55:12 +00:00
cl349@firebug.cl.cam.ac.uk 6fd73f2638 merge? 2005-08-25 09:50:30 +00:00
cl349@firebug.cl.cam.ac.uk 42684425da Updated to reflect new tools added here.
Signed-off-by: Judy Fischbach <jfisch@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-25 09:50:20 +00:00