Commit Graph
6296 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk 4f61ba1e84 Not ready for pae by default just yet. ;-) 2005-08-20 10:03:40 +00:00
kaf24@firebug.cl.cam.ac.uk e5ca22d4ab Fix PAE boot.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-20 10:01:20 +00:00
kaf24@firebug.cl.cam.ac.uk 7cd753585f I find at present "make uninstall" won't remove all installed files, for
example: /usr/libexec/xen/xc_restore. This may cause potential unclean
environment.

This patch add more lines in uninstall to remove all installed files by
"make uninstall".

Signed-off-by: Yongkang You <yongkang.you@intel.com>
2005-08-20 09:38:32 +00:00
kaf24@firebug.cl.cam.ac.uk bd56a31071 We need to detect ioemu handled devices earlier and ignore them.
Testing in blkif.py is too late. The check should be in createDevices.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-08-20 09:36:15 +00:00
kaf24@firebug.cl.cam.ac.uk a1b473eb06 Mini-os updated to use the new time interface.
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
2005-08-20 09:35:38 +00:00
iap10@freefall.cl.cam.ac.uk 2bf204d13a Hopefully fix build with SLES9 compiler.
Signed-off-by: ian@xensource.com
2005-08-19 20:02:01 +00:00
sd386@font.cl.cam.ac.uk 9d15f02cd7 Local merge of two headed repo. 2005-08-19 18:12:48 +00:00
sd386@font.cl.cam.ac.uk b25e5aa958 Fix broken 'xm sedf', fixed by Ross Mcilroy
Signed-off by: Stephan.Diestelhorst@{cl.cam.ac.uk, inf.tu-dresden.de}
2005-08-19 18:08:29 +00:00
kaf24@firebug.cl.cam.ac.uk defa5b4d1e merge. 2005-08-19 17:57:00 +00:00
kaf24@firebug.cl.cam.ac.uk 4fa9c861ef Fix x86/64 build by defining correct vcpu_pickle(). 2005-08-19 17:56:20 +00:00
cl349@firebug.cl.cam.ac.uk 921a19ca7e merge? 2005-08-19 17:54:56 +00:00
kaf24@firebug.cl.cam.ac.uk 6328b7e119 Six the SWIOTLB. The bus range does need to be contiguous after
all as a range comparsion is used to determine if a given
dma address is within the swiotlb aperture.

Maybe we can do better sometime in the future (fast address
range comparison yet not require bus-contiguous aperture). But
reverting this morning's patch is fine for now.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-19 17:51:37 +00:00
cl349@firebug.cl.cam.ac.uk 2c26ae3399 merge? 2005-08-19 17:38:31 +00:00
cl349@firebug.cl.cam.ac.uk 1511aa3b38 Improve error paths and cleanup code.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-19 17:38:07 +00:00
kaf24@firebug.cl.cam.ac.uk d9eb7e09d7 Get rid of memory_t. Almost all uses should be unsigned long.
The few uses for a physical/machine address have been mostly 
changed to u64.

Grant table code probably needs auditing for PAE correctness,
but at least the interface is now sound.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-19 17:25:04 +00:00
kaf24@firebug.cl.cam.ac.uk 40326f9fc3 Simplify pagetable initialisation. Since swapper_pg_dir now
is the one allocated by the domain builder, we can be sure
it is below 4GB (essential for PAE).

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-19 16:46:51 +00:00
kaf24@firebug.cl.cam.ac.uk 4e4ffc8edf Fix many uses of machine addresses in XenLinux. Primarily
this fixes users of virt_to_machine/machine_to_virt to
use virt_to_mfn/mfn_to_virt where that is more appropriate.

