Commit Graph
6252 Commits
Author SHA1 Message Date
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
cl349@firebug.cl.cam.ac.uk c2425f6927 Make probe less chatty.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-18 18:56:47 +00:00
cl349@firebug.cl.cam.ac.uk 096a4beccf merge? 2005-08-18 18:55:13 +00:00
cl349@firebug.cl.cam.ac.uk 7f434cccbf Update probe code for backend layout.
Backend directories are of form backend/<type>/<frontend-uuid>/<id>.
This extra level makes an asymmetry with front ends (device/type/id) and
are too long to make nice bus-ids under Linux, but the code isn't too
horrible, and an OS which only wants to be a guest doesn't need to implement
it. It allows backends to calculate the front-end path directly, which
is a nice benefit.
Also: subtype matching is tightened: they must match exactly. That way a future
variant which requires a specific driver will not match current drivers.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-18 18:54:38 +00:00
kaf24@firebug.cl.cam.ac.uk 4ceac099b8 Make sure to cmpxchg entire pte on emulated ptwr path.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-18 18:17:08 +00:00
kaf24@firebug.cl.cam.ac.uk c1a3a8bd90 Fix emulated writable pagetable updates where access is
less than a full pte and operation requires cmpxchg.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-18 18:02:46 +00:00
kaf24@firebug.cl.cam.ac.uk 91bad3932c Fix direct_remap_area_pages() to handle pagetables
above 4GB.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-18 17:46:26 +00:00
kaf24@firebug.cl.cam.ac.uk df3de397c7 Fix __get_user() and friends to work correctly for
64-bit quantities on x86/32. Should fix writable
pagetables on PAE.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-18 17:04:48 +00:00
kaf24@firebug.cl.cam.ac.uk f26a97ed03 Clean up bootmem initialisation for x86/64. Question still
remains over why boot fails if we try to free up the bottom
1MB of pseudophysical memory...

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-18 16:04:00 +00:00
kaf24@firebug.cl.cam.ac.uk ba19712966 Fix Xen patches to Linux so that they use pfn_pte() and
pfn_pte_ma() constructors, rather than splicing together
ptes manually. Not only is this cleaner, it also ensures
that the NX/XD bit is safely masked off on systems that do
not support it.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-18 15:01:03 +00:00
kaf24@firebug.cl.cam.ac.uk 68bcc33d2e Tiny formatting tweak in addition to previous changeset. 2005-08-18 14:33:21 +00:00
kaf24@firebug.cl.cam.ac.uk a0649ba6c2 Clean up formatting of Xen crash messages.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-18 14:26:36 +00:00
iap10@freefall.cl.cam.ac.uk c2e99d4489 Add SK98LIN driver to default -xen0 Linux configs.
Signed-off-by: ian@xensource.com
2005-08-18 14:18:15 +00:00
iap10@freefall.cl.cam.ac.uk 94c199e8fc Make antispoof default to 'no' in network-script as the default in xend is 'no'. Having them different only causes confusion.
Signed-off-by: ian@xensoure.com
2005-08-18 14:17:22 +00:00
vh249@arcadians.cl.cam.ac.uk fd2312006b fail nicely when passing unknown option to xm list
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-08-18 11:45:54 +00:00
kaf24@firebug.cl.cam.ac.uk 597ecd67a9 Fix range_straddles_boundary() check to exclude regions that
were allocated with xen_create_contiguous_region(). Such areas
do not require bounce buffers (swiotlb).

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-18 10:41:55 +00:00
jrb44@plym.cl.cam.ac.uk 2c1e4b63b9 Enable IP_PNP support in 64bit domU (needed for xm ip= etc.)
Signed-off-by: James Bulpin <james@xensource.com>
2005-08-18 10:22:08 +00:00
kaf24@firebug.cl.cam.ac.uk f3d1875ab6 Fix the SWIOTLB to correctly match on bus addresses.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-18 09:47:04 +00:00
vh249@arcadians.cl.cam.ac.uk 10d9dd27f4 fail domU creation if memory need couldn't be succeed after ballooning out dom0
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-08-18 01:13:49 +00:00
iap10@freefall.cl.cam.ac.uk 415a0de9bc Enable MATCH_PHYSDEV netfilter support as a module.
Signed-off-by: iab@xensource.com
2005-08-17 23:11:56 +00:00
iap10@freefall.cl.cam.ac.uk d245fc4186 Fix e820 array stack overflow
I don't see the problem on machine that I typically use, but I found and
fixed the problem on a big machine. It was causing a stack overflow. If
you look at the current code, it's a bit dangerous, see => part. This
patch fixes it.
From: "Nakajima, Jun" <jun.nakajima@intel.com>
Signed-off-by: ian@xensource.com
2005-08-17 22:01:24 +00:00
kaf24@firebug.cl.cam.ac.uk 7501cca885 We found machines with >32 E820 memory map entries, where Xen fails to
boot (but Linux does boot fine). The native Linux (both x86 and x86_86)
already has:

