Commit Graph
114 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk 794c430127 The attached patch converts the balloon driver and xend to use
xenstore instead of control messages.

Note: Because there is no way to set a watch on a non-existent key,
this patch includes a workaround to account for the fact that dom0's
store keys are not initialized by the tools before it boots.

Signed-off-by: Dan Smith <danms@us.ibm.com>
2005-08-02 11:21:11 +00:00
smh22@firebug.cl.cam.ac.uk 375d3c927f Revert unintended enabling of grant tables for netback/netfront 2005-08-02 09:26:30 +00:00
vh249@arcadians.cl.cam.ac.uk d1f000ef84 correct wrong variables pass to the set_pte_at macro.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-08-01 16:00:17 +00:00
smh22@firebug.cl.cam.ac.uk d4abe259d4 Manual merge. 2005-08-01 10:48:24 +00:00
smh22@firebug.cl.cam.ac.uk 7b63edab8e Minor clean ups of time.c and partial build fixes for 2.4 2005-08-01 10:45:07 +00:00
kaf24@firebug.cl.cam.ac.uk 7edf4b7901 This patch adds two macros for construction of the
frame_and_sectors field in blkif messages, to eliminate the
"magic shifts" in the blkif code.

It also increases the number of bits representing the sector
number within a page, from 3 to 5, to allow page sizes up to
16K (needed for IA64).

Tested to still work on x86.

Signed-off-by: Matthew Chapman <matthewc@hp.com>
2005-08-01 09:26:51 +00:00
ach61@arcadians.cl.cam.ac.uk b640da2bc5 PDB: roll out changes to ptrace.c and traps.c 2005-07-31 21:45:52 +00:00
kaf24@firebug.cl.cam.ac.uk 8a9db38089 Attached patch adds a DMA zone to xen, also modifies xen_contig_memory()
to ask for DMA pages.
Signed-off-by: srparish@us.ibm.com
2005-07-29 10:31:22 +00:00
kaf24@firebug.cl.cam.ac.uk 654ee452ae ... so it builds again and also add a note to the xen elf header
that this kernel should be booted in shadow-translated mode.
2005-07-29 10:24:06 +00:00
kaf24@firebug.cl.cam.ac.uk c71983a0a5 fix x86_64 domain0 /dev/mem issue
x86_64 miss the define of ARCH_HAS_DEV_MEM, that causes
/drivers/char/mem.c to not show low 1M memory correctly.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
2005-07-29 10:22:03 +00:00
ach61@arcadians.cl.cam.ac.uk a087d98570 PDB: add some additional files 2005-07-28 21:32:13 +00:00
ach61@arcadians.cl.cam.ac.uk 476167d4df PDB: process targets 2005-07-28 21:28:23 +00:00
cl349@firebug.cl.cam.ac.uk fcb76453f3 merge? 2005-07-28 12:34:45 +00:00
cl349@firebug.cl.cam.ac.uk 107f383ae1 Simplify code by acking watch as soon as we read it.
Since watches no longer block anyone, this doesn't change semantics.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-28 12:29:23 +00:00
cl349@firebug.cl.cam.ac.uk 8b3e983883 Simplify code by making in and out pointers internal to xenbus_xs.c
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-28 12:25:13 +00:00
kaf24@firebug.cl.cam.ac.uk 678f2597f6 Fix irq.c warning, from aq. 2005-07-28 09:37:53 +00:00
kaf24@firebug.cl.cam.ac.uk e4dbaf3593 Fix gnttab bug in blkfront.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-07-28 09:10:05 +00:00
cl349@firebug.cl.cam.ac.uk 7aa5afeb6c Always pass around the store machine frame number instead of the linear address.
Also cleanup IOCTL_PRIVCMD_INITDOMAIN_STORE.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-27 17:17:09 +00:00
kaf24@firebug.cl.cam.ac.uk 6e27226763 Fix memory reservation in XenLinux.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-07-27 09:24:51 +00:00
cl349@firebug.cl.cam.ac.uk 7808c397e3 Clean up xenbus code not to use priorities.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 17:38:33 +00:00
cl349@firebug.cl.cam.ac.uk 120e5a3fed Fix case where watch callback unregisters itself: do not try to ack it
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 17:27:26 +00:00
cl349@firebug.cl.cam.ac.uk d151513350 Implement xenbus_dev_error() and xenbus_dev_ok() functions
for better error reporting using the store.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 17:25:57 +00:00
cl349@firebug.cl.cam.ac.uk f9f0de6a9c Scrub initial xenstore page, free xendev structure.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 17:24:22 +00:00
cl349@firebug.cl.cam.ac.uk de1ea907bb Fix locking: probe can be called from several places, so ensure
we lock for it.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 17:22:38 +00:00
cl349@firebug.cl.cam.ac.uk c09136c10a Fix bus watch code, and clean up a little.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 17:19:38 +00:00
cl349@firebug.cl.cam.ac.uk f45352ee46 Note about when device_find is fixed
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 17:18:55 +00:00
cl349@firebug.cl.cam.ac.uk 167875bb34 Modify to assume transactions
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 17:18:11 +00:00
cl349@firebug.cl.cam.ac.uk f1b3a3b311 Do not use device_find: crashes for some reason
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 17:16:55 +00:00
cl349@firebug.cl.cam.ac.uk aeb5e4c445 Fix missing argument rename in xenbus_exists.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 17:15:53 +00:00
cl349@firebug.cl.cam.ac.uk 0302e34615 Grab lock around registering watch.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 17:07:50 +00:00
cl349@firebug.cl.cam.ac.uk 3468eb81a1 Add watch for dynamic add/remove of devices.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 17:07:05 +00:00
cl349@firebug.cl.cam.ac.uk 52af332595 Fix return from xenbus_scanf: returns number scanned, not 0!
Fix xenbus_write args in xenbus_printf
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 17:04:33 +00:00
cl349@firebug.cl.cam.ac.uk c61e87e799 Major xenbus cleanup
1) Make xenbus_* functions first-class citizens, evict xs_ prefix.
2) Add xenbus_scanf and xenbus_printf instead of multiple functions
3) Remove unused code from xenbus.c
4) Use standard debugging macros.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 16:59:40 +00:00
kaf24@firebug.cl.cam.ac.uk a21324269e Fix restart/poweroff properly. From aq. 2005-07-26 10:09:06 +00:00
kaf24@firebug.cl.cam.ac.uk 2e3653cb9b Remove extra definition of DBG in pci/irq.c in XenLinux. 2005-07-25 20:41:31 +00:00
kaf24@firebug.cl.cam.ac.uk f1b4ae738d XenLinux restart/poweroff calls 'reboot' or 'poweroff'
as appropriate.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-07-25 20:32:11 +00:00
vh249@firebug.cl.cam.ac.uk a375a464b8 split deallocation from net_tx_action
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-07-25 17:26:32 +00:00
vh249@firebug.cl.cam.ac.uk d4b94c490c add grant table capabilities to netback and netfront.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-07-25 17:07:31 +00:00
sos22@douglas.cl.cam.ac.uk b6d8dea8bf In 2.6.12-land, do_debug and do_int3 return void. Make sure we don't try
to use their return values anywhere.

