Commit Graph
752 Commits
Author SHA1 Message Date
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
smh22@firebug.cl.cam.ac.uk 2b039aa937 Fix VBD recovery logic on SMP guests (+ a minor error reporting fix for save)
Signed-off-by: Steven Hand <steven@xensource.com>
2005-12-01 20:43:04 +01:00
kaf24@firebug.cl.cam.ac.uk da533ceb07 Implement generic notiication hold-off in the ring macros
(ring.h). Move net and blk split drivers to use it.
blktap probably needs some work. :-)

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-01 20:23:07 +01:00
kaf24@firebug.cl.cam.ac.uk 96428d33d9 Define explicit evtchn_port_t type (32 bits) and plumb up
to user space thru /dev/xen/evtchn.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-01 15:22:22 +01:00
vhanquez@kneesa.uk.xensource.com 23f0fe07cd fix the console when only XEN_PHYSDEV_ACCESS is Yes.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-12-01 07:31:50 +00:00
kaf24@firebug.cl.cam.ac.uk b242b20898 Move net split driver onto ring.h generic rings.
No backend should SHARED_RING_INIT(): that's the frontend's job.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-01 11:27:27 +01:00
iap10@freefall.cl.cam.ac.uk 8d68c69875 Add a new /proc/xen file called 'capabilities'. Currently, when read in dom0 it will return 'control_d', and be empty when read in a guest. This provides a convenient way to allow the root user to detect whether they're running in a guest or dom0, and e.g. gate whether to start xend. In future, when we add more fine grained capabilities we will add other details into this file.
Signed-off-by: ian@xensource.com
2005-12-01 02:43:04 +01:00
iap10@freefall.cl.cam.ac.uk 33ea7cb0ee Improve the tls warning message to mention that the best soloution is to install a 'xen-friendly' glibc.
Signed-off-by: ian@xensource.com
2005-12-01 02:36:46 +01:00
djm@kirby.fc.hp.com 39f79d3fc8 devmem.c no longer needed in drivers/xen/core 2005-11-30 16:17:53 -06:00
kaf24@firebug.cl.cam.ac.uk ba3f55e57a GNTTABOP_map_grant_ref returns error status and handle as
separate fields. Update callers for new interface. Also
use int16_t as standard error code type on all public
interfaces.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-30 17:24:27 +01:00
kaf24@firebug.cl.cam.ac.uk b2de462a06 Public interface cleanups. Widen some fields in public
interface defintions for future extensibility. In particular,
grant references are now 32 bits and this has some knock-on
effects on split-driver interfaces.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-30 16:03:05 +01:00
kaf24@firebug.cl.cam.ac.uk c52334688d Add ATA-over-Ethernet as a module to the default 32-bit -xen config
(it is already included in the default 64-bit -xen config).

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-30 12:13:53 +01:00
smh22@firebug.cl.cam.ac.uk 7086b5730b Cleanup backend block device logic under save/restore; this should
fix the issues some people have seen with segfaults in vbd_translate 
and/or user-space hangs. 

Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-29 14:50:30 +01:00
rread@ubuntu.eng.hq.xensource.com 7376dc0204 Make psmouse module builtin.
Signed-off-by: Robert Read <robert@xensource.com>
2005-11-28 12:16:27 -07:00
kaf24@firebug.cl.cam.ac.uk 9bd97f28fa Bundle vcpu_time and vcpu_info structures together into a single
structure that is 64 bytes on x86. This ensures that indexing into
the array is fast (power-of-two size) and that accesses are cache
friendly (cache line size is usually 32 or 64 bytes).

Rename vcpu_data to vcpu_info, vcpu_time to vcpu_info.time.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-28 19:48:54 +01:00
Michael.Fetterman@cl.cam.ac.uk f72ca19a29 merge 2005-11-28 15:30:48 +01:00
Michael.Fetterman@cl.cam.ac.uk 81c55aa8d7 merge
Keir did a similar change earlier, but my version removed some special case
code as well, now that __gpfn_to_mfn() can protect itself.
2005-11-28 15:22:47 +01:00