This should be a big step to improved PAE stability.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-19 16:06:43 +00:00
sos22@douglas.cl.cam.ac.uk df3303d149 Merge.
Signed-off-by: Steven Smith, sos22@cam.ac.uk
2005-08-19 15:47:19 +00:00
sos22@douglas.cl.cam.ac.uk b3c5293807 This time, it's fixed.
Signed-off-by: Steven Smith, sos22@cam.ac.uk
2005-08-19 15:37:37 +00:00
cl349@firebug.cl.cam.ac.uk 18ac57ccb5 merge? 2005-08-19 15:22:05 +00:00
cl349@firebug.cl.cam.ac.uk 8c960d49e8 Correctly unmap ring page if using grant tables.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-19 15:21:12 +00:00
sos22@douglas.cl.cam.ac.uk 05626ec393 Unbreak the build in the non-CONFIG_SMP and x86_64 cases.
Signed-off-by: Steven Smith, sos22@cam.ac.uk
2005-08-19 14:10:24 +00:00
sos22@douglas.cl.cam.ac.uk 34cf0ddbff Get rid of some annoying debug messages.
Signed-off-by: Steven Smith, sos22@cam.ac.uk
2005-08-19 13:21:02 +00:00
sos22@douglas.cl.cam.ac.uk 3ba23368d1 Merge.
Signed-off-by: Steven Smith, sos22@cam.ac.uk
2005-08-19 13:08:50 +00:00
cl349@firebug.cl.cam.ac.uk 605d86e2cb Fix suspend/resume for domains with devices which are in xenstore but have no xenbus aware driver.
Information about network devices is stored in xenstore.  Xenbus creates
device objects for these devices but the network driver doesn't support
finding devices over xenbus yet and thus these devices have no driver.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-19 13:05:31 +00:00
cl349@firebug.cl.cam.ac.uk 02c66fd040 merge? 2005-08-19 12:22:27 +00:00
cl349@firebug.cl.cam.ac.uk 9e4d244470 Add very rough xend support for xenbus block device setup.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-19 12:21:29 +00:00
cl349@firebug.cl.cam.ac.uk 5dc49041bd Fix driver to work with updated probe driver.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-19 12:14:41 +00:00
cl349@firebug.cl.cam.ac.uk 8d59435050 Switch block device setup/teardown over to xenbus/xenstore.
Remove device probing support over the device channel.
g/c all the control message code.
Simplify and cleanup internal function calling code (explicit arguments
instead of passing structs around).
Also includes:
Changed "readonly" to "read-only". "backend" is still not hyphenated, but
that seems to be fairly common usage.
Block backends use xenbus_dev_error, making debugging nicer.
The block front end is told explicitly what domid to use to talk to the
backend. There's speculation that fake domid-like tokens may be given
for cluster purposes in future, so deriving from the backend dir name is
not guaranteed to work. Backends still derive front-end ids, using a
xenbus helper (xenbus_uuid_to_domid).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-19 12:13:31 +00:00
cl349@firebug.cl.cam.ac.uk c57a213652 use "vbd" as driver name for blkfront devices, not "blkfront".
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-19 10:59:47 +00:00
sos22@douglas.cl.cam.ac.uk 4ba5dde553 Merge.
Signed-off-by: Steven Smith, sos22@cam.ac.uk
2005-08-19 10:50:15 +00:00
cl349@firebug.cl.cam.ac.uk f556e350c9 Add support for multiple devices when using grant tables.
Also better support non-transactional store updates.
Also remove some extra printks.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-19 10:47:48 +00:00
cl349@firebug.cl.cam.ac.uk 59064682f5 Switch block device setup/teardown over to xenbus/xenstore.
Remove device probing support over the device channel.
g/c all the control message code.
Simplify and cleanup internal function calling code (explicit arguments
instead of passing structs around).
Also includes:
Changed "readonly" to "read-only". "backend" is still not hyphenated, but
that seems to be fairly common usage.
Block backends use xenbus_dev_error, making debugging nicer.
The block front end is told explicitly what domid to use to talk to the
backend. There's speculation that fake domid-like tokens may be given
for cluster purposes in future, so deriving from the backend dir name is
not guaranteed to work. Backends still derive front-end ids, using a
xenbus helper (xenbus_uuid_to_domid).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-19 10:46:21 +00:00
sos22@douglas.cl.cam.ac.uk 53e090236c Tidy up a bit.
Signed-off-by: Steven Smith, sos22@cam.ac.uk
2005-08-19 10:18:53 +00:00
kaf24@firebug.cl.cam.ac.uk 6453dfe51c The entire swiotlb aperture does not need to be contiguous.
Only individual aligned SEGSIZE blocks need to be contiguous.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-19 09:42:12 +00:00
kaf24@firebug.cl.cam.ac.uk 102f5914d4 By default, pre-reserve some memory in Xen that is not allocated
to domain 0 (1/16th available memory, up to 128MB maximum).
Also, extend dom0_mem boot parameter to accept negative values.
A negative value means "allocate all memory, minus the specified
amount".

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-19 09:36:12 +00:00
kaf24@firebug.cl.cam.ac.uk 7184ccd780 Default unit for all Xen memory parameters is kilobytes.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-19 09:16:56 +00:00
kaf24@firebug.cl.cam.ac.uk 058c5531b1 The patch allows x86_64 SMP Xen/XenLinux (dom0) to run on relatively big
SMP machines.
I tested on an 8-way machine with 8GB. It looks stable as far as I did
sanity checks, such as an infinite loop of "make -j32"; it's very fast!.

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
2005-08-19 09:05:04 +00:00
kaf24@firebug.cl.cam.ac.uk 39ec3e6c6a This patch:
* adds a C-based security policy translation tool to Xen (secpol_xml2bin) 
and removes the current Java 
security policy translator (Java dependencies).  The C-based tool 
integrates into the Xen source tree build 
and install (using gnome libxml2 for XML parsing). See install.txt.