Signed-off-by: Steven Smith, sos22@cam.ac.uk.
2005-07-22 14:25:10 +00:00
smh22@firebug.cl.cam.ac.uk a63fbe2fb4 Fix bug.
Signed-off-by: Steven Hand <steven@xensource.com>
2005-07-20 19:45:05 +00:00
kaf24@firebug.cl.cam.ac.uk d122e5411f No need to define io_remap_pfn_range in linux/mm.h. 2005-07-20 17:44:29 +00:00
kaf24@firebug.cl.cam.ac.uk cadfa803a9 Fix wallclock timebase extraction in XenLinux.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-07-19 09:26:18 +00:00
kaf24@firebug.cl.cam.ac.uk bbb0eb3225 First cut of new time interfaces and synchronisation mechanisms.
Based on an initial patch from Don Fry at IBM.
Still TODO: 
 1. Testing
 2. NTP synchronisation
 3. Fix wallclock interface a bit
 4. Support for platform timers other than PIT (e.g., HPET, IBM Cyclone)
 5. Scale 64-bit TSC diffs instead of 32-bit, just for sanity
 6. Error-correcting scale factor is still slightly wrong
 6. More testing
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-07-18 20:22:11 +00:00
kaf24@firebug.cl.cam.ac.uk 6d67f4dff4 Relax the bounce-buffer copying constraints in dma_sync_single_for_*
functions. This fixes certain drivers (e.g., ivtv).
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-07-15 12:52:02 +00:00
iap10@freefall.cl.cam.ac.uk c742c2e652 Update x86_64 -xen config for Linux 2.6.12
Signed-off-by: ian@xensource.com
2005-07-14 23:48:06 +00:00
iap10@freefall.cl.cam.ac.uk ba8ef785e8 Update the -xen default config to Linux 2.6.12
Signed-off-by: ian@xensource.com
2005-07-14 21:03:41 +00:00
kaf24@firebug.cl.cam.ac.uk 83ea48507f Missing quirks.c file. 2005-07-14 14:01:21 +00:00
kaf24@firebug.cl.cam.ac.uk dddd88c891 Auto-disable IRQ balancing/affinity on buggy chipsets.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-07-14 11:09:21 +00:00
kaf24@firebug.cl.cam.ac.uk 41641edf73 Build hotplug by default in dom0. 2005-07-13 08:45:26 +00:00
kaf24@firebug.cl.cam.ac.uk 3a9274f320 The patch attached restores NX/XD support in x86_64 xenlinux. When the
port was being done, Xen did not want to see the bit 63 in ptes, and it
now allows the guests to set it. Also include cleanups (warning when
compiling domU).

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
2005-07-13 08:37:38 +00:00