#define E820MAX 128             /* number of entries in E820MAP */

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
2005-08-17 18:22:18 +00:00
kaf24@firebug.cl.cam.ac.uk 4ce65049c8 Fix vmalloc_fault() path for x86/64 XenLinux.
There may be a deeper underlying problem w.r.t pagetable
initialisation at start of day, but this simple fix is
a good workaround until we have time to investigate
properly.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-17 18:14:46 +00:00
kaf24@firebug.cl.cam.ac.uk 81cf88dc9c Fix the skbuff allocator for multi-page buffers.
pci-dma.c still needs fixing to recognise contiguous
multi-page buffers.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-17 16:53:30 +00:00
kaf24@firebug.cl.cam.ac.uk 88f95d50cf Formatting cleanup. 2005-08-17 15:34:58 +00:00
vh249@arcadians.cl.cam.ac.uk 206e4c4033 have a useful line reporting when IOMMU_BUG_ON trigger
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-08-17 15:09:31 +00:00
vh249@arcadians.cl.cam.ac.uk 9a0d977633 fix missing swiotlb.c file in linux build after running cleanup.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-08-17 14:23:16 +00:00
kaf24@firebug.cl.cam.ac.uk 806ac06852 Fix module build by removing duplicate EXPORT_SYMBOL of
dma_alloc_coherent and dma_free_coherent.
2005-08-17 13:34:42 +00:00
kaf24@firebug.cl.cam.ac.uk 34f71bcc7c Allocate_empty_lowmem_regions available to non-priv domains
and to modules. From Ross Mcilroy.
2005-08-17 13:33:55 +00:00
iap10@freefall.cl.cam.ac.uk 4a58a25381 merge 2005-08-17 12:30:04 +00:00
iap10@freefall.cl.cam.ac.uk 34ef247301 Another tweak to the network-bridge script.
Signed-off-by: ian@xensource.com
2005-08-17 12:29:34 +00:00
cl349@firebug.cl.cam.ac.uk 9dc02cdad0 merge? 2005-08-17 12:26:05 +00:00
cl349@firebug.cl.cam.ac.uk fb008da966 Restore domains with a different uuid than they had.
Needed for migration to localhost and migration between hosts with
a shared/distributed xenstore.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-17 12:25:50 +00:00
kaf24@firebug.cl.cam.ac.uk 55b8547307 Python build fix. 2005-08-17 10:35:39 +00:00
cl349@firebug.cl.cam.ac.uk f9c5a6235f Recreate watches on domain restore.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-17 10:18:34 +00:00
cl349@firebug.cl.cam.ac.uk 6b2e541096 Clear "/control/shutdown" node on domain restore.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-17 10:18:13 +00:00
kaf24@firebug.cl.cam.ac.uk 9c07496f46 xenbus build and license fixes. 2005-08-17 09:59:04 +00:00
cl349@firebug.cl.cam.ac.uk 208cd71bf7 Add support for XENSTORED_TRACE to enable trace output from xenstored.
Set XENSTORED_TRACE in /usr/sbin/xenstored's environment to enable the
trace output.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-17 09:50:26 +00:00
cl349@firebug.cl.cam.ac.uk 135f79ef6f Fix compile warning from zero-length printf format string.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-17 08:52:04 +00:00
cl349@firebug.cl.cam.ac.uk f5eca0c88e merge? 2005-08-17 08:27:16 +00:00
cl349@firebug.cl.cam.ac.uk 72593432a5 Avoid spurious "Ignoring shutdown request" messages, fix memory leak and simplif
y code.
Also fix whitespace.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-17 08:26:58 +00:00
iap10@freefall.cl.cam.ac.uk 8b799c9ee6 Yet another work-around in the network-bridge script
From: Zhai, Edwin [edwin.zhai@intel.com]
Signed-off-by: ian@xensource.com
2005-08-16 20:00:53 +00:00