Commit Graph
6446 Commits
Author SHA1 Message Date
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
kaf24@firebug.cl.cam.ac.uk 88c6dc77be Ensure explicit asm statememt goes in the correct section. 2005-08-25 08:39:50 +00:00
cl349@firebug.cl.cam.ac.uk bef12f2bbd merge? 2005-08-25 00:55:20 +00:00
cl349@firebug.cl.cam.ac.uk acc63faffa Break the building/save/restore code out into a separate library libxenguest.
Also update the tools accordingly.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-25 00:51:20 +00:00
cl349@firebug.cl.cam.ac.uk 60eb663513 Rename libxc => libxenctrl and xc.h => xen/xenctrl.h
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>


--HG--
rename : tools/libxc/xc.h => tools/libxc/xenctrl.h
2005-08-24 23:07:29 +00:00
cl349@firebug.cl.cam.ac.uk 92ac24ede5 merge? 2005-08-24 22:24:10 +00:00
cl349@firebug.cl.cam.ac.uk e66487c0fc Switch network setup over to xenbus.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-24 22:22:11 +00:00
cl349@firebug.cl.cam.ac.uk f73d8dba8f Update error message.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-24 22:21:24 +00:00
cl349@firebug.cl.cam.ac.uk d90a3a88c0 Rename grant-id to ring-ref.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-24 21:50:52 +00:00
cl349@firebug.cl.cam.ac.uk 9df7b4b119 Watch may fire before we've allocated the interface structure.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-24 20:43:16 +00:00
cl349@firebug.cl.cam.ac.uk bd16b19bb0 Unregister watch in error path.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-24 20:29:42 +00:00
cl349@firebug.cl.cam.ac.uk 9acebec0b9 Avoid calling device_unregister from device_register callback.
Also simplify code.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-24 20:11:07 +00:00
cl349@firebug.cl.cam.ac.uk f63e7cbee1 Disable debug output again.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-24 20:10:12 +00:00
kaf24@firebug.cl.cam.ac.uk b870897ede Print status of Flush Filter on AMD64 processors during
Xen boot. Also provide a new boot parameter:
 amd_flush_filter=on  : Forcibly enable the Filter
 amd_flush_filter=off : Forcibly disable the Filter

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-24 16:15:42 +00:00
cl349@firebug.cl.cam.ac.uk 7737972d76 merge? 2005-08-24 15:49:27 +00:00