Commit Graph
1013 Commits
Author SHA1 Message Date
kfraser@localhost.localdomain e1064ed499 linux blkback/blktap: Request/response identifiers are u64, not long.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-05-01 10:08:36 +01:00
Jake Wires adfd9f4561 Ensure blk{tap/back}'s vm_area is not freed twice on error case.
Signed-off-by: Jake Wires <jwires@xensource.com>
2007-04-27 17:54:06 -07:00
kfraser@localhost.localdomain 6937300952 netback: Copy skbuffs that are presented to the start_xmit() function
with a multi-page head buffer. The new skbuff will not have a
multi-page head buffer, which is a necessary restriction until this is
supported by the internals of the netback driver.
Signed-off-by: Steven Smith <ssmith@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-23 16:37:03 +01:00
kfraser@localhost.localdomain e30b0f0e5e netfront: use skb.cb for storing private data
Netfront's use of nh.raw and h.raw for storing page+offset is a bit
hinky, and it breaks with upcoming network stack updates which reduce
these fields to sub-pointer sizes.  Fortunately, skb offers the "cb"
field specifically for stashing this kind of info, so use it.

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Chris Wright <chrisw@sous-sol.org>
Cc: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2007-04-17 13:21:22 +01:00
Keir Fraser 6ba4666914 linux netfront: Fixes to locking after lockdep-derived changes, as
suggested by Herbert Xu.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-13 15:24:42 +01:00
kfraser@localhost.localdomain 31fa3c4208 linux: netfront contains two locking problems found by lockdep:
1. rx_lock is a normal spinlock, and tx_lock is an irq spinlock.  This
   means that in normal use, tx_lock may be taken by an interrupt
   routine while rx_lock is held.  However, netif_disconnect_backend
   takes them in the order tx_lock->rx_lock, which could lead to a
   deadlock. Reverse them.
2. rx_lock can also be used in softirq context, so it should be
   taken/released with spin_(un)lock_bh.

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
2007-04-13 11:28:04 +01:00
kfraser@localhost.localdomain 69a9bab277 HVM: Do not watch control/shutdown to force domain shutdowns when PV
drivers are not present. The feature-foo mechanism does not actually
work after save/restore since the fields do not get rewritten. And it
doesn't work when we actually need the guest to be shutdown through
Xen (e.g., on suspend). Since we can quite reasonably assume that the
only entity to screw with control/shutdown is xend, and since the one
place that does that now explicitly handles unenlightened HVM guests,
we can simply strip all this stuff out.

This has the nice benefit of making HVM save/restore with PV drivers
much more reliable.

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-12 12:12:56 +01:00
kfraser@localhost.localdomain 0fd1484f34 linux: Quieten blkfront output.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-11 14:34:08 +01:00
kfraser@localhost.localdomain 30fbfa471f PV-on-HVM: Fixes for module loading.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-11 09:29:00 +01:00
kfraser@localhost.localdomain fc91db2baf PV-on-HVM: More save/restore fixes.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-11 09:16:04 +01:00
kfraser@localhost.localdomain 083ba719d9 linux: Fix an error path in save/restore code.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-10 20:00:45 +01:00
kfraser@localhost.localdomain 38ad8d2a5c linux: Fix IRQ disable/enable logic across save/restore.
stop_machine_run() executes our callback function with interrupts
disabled.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-10 18:49:20 +01:00
kfraser@localhost.localdomain b9526a2fbd linux: Fix reboot.c after PV-on-HVM changes.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-10 15:35:37 +01:00
kfraser@localhost.localdomain 20f2780026 PV-on-HVM: Fixes for save/restore. Also gets rid of separate modules
reboot.ko and xenbus.ko. These are now part of xen-platform-pci.ko.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-10 15:31:53 +01:00
Ian Campbell 93d1b5695a LINUX: PVonHVM: Fixes to build with kernels back to 2.6.5.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-04-05 15:38:09 +01:00
kfraser@localhost.localdomain aeb2e1298b PV-on-HVM: Add new ioreq 'invalidate' for zapping ioemu-dm mapccahe
after balloon operations in an HVM guest.

This removes the I/O port hack from the guest OS, and from ioemu.

Also we flush on reservation *increases* as well as decreases. This is
necessary until qemu-dm can demand-fault page mappings into existing
valid buckets.

Signed-off-by: Steven Hand <steven@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-05 14:29:18 +01:00
kfraser@localhost.localdomain e1290b1524 linux: simplify and perform checking of multicall status
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-04-05 10:43:50 +01:00
kfraser@localhost.localdomain c93368e0fb linux: make compatibility config options more scalable
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-04-05 08:58:32 +01:00
Steven Hand 1b46e1faf3 Fix hvm balloon driver; missed this hunk in last checkin.
Signed-off-by: Steven Hand <steven@xensource.com>
2007-04-05 08:24:56 +01:00
Keir Fraser ed34f48aa8 Various cleanups and fixes for PV-on-HVM drivers.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-04 21:49:04 +01:00
Steven Hand 1d3e27e802 Initial check-in to support PV balloon driver within HVM guests.
Still todo:

 - fix mapcache invalidation (should happen in Xen)
 - support 32-on-64 mode correctly

Signed-off-by: Steven Hand <steven@xensource.com>
2007-04-04 19:59:10 +01:00
Keir Fraser 75ba97629b linux: Remove a few redundant config options. Build util.c for ia64
and ifdef out a couple of functions that are not yet fully generic.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-31 19:02:09 +01:00
Keir Fraser f24c3877e5 linux: Avoid use of ptep_get_and_clear_full name as it's a macro on
some architectures.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-31 17:22:46 +01:00
Keir Fraser c15c303a40 linux gntdev: Mark x86-specific code as such with ifdef.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-31 16:39:14 +01:00
Keir Fraser 990f0419bd linux: User-space grant table device.
A character device for accessing (in user-space) pages that have been
granted by other domains.

