Commit Graph
768 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk 2eb236c17e Remove FIX_RSDP_PAGE. Access RSDP via the 'isamap' of low 1MB.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-20 18:45:29 +01:00
kaf24@firebug.cl.cam.ac.uk 3f60590ca4 Remove automatic I/O-fault handling in XenLinux. It's now
handled by Xen itself.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-20 18:34:58 +01:00
kaf24@firebug.cl.cam.ac.uk 2cafb4b4e9 Small fix to the error-return path after calling
__copy_to_user in the swiotlb sync function. We cannot
immediately exit the sync function as there may be tail work
to do (e.g., kunmap_atomic). In fact, doing nothing is the
right thing to do and is sufficient to avoid compiler
warnings about not checking the __copy_to_user return value.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-17 02:11:54 +01:00
kaf24@firebug.cl.cam.ac.uk 97c947f209 Work aroudn swiotlb issue where a read-only host buffer is
mapped for DMA_BIDIRECTIONAL streaming access by certain
low-level drivers. This causes an unnecessary copy to the
host buffer that previously caused a fatal kernel page fault.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-17 00:43:00 +01:00
chris@ubuntu.eng.hq.xensource.com 3c10a56738 Add and use write_ldt_entry, as seen in later linux kernel versions.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-12-15 16:17:13 -07:00
kaf24@firebug.cl.cam.ac.uk 62e852457f Remove unnecessary statement in evtchn_do_upcall.
Signed-off-by: Xin Li <xin.b.li@intel.com>
2005-12-15 20:46:08 +01:00
emellor@leeni.uk.xensource.com 30e49102ed Split talk_to_otherend into two pieces, one for getting the otherend details,
and one for registering the watch on the otherend's path.  This means that we
get the fix intended by xen-unstable changeset 8370:39a616126104 (i.e. we only
register the watch once drv->probe() has succeeded), but without breaking block
devices.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-15 18:38:49 +00:00
emellor@leeni.uk.xensource.com af150ef12a Merged. 2005-12-15 13:49:19 +00:00
emellor@leeni.uk.xensource.com b848214f0d Put watch on device node only if probe was sucessful.
This fix segfault on netfront when creating more than three network devices on
domU.

Signed-off-by: Murillo F. Bernardes <mfb@br.ibm.com>
2005-12-15 13:38:16 +00:00
kaf24@firebug.cl.cam.ac.uk d8d3bd91d7 Give the xencons tty driver a proper name.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2005-12-14 19:41:06 +01:00
chris@ubuntu.eng.hq.xensource.com a76c7da6d9 merge? 2005-12-13 19:05:57 -07:00
chris@ubuntu.eng.hq.xensource.com 45fb552eb2 Make set_pte_at and set_pte_at_sync macros instead of inline functions.
This avoids having to include sched.h to get a definition of init_mm.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-12-13 19:04:14 -07:00
kaf24@firebug.cl.cam.ac.uk f67ccb0614 Clarify the BSD-ish licenses for the blk and net front-end drivers so
that it is clear they are fully GPL-compatible and satisfy the free
software definitions in include/linux/module.h.

Signed-off-by: Keir Fraser <keir@xensource.com>
Signed-off-by: Stephen Tweedie <sct@redhat.com>
2005-12-14 01:25:07 +01:00
kaf24@firebug.cl.cam.ac.uk 98d5931e01 Set kcons index to -1 (i.e., acquire all device indexes).
This reverts part of the previous changeset, which prevented
console=tty0 from doing the obvious thing in a domU guest
(i.e., send output on the virtual console). This is because
the tty index ends up being 1.

