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
kfraser@localhost.localdomain
bca5f6d829
linux: Don't use set_fixmap/clear_fixmap after boot-time. It's not
...
allowed and the functions are marked __init on x86/64.
Use HYPERVISOR_update_va_mapping() directly instead.
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-03-07 10:13:39 +00:00
kfraser@localhost.localdomain
91d86d5e62
linux: Remove unnecessary locking from pcifront free_root_bus_devs().
...
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-03-05 14:09:19 +00:00
kfraser@localhost.localdomain
3660aa4b7b
linux 2.6.18: constify instances of 'struct file_operations'
...
Signed-off-by: Jan Beulich <jbeulich@novell.com >
2007-03-05 14:00:05 +00:00
Keir Fraser
3a65ca09cd
linux: Some save/restore simplifications and cleanups.
...
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-03-02 23:01:36 +00:00
kfraser@localhost.localdomain
8ede8a78de
Fix -xen build.
...
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-03-02 16:57:24 +00:00
kfraser@localhost.localdomain
55fcb979e1
linux: xenbus dev write function resets packet data on *all* error conditions.
...
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-03-02 16:29:48 +00:00
kfraser@localhost.localdomain
8666439e6a
linux: Fix xenbus device write function.
...
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-03-02 16:26:56 +00:00
kfraser@localhost.localdomain
2651400e34
tpm: Code style cleanups.
...
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-03-02 16:15:28 +00:00
kfraser@localhost.localdomain
5ba41352cd
[Linux] [TPM driver] Resume frontend after checkpointing
...
This patch implements TPM frontend driver resume after checkpointing a
domain. I also now let the front-end wait for the response from the
TPM until the response is there. A response must come due to the
strict request/response nature of the protocol, but the time until the
responses arrives depends on the type of operation that is executed by
the vTPM. Resending a request is not possible with this type of device.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com >
2007-03-02 16:03:21 +00:00
kfraser@localhost.localdomain
9807b9f09a
linux: Use old-mode of save/restore for uniproc guests (it's faster).
...
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-03-02 16:00:22 +00:00
kfraser@localhost.localdomain
700ba2f69b
linux: allow use of split page table locks
...
This changes netback to use struct page's mapping field instead of the
index one, and the PageForeign logic the other way around. That way,
CONFIG_SPLIT_PTLOCK_CPUS doesn't have to be suppressed anymore for x86.
Signed-off-by: Jan Beulich <jbeulich@novell.com >
2007-03-02 15:59:12 +00:00
kfraser@localhost.localdomain
188ac9feda
linux: Support new 'fast suspend' mode which does not require us to
...
hotplug all auxiliary CPUs.
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-03-02 12:11:52 +00:00
kfraser@localhost.localdomain
ed372f4e41
linux: More save/restore fixes. Fix deadlock of cpu_hotplug_lock vs
...
workqueue_mutex. This is a new deadlock since the workqueue_mutex is
acquired in the workqueue_cpu_calbback() function across
CPU_UP_PREPARE->CPU_ONLINE.
The fix is for us not to rudely grab the cpu_hotplug_lock() during
save/restore -- it's really not necessary.
This patch is applicable to any of our 2.6 kernels, but is absolutely
required from 2.6.18 onwards.
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-02-28 17:55:19 +00:00
kfraser@localhost.localdomain
ed2bd98ac2
linux: Split suspend_mutex into watch_mutex and transaction_mutex.
...
This clarifies their usage and relationship with request_mutex and
response_mutex.
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-02-28 14:26:26 +00:00
kfraser@localhost.localdomain
c70b3e5890
More PV save/restore fixes.
...
Related changesets:
14148:b67c253d1cdb4f502dec2
13519:b4a8000e76db6b4b27341
These three changesets must be applied as a set!
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-02-28 14:13:09 +00:00
kfraser@localhost.localdomain
8c364f217a
linux: Don't allow partial message raeds from xenstore across
...
save/restore. This patch is an essential companion to
13519:b4a8000e76db6b4b27341.
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-02-27 13:43:01 +00:00
Ian Campbell
f380fac05a
[LINUX] Purge include <linux/config.h>. It has been obsolete for some time now.
...
Signed-off-by: Ian Campbell <ian.campbell@xensource.com >
2007-02-23 16:56:45 +00:00