* introduces security labels and related tools. Users can now use 
semantic-rich label names to put security-tags 
on domains. See example.txt, policy.txt.

* moves the security configuration (currently ACM_USE_SECURITY_POLICY) 
from xen/Rules.mk 
into a separate top-level Security.mk file  (it is needed by the 
tools/security and xen/acm).

Both xen/acm and tools/security are built during the Xen build process 
only if ACM_USE_SECURITY_POLICY 
is not ACM_NULL_POLICY (which is the default setting).

Signed-off-by Reiner Sailer <sailer@us.ibm.com>
Signed-off by Stefan Berger <stefanb@us.ibm.com>
Signed-off by Ray Valdez <rvaldez@us.ibm.com>
2005-08-19 09:03:17 +00:00
kaf24@firebug.cl.cam.ac.uk f5b9cd087f This patch provides a workaround for bugzilla #90 which shows up far too
often when creating and then destroying lots of domUs and dom0 is SMP.
Details are in the [1]bug.  With this patch, I now can create/destroy
domains in a tight loop for hours where previously every 3 to 10 cycles
would blow up.

1. http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=90

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
2005-08-19 08:55:03 +00:00
smh22@firebug.cl.cam.ac.uk d41f35ae27 Proleptic xend bug fix for multi-sxp messages; stricly more robust than before.
Signed-off-by: Steven Hand <steven@xensource.com>
2005-08-19 02:41:16 +00:00
cl349@firebug.cl.cam.ac.uk e9eaa6bafb Remove support for xenbus driver subtypes since with the subtype field there's no fallback.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-18 19:51:46 +00:00
cl349@firebug.cl.cam.ac.uk c4d04f6326 Add support to xenbus_gather to scan for strings and return them in allocated memory.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-18 19:24:42 +00:00
cl349@firebug.cl.cam.ac.uk 90562ffd56 Get rid of xenbus_uuid_to_domid - get the frontend id from the node.
We don't want to parse paths we read out of the store to _construct_
other paths and tie down the store layout for no good reason.
Also require the frontend path to exist and be valid before creating
the device.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-18 19:21:09 +00:00
cl349@firebug.cl.cam.ac.uk b3aeb9b7bf Let dev_changed detect devices when a watch fires with a longer node name.
Also improve device cleanup when the dir for a while frontend domain
is removed.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-18 19:15:22 +00:00
cl349@firebug.cl.cam.ac.uk 805274f768 Free memory returned from xenbus_directory call.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-18 19:08:09 +00:00
cl349@firebug.cl.cam.ac.uk 2a10112379 Don't free subtype field unconditionally.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-18 19:07:29 +00:00
cl349@firebug.cl.cam.ac.uk 345c934993 Get device when we find it - fixes refcount leak and is correct.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-18 19:06:51 +00:00
cl349@firebug.cl.cam.ac.uk 8442e529f5 Create devices for the xenbus-bus's.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-18 19:04:47 +00:00
cl349@firebug.cl.cam.ac.uk 17c6a6517e Rename bus names from xenbus* to xen*.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-18 19:01:09 +00:00