Signed-off-by: Derek Murray <Derek.Murray@cl.cam.ac.uk>

Fix ioctl interface to be 32/64-bit invariant. Move xen_class
mechanism to common util.c.

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-31 13:53:24 +01:00
Ian Campbell ea1303c633 [LINUX] Explcitly include linux/mutex.h in files which use mutexes, rather then
relying on an include via some other header.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-03-30 17:33:31 +01:00
Tim Deegan 9dd742c907 [HVM] Save/restore: PV-on-HVM driver save/restore support
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
2007-03-29 16:27:52 +00:00
Keir Fraser abaff6993d pciback: Devices can lose config space info on D3->D0 transition, yet
they may not (and even if they try, can not) restore the BARs. Since
Linux does not do this for us, pciback must do it for itself manually.

Possible todo: Restore all first 64 bytes of the config space?

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-28 20:19:11 +01:00
kfraser@localhost.localdomain 6a6ebb9210 linux pciback: Proper fix for build failure.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-28 15:01:24 +01:00
kfraser@localhost.localdomain 573fcbc6f4 linux: Fix the pciback build (temporary hack).
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-28 14:42:54 +01:00
kfraser@localhost.localdomain 8588d662d4 xenbus: check function return values of functions declared with
__must_check post-2.6.18.

This implies completely suppressing frontend/backend operations if the
respective bus or device registration failed.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-28 13:56:22 +01:00
kfraser@localhost.localdomain 3352268c6c pciback: check function return values of functions declared with
__must_check post-2.6.18.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-28 13:55:01 +01:00
kfraser@localhost.localdomain 2405a261cd linux evtchn: Read function in evtchn driver requires locking.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-28 13:52:03 +01:00
Christian Limpach a712e471e2 [linux] Fix xenbus device to allow replies larger than 4096 bytes.
Also fix reply_queue mutex across fragmented replies and for concurrent
readers.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-03-28 11:01:58 +01:00
kfraser@localhost.localdomain d0e5cf5462 linux: Fix for missing response to XS_UNWATCH request.
From: Magnus Carlsson <magnus@galois.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-27 16:19:25 +01:00
kfraser@localhost.localdomain 2ebb7bdf0d linux: Fix a compiler warning (unused local variable).
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-27 11:54:16 +01:00
kfraser@localhost.localdomain f326023b83 xenbus: Clarify and simplify barrier usage.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-16 10:42:25 +00:00
kfraser@localhost.localdomain 4da77d5b3f net back: Quieten loud error path.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-15 14:51:32 +00:00
Jake Wires 5fc295e4de [BLKTAP] remove spurious error message
Signed-off-by: Jake Wires <jwires@xensource.com>
2007-03-14 14:18:51 -07:00
kfraser@localhost.localdomain 79ae7e51e1 linux: Adjust memory allocation condition in netback to reduce memory
pressure on Xen and avoid unnecessarily stalling receives.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-12 14:55:02 +00:00
kfraser@localhost.localdomain 415ecbe777 linux: No need to manually bring VCPUs online across 'fast' save/restore.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-12 14:11:43 +00:00
kfraser@localhost.localdomain e260cd0a07 The Xen console intercepts ^O and prevents it from propagating
through to the guest.  However, ^O is a useful key in bash and in
Emacs.  This patch changes the console to pass a single ^O
through to the guest when it is pressed twice.

Signed-off-by: Ben Pfaff <blp@cs.stanford.edu>
2007-03-12 11:04:34 +00:00
kfraser@localhost.localdomain aca8807ff0 Fix valid_phys_addr_range() prototype of xen /dev/mem.
The second argument is size_t, not size_t *.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-03-12 11:03:07 +00:00
kfraser@localhost.localdomain ac4fb3c4ec pci back: Various fixes.
- remove superfluous call to pciback_field_is_dup()
- fix a variable type mismatch in pciback_field_is_dup()
- make readability improvements by using the OFFSET macro
- revises quirk data output via the sysfs quirks node so that
- displayed offset information includes base_offset.

Thanks to Jambunathan K. for giving such specific bug diagnosis.

Signed-off-by: Chris Bookholt <hap10@tycho.ncsc.mil>
2007-03-10 17:01:21 +00:00
kfraser@localhost.localdomain 04710d73b0 linux: Use new time hypercalls.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-09 19:36:24 +00:00
kfraser@localhost.localdomain 16ea519d6c linux: Upgrade to latest Xen interface version (0x00030205).
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-09 11:44:31 +00:00
kfraser@localhost.localdomain f064d42ef8 pci back: Fix registration of of filters on subsections of config space.
Found by Jambanuthan K.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-09 09:21:31 +00:00
kfraser@localhost.localdomain cf3e43db4a linux: Remove an unused data structure from TPM frontend.
Some more code style changes.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-03-08 16:26:17 +00:00
kfraser@localhost.localdomain 12ace65c63 netback: Disable debug interrupt (accidentally left enabled in
previous checkin).
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-07 16:16:09 +00:00
kfraser@localhost.localdomain ef9e4decc4 linux: Use fake carrier flag for netfront/netback rather than the real
netif_carrier_XXX() functions. This makes network bringup much faster.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-07 16:00:47 +00:00