I don't think setting the index to other than -1 really
buys us anything anyway. Any other driver that specifies
a name that conflicts with us will almost certainly set their
index to -1, so we cannot avoid conflicts by choosing a
more restrictive (singleton) value.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-13 22:12:02 +01:00
kaf24@firebug.cl.cam.ac.uk 999b6fd3b9 Most drivers have their own range of devices they claim and the tty
index is identical to the device file index.  For us, the tty index is
always zero regardless of the device file index.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2005-12-13 22:05:18 +01:00
kaf24@firebug.cl.cam.ac.uk 3e61615263 Fix unmask_evtchn() when the port is bound to a different
VCPU.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-13 19:20:29 +01:00
kaf24@firebug.cl.cam.ac.uk adec4de131 Fix rx buffer allocation in netfront. The final allocation size
was ending up bigger than PAGE_SIZE.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-13 03:47:47 +01:00
rread@ubuntu.eng.hq.xensource.com d1bab24950 Increase the default ramdisk size to 16384 to support SLES initrds. 2005-12-12 11:45:53 -07:00
kaf24@firebug.cl.cam.ac.uk 523283aa07 Fix ia64 blkback build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-11 00:11:44 +01:00
kaf24@firebug.cl.cam.ac.uk 9b10397406 Initilaise new cpu's processed-time value from cpu0's
timestamp. The new cpu's timestamp is not initialised yet,
so should not be used.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-10 16:21:43 +01:00
kaf24@firebug.cl.cam.ac.uk 92fb778f03 Fix blkback to build on ia64.
Signed-off-by: Dan Magenheimer <dan.magenheimer@hp.com>
2005-12-09 09:29:52 +01:00
kaf24@firebug.cl.cam.ac.uk 98bea19681 Allocate separate vm areas for rx and tx rings in netback
driver as part of preparation for ia64 support.

Signed-off-by: Dan Magenheimer <dan.magenheimer@hp.com>
2005-12-08 16:58:41 +01:00
kaf24@firebug.cl.cam.ac.uk 3361d4d041 Support CFQ scheduling of guest block requests by creating
a kernel thread per blkif connection. General cleanup work
in blkback driver.

Signed-off-by: Gerd Knorr <kraxel@suse.de>
2005-12-08 16:53:53 +01:00
kaf24@firebug.cl.cam.ac.uk e50c7df410 Make balloon driver arch-neutral.
Signed-off-by: Dan Magenheimer <dan.magenheimer@hp.com>
2005-12-08 15:33:10 +01:00
emellor@leeni.uk.xensource.com 11d655cef6 Tidy up use of environment variables in xenbus-hotplug interaction.
I've changed this to only write "backend" (xenbus_backend.root) into
XENBUS_BASE_PATH.  After appending XENBUS_TYPE (also exported) you can
construct the "base path" easily in the scripts.  I've completely
removed writing XENBUS_FRONTEND_ID in favour of reading it from the
store at "$XENBUS_PATH/frontend-id".

Avoid re-reading the store over and over for the frontend domain's vm-path.

The patch also fixes a memory leak in backend_bus_id where we
leak the memory referenced by frontend if the function succeeds.

This work is by Christian Limpach.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-07 11:57:26 +00:00
kaf24@firebug.cl.cam.ac.uk b8477f0215 Fix the request size for a full page-sized skbuff in netfront
driver (must allow 16 bytes for dev_alloc_skb headroom).

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-06 15:52:15 +01:00
kaf24@firebug.cl.cam.ac.uk 107808a452 Fix netfront to accept received packets at a wider range of
offsets within a memory page. Also fix, skb realloc-and-copy
when copying really is required (we were forgetting whether
the packet data is known valid, and checksumming packets that
do not have the csum field filled in).

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-06 15:02:54 +01:00
cl349@firebug.cl.cam.ac.uk f41cb4d2cc Merge 2005-12-04 18:24:24 +01:00
kaf24@firebug.cl.cam.ac.uk 1e4b462e21 Pull requests from blkfront into blkback a bit more
aggressively, to keep the scheduling pipeline filled.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-04 18:20:41 +01:00
cl349@firebug.cl.cam.ac.uk c4b7794669 Make version strings consistent across all interfaces.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-12-04 18:16:33 +01:00
cl349@firebug.cl.cam.ac.uk fac70b835d Update -xen config file to include newgen megaraid and qla scsi drivers.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-12-04 18:12:18 +01:00
kaf24@firebug.cl.cam.ac.uk 1e56ea4a43 Fix request-notification holdoff in blkback. New code is
more correct and clearer in intent.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-03 21:53:01 +01:00
kaf24@firebug.cl.cam.ac.uk c06235d49f Remove scary warning message about 'breaking irq affinity'
when hot-unplugging cpus. It is a harmless side-effect of
running the irqbalance daemon in user space.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-03 21:17:11 +01:00
kaf24@firebug.cl.cam.ac.uk 395ae89f03 Always initialise a swiotlb for domain0. Make it a small
aperture (2MB) for small systems (< 2GB).

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-03 19:09:19 +01:00
cl349@firebug.cl.cam.ac.uk f9165bed2f Fix block backend teardown when the device didn't setup completely.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-12-03 13:36:22 +01:00
kaf24@firebug.cl.cam.ac.uk ad7f8262e3 Fix blkback request notification holdoff. req_cons must be
updated before make_response() is called. This fixes attaching
ramdisk-backed vbds to a blkfront.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-03 11:41:49 +01:00
kaf24@firebug.cl.cam.ac.uk 2e611ccc22 Merge with xen-ia64-unstable.hg 2005-12-03 10:44:38 +01:00
kaf24@firebug.cl.cam.ac.uk 25df6829eb Using a slow serial console with sync_console on SMP leaves an
unusable system: it gets into a flood of

Timer ISR/0: Time went backwards: delta=-3566279 cpu_delta=16433721
shadow=2019998373 off=420435384 processed=2444000000
cpu_processed=2424000000
 0: 2424000000
 1: 2444000000

messages which swamps the console and leaves things almost, but not
quite, completely hung.  It is a simple matter to ratelimit these
printks, which completely eliminates the problem.
2005-12-03 10:44:01 +01:00
djm@kirby.fc.hp.com 023c80945b Revert to simpler ia64 defconfigs, generic one causes loopback failures 2005-12-02 15:52:41 -06:00
djm@kirby.fc.hp.com 56aeec5ab6 Merge 2005-12-02 12:52:25 -06:00
emellor@leeni.uk.xensource.com 895f3158e2 Merged. 2005-12-02 15:48:55 +00:00
emellor@leeni.uk.xensource.com d1dd4f46f5 Fix the block-sharing check for physical devices by using a lock to serialise
the check, reading from the store rather than /sys, and checking whether the
VM for apparently-conflicting uses is actually the same (i.e. this is a
migration or a reboot in progress).

This fixes recent failures in 12_block_attach_shared_domU and recloses bug #331.

This fix includes particularly skanky path slicing inside xenbus_probe, which
it would be nice to remove very soon.

The loopback device check still suffers from the problem that filenames over
64 characters long are truncated.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-02 15:48:44 +00:00
kaf24@firebug.cl.cam.ac.uk af71f48393 More console-related cleanups.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-02 16:26:57 +01:00
kaf24@firebug.cl.cam.ac.uk 8d547cb252 Simplify console driver and avoid unnecessary spinning in the
transmit handler.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-02 16:14:20 +01:00
iap10@freefall.cl.cam.ac.uk 4d6d8dba40 Disable devfs from the -xen configs. It's obsolete and was causing problems for some users.
Signed-off-by: ian@xensource.com
2005-12-02 15:37:31 +01:00
sos22@douglas.cl.cam.ac.uk c10797216b Avoid a hang when probing the partition table on imported block
devices.  If you export a device so the importing domain sees it as a
whole disk rather than a partition, then add_disk will try to probe
its partition table.  However, we were calling add_disk before the
device was properly connected, and then not connecting it until
add_disk had finished.  This meant that we ended up never actually
connecting the device, and any accesses to it would then hang.

Fix this by not calling add_disk until we're connected.

Signed-off-by: Steven Smith, sos22@cam.ac.uk
2005-12-02 15:16:37 +01:00
kaf24@firebug.cl.cam.ac.uk 8afc538db6 Blkif request notifications use generic ring req_event holdoff
mechanism rather than custom mechanism.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-02 13:27:39 +01:00
kaf24@firebug.cl.cam.ac.uk eedace537e Clean up netif messages. Remove bitfields, and create
extensible flag fields in tx requests and rx responses, in
place of specific csum_blank/csum_valid bitfields.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-02 13:10:25 +01:00
kaf24@firebug.cl.cam.ac.uk 442ca37bf1 Fix tpm split driver to include grant-table defintions.
Signed-off-by: Stefan Beger <stefanb@us.ibm.com>
2005-12-02 11:10:01 +01:00
kaf24@firebug.cl.cam.ac.uk fbbeac4db8 While working bug #143, it came to my attention that no verbose error is
loged if the dom0 kernel mangles a packet and tries to checksum
offload it.  

This should let the user know what is going wrong (instead of silently
dropping the packet). 

Signed-off-by: Jon Mason <jdmason@us.ibm.com>
2005-12-02 11:08:24 +01:00