xen.git
20 years agoMake directories implicitly for mkdir and write.
cl349@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 19:52:13 +0000 (19:52 +0000)]
Make directories implicitly for mkdir and write.
Change directory code: make then move (safer than delete-if-fail).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agog/c extra test.
cl349@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 19:48:28 +0000 (19:48 +0000)]
g/c extra test.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoPut the call to notifier_call_chain() back in do_xenbus_probe().
cl349@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 19:17:46 +0000 (19:17 +0000)]
Put the call to notifier_call_chain() back in do_xenbus_probe().
This fixes some dom0 activities, such as ballooning, sysrqing,
and cpu hotplugging.
Signed-off-by: Dan Smith <danms@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 18:27:22 +0000 (18:27 +0000)]
merge?

20 years agoxenstat/xentop merge.
cl349@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 18:25:51 +0000 (18:25 +0000)]
xenstat/xentop merge.

20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 18:10:21 +0000 (18:10 +0000)]
merge?

20 years agog/c vbd active.
cl349@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 18:09:54 +0000 (18:09 +0000)]
g/c vbd active.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix non-hotplug i386 build. Spotted by Rik van Riel.
kaf24@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 17:54:38 +0000 (17:54 +0000)]
Fix non-hotplug i386 build. Spotted by Rik van Riel.

20 years agoRemove blkback 2.4 support since we don't support 2.4 dom0 anymore.
cl349@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 17:51:57 +0000 (17:51 +0000)]
Remove blkback 2.4 support since we don't support 2.4 dom0 anymore.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 17:33:11 +0000 (17:33 +0000)]
merge?

20 years agoMinor cleanup.
cl349@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 17:32:44 +0000 (17:32 +0000)]
Minor cleanup.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoBuild topology.c into x86/64 xenlinux kernel. This omission
kaf24@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 17:30:34 +0000 (17:30 +0000)]
Build topology.c into x86/64 xenlinux kernel. This omission
spotted by Ryan Harper at IBM.

20 years agoEnsure cur_pgd per-cpu variables are initialised early.
kaf24@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 17:29:46 +0000 (17:29 +0000)]
Ensure cur_pgd per-cpu variables are initialised early.
Secondary VCPUs can take page faults immediately after
booting, because of writable pagetable logic.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoDon't mask off arbitrary error-code bits in i386 xenlinux
kaf24@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 17:28:53 +0000 (17:28 +0000)]
Don't mask off arbitrary error-code bits in i386 xenlinux
page fault handler.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoImprove show_page_walk() debugging in Xen, to print
kaf24@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 17:28:10 +0000 (17:28 +0000)]
Improve show_page_walk() debugging in Xen, to print
arbitrary page walks (not just walks of Xen mappings).

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoMore cleanups and fix free_blkif from wrong context bug (thanks Keir!).
cl349@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 16:37:59 +0000 (16:37 +0000)]
More cleanups and fix free_blkif from wrong context bug (thanks Keir!).
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoDrop support for multiple vbds per blkif.
cl349@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 15:43:04 +0000 (15:43 +0000)]
Drop support for multiple vbds per blkif.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoMove major/minor macros into public header, rename and use.
cl349@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 15:26:54 +0000 (15:26 +0000)]
Move major/minor macros into public header, rename and use.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoLink xentop with ncurses. Distros generally do not ship
kaf24@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 13:53:04 +0000 (13:53 +0000)]
Link xentop with ncurses. Distros generally do not ship
with basic curses.

20 years agoUpdate ignores list.
kaf24@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 13:36:09 +0000 (13:36 +0000)]
Update ignores list.

20 years agoMerge x86_64 and i386 ioremap.c.
kaf24@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 13:30:40 +0000 (13:30 +0000)]
Merge x86_64 and i386 ioremap.c.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoUpdate netfront for grant table interface changes.
cl349@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 13:18:45 +0000 (13:18 +0000)]
Update netfront for grant table interface changes.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix PAE and x86/64 when NX/XD is unavailable.
kaf24@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 13:13:39 +0000 (13:13 +0000)]
Fix PAE and x86/64 when NX/XD is unavailable.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoCleanup grant table code.
cl349@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 13:11:31 +0000 (13:11 +0000)]
Cleanup grant table code.
- keep count of free references
- let callbacks specify the number of references they need at least
- get rid of terminal reference
- simplify and more correct locking for callbacks
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agophys_to_machine_mapping array is not an array of longs.
kaf24@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 12:30:35 +0000 (12:30 +0000)]
phys_to_machine_mapping array is not an array of longs.
Fix start-of-day code and FOREIGN_FRAME() macro in light
of this. Also fix pfn_to_mfn() to mask off the foreign-frame
marker bit. The few places where we rely on that bit we read
out of the array directly, rather than using the pfn_to_mfn()
accessor macro.

This fixes, among other things, booting domU on PAE with swiotlb
disabled.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoThis patch extends I/O APIC guest writes so that the correct destination
kaf24@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 09:49:12 +0000 (09:49 +0000)]
This patch extends I/O APIC guest writes so that the correct destination
fields are written in the redirection table entry.

Signed-off-by: Aravindh Puthiyaparambil
               <aravindh.puthiyaparambil@unisys.com>

20 years agog/c struct work_struct declaration.
cl349@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 09:33:48 +0000 (09:33 +0000)]
g/c struct work_struct declaration.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoThis patch turns on host-side USB support in the x86_64 Dom0 kernel.
kaf24@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 09:28:05 +0000 (09:28 +0000)]
This patch turns on host-side USB support in the x86_64 Dom0 kernel.

Signed-off-by: Aravindh Puthiyaparambil
               <aravindh.puthiyaparambil@unisys.com>

20 years agoRemove double invocation of vmx_intr_assist when VM_EXIT
kaf24@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 09:26:11 +0000 (09:26 +0000)]
Remove double invocation of vmx_intr_assist when VM_EXIT
causes a domain switch.

Signed-off-by: Eddie Dong <eddie.dong@intel.com>
Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
20 years agoAdd EXPORT_SYMBOL for gnttab_free_grant_reference.
cl349@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 09:25:46 +0000 (09:25 +0000)]
Add EXPORT_SYMBOL for gnttab_free_grant_reference.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoUpdate gnttab_free_callback_list locking.
cl349@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 09:24:46 +0000 (09:24 +0000)]
Update gnttab_free_callback_list locking.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAdd locking for gnttab_free_callback_list.
cl349@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 08:45:13 +0000 (08:45 +0000)]
Add locking for gnttab_free_callback_list.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 08:41:18 +0000 (08:41 +0000)]
merge?

20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 08:40:58 +0000 (08:40 +0000)]
merge?

20 years agoUse explicit functions with args instead of work_structs for callbacks.
cl349@firebug.cl.cam.ac.uk [Tue, 23 Aug 2005 08:40:50 +0000 (08:40 +0000)]
Use explicit functions with args instead of work_structs for callbacks.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAdd xenversion support
jfisch@us.ibm.com [Tue, 23 Aug 2005 01:10:59 +0000 (02:10 +0100)]
Add xenversion support

20 years agoAdd a newline to the fscanf format string used to parse /proc/net/dev entries, to...
josht@us.ibm.com [Mon, 22 Aug 2005 23:28:50 +0000 (00:28 +0100)]
Add a newline to the fscanf format string used to parse /proc/net/dev entries, to avoid an additional read and bad-entry-skip just to eat the newline.

20 years agoMake the set_delay function use the provided parameter to set the delay, not the...
josht@us.ibm.com [Mon, 22 Aug 2005 23:28:43 +0000 (00:28 +0100)]
Make the set_delay function use the provided parameter to set the delay, not the global prompt_val.

20 years agoChange default xentop update delay from 1 to 3 seconds.
josht@us.ibm.com [Mon, 22 Aug 2005 23:28:39 +0000 (00:28 +0100)]
Change default xentop update delay from 1 to 3 seconds.

20 years agoFix compiler warnings.
cl349@firebug.cl.cam.ac.uk [Mon, 22 Aug 2005 23:07:37 +0000 (23:07 +0000)]
Fix compiler warnings.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoMerge libxenstat and xentop.
cl349@firebug.cl.cam.ac.uk [Mon, 22 Aug 2005 21:54:28 +0000 (21:54 +0000)]
Merge libxenstat and xentop.

20 years agoUse a block interface for each device.
cl349@firebug.cl.cam.ac.uk [Mon, 22 Aug 2005 20:59:00 +0000 (20:59 +0000)]
Use a block interface for each device.
Lots of code cleanups, incl. a couple of bug fixes.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoUpdate for grant table interface changes.
cl349@firebug.cl.cam.ac.uk [Mon, 22 Aug 2005 20:57:26 +0000 (20:57 +0000)]
Update for grant table interface changes.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoGrant table updates for block device changes.
cl349@firebug.cl.cam.ac.uk [Mon, 22 Aug 2005 20:52:38 +0000 (20:52 +0000)]
Grant table updates for block device changes.
- add gnttab_free_grant_reference
- make gnttab_free_grant_references interface consistent with other gnttab
  functions
- add support for callback when references are freed
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agono pae by default
kaf24@firebug.cl.cam.ac.uk [Mon, 22 Aug 2005 19:59:58 +0000 (19:59 +0000)]
no pae by default

20 years agoWe cannot allow nested C functions. They create a stack
kaf24@firebug.cl.cam.ac.uk [Mon, 22 Aug 2005 19:58:22 +0000 (19:58 +0000)]
We cannot allow nested C functions. They create a stack
trampoline when their address is taken, which causes a
fault if the system implements NX/XD.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoApply Ross Mcilroy's balloon_dealloc_empty_page_range patch
kaf24@firebug.cl.cam.ac.uk [Mon, 22 Aug 2005 16:38:13 +0000 (16:38 +0000)]
Apply Ross Mcilroy's balloon_dealloc_empty_page_range patch
and generally clean up the ballon driver a bunch.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFirst pass at using one block interface per device.
cl349@firebug.cl.cam.ac.uk [Mon, 22 Aug 2005 14:22:59 +0000 (14:22 +0000)]
First pass at using one block interface per device.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Mon, 22 Aug 2005 10:21:18 +0000 (10:21 +0000)]
merge?

20 years agoRemove option for running block devices without grant-tables.
cl349@firebug.cl.cam.ac.uk [Mon, 22 Aug 2005 10:20:58 +0000 (10:20 +0000)]
Remove option for running block devices without grant-tables.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoNo 'boot error' message if booting secondary vcpu succeeds.
kaf24@firebug.cl.cam.ac.uk [Mon, 22 Aug 2005 10:18:14 +0000 (10:18 +0000)]
No 'boot error' message if booting secondary vcpu succeeds.

20 years agoEnsure that 64-bit get_user/put_user only transfer to
kaf24@firebug.cl.cam.ac.uk [Mon, 22 Aug 2005 09:52:06 +0000 (09:52 +0000)]
Ensure that 64-bit get_user/put_user only transfer to
a 64-bit local variable. Some gcc versions have bugs
if this restriction isn't observed.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix out-of-source-tree build problem.
kaf24@firebug.cl.cam.ac.uk [Mon, 22 Aug 2005 09:43:58 +0000 (09:43 +0000)]
Fix out-of-source-tree build problem.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
20 years agoI noticed that an old problem is back (see below). The time command is
kaf24@firebug.cl.cam.ac.uk [Mon, 22 Aug 2005 09:37:27 +0000 (09:37 +0000)]
I noticed that an old problem is back (see below). The time command is
not showing the correct time (it's 3 sec in real time). The patch
attached restores the dropped line at the time of upgrading to 2.6.12.

Jun Nakajima

20 years agoOrdering was broken in the course of separating XEN-overridden
kaf24@firebug.cl.cam.ac.uk [Mon, 22 Aug 2005 08:51:04 +0000 (08:51 +0000)]
Ordering was broken in the course of separating XEN-overridden
sources from those getting used through symlink creation.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
20 years agoWhen building in a tree with (the sparse trees and) the patches
kaf24@firebug.cl.cam.ac.uk [Mon, 22 Aug 2005 08:36:21 +0000 (08:36 +0000)]
When building in a tree with (the sparse trees and) the patches
stripped, a warning is issued by make, which the below patch
eliminates.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
20 years agoMake grant-table dev_bus_addr really be an address, not a frame
kaf24@firebug.cl.cam.ac.uk [Sun, 21 Aug 2005 17:06:08 +0000 (17:06 +0000)]
Make grant-table dev_bus_addr really be an address, not a frame
number. Also get rid of GNTUNMAP_DEV_FROM_VIRT -- it makes little
sense and noone uses it.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agofix logic of ballooning out to handle the dom0_min_mem parameter correctly
vh249@arcadians.cl.cam.ac.uk [Sun, 21 Aug 2005 16:49:54 +0000 (16:49 +0000)]
fix logic of ballooning out to handle the dom0_min_mem parameter correctly
add an error message when having not enough memory

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years agoFix debug build.
kaf24@firebug.cl.cam.ac.uk [Sun, 21 Aug 2005 16:24:23 +0000 (16:24 +0000)]
Fix debug build.

20 years agoRemove dead code from blkback.
akw27@arcadians.cl.cam.ac.uk [Sun, 21 Aug 2005 12:24:21 +0000 (12:24 +0000)]
Remove dead code from blkback.

Signed-off-by: Andrew Warfield <andrew.warfield@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Sun, 21 Aug 2005 11:41:45 +0000 (11:41 +0000)]
merge?

20 years agoFix fallout from "Get rid of memory_t." checkin.
cl349@firebug.cl.cam.ac.uk [Sun, 21 Aug 2005 11:40:39 +0000 (11:40 +0000)]
Fix fallout from "Get rid of memory_t." checkin.
{get,put}_user of u64 items has to use u64 variables.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Sun, 21 Aug 2005 11:02:00 +0000 (11:02 +0000)]
merge?

20 years agoFix dom0 memory allocation.
kaf24@firebug.cl.cam.ac.uk [Sun, 21 Aug 2005 08:14:36 +0000 (08:14 +0000)]
Fix dom0 memory allocation.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoPAE fix to allow dom0 to be >4GB. PAE has made huge progress this week. I now kn
iap10@freefall.cl.cam.ac.uk [Sun, 21 Aug 2005 00:10:30 +0000 (00:10 +0000)]
PAE fix to allow dom0 to be >4GB. PAE has made huge progress this week. I now kn
ow of no PAE specific outstanding issues. Go find some :-)
Signed-off-by: ian@xensource.com
20 years agoFix NORMAL_PT_UPDATE for PAE when page is not pinned.
kaf24@firebug.cl.cam.ac.uk [Sat, 20 Aug 2005 20:05:21 +0000 (20:05 +0000)]
Fix NORMAL_PT_UPDATE for PAE when page is not pinned.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoDefining PAGE_SIZE as int broke x86/64. Revert that change.
kaf24@firebug.cl.cam.ac.uk [Sat, 20 Aug 2005 11:51:50 +0000 (11:51 +0000)]
Defining PAGE_SIZE as int broke x86/64. Revert that change.

20 years agoFix put_pte_flags() for Xen PAE.
kaf24@firebug.cl.cam.ac.uk [Sat, 20 Aug 2005 11:14:28 +0000 (11:14 +0000)]
Fix put_pte_flags() for Xen PAE.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoNot ready for pae by default just yet. ;-)
kaf24@firebug.cl.cam.ac.uk [Sat, 20 Aug 2005 10:03:40 +0000 (10:03 +0000)]
Not ready for pae by default just yet. ;-)

20 years agoFix PAE boot.
kaf24@firebug.cl.cam.ac.uk [Sat, 20 Aug 2005 10:01:20 +0000 (10:01 +0000)]
Fix PAE boot.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoI find at present "make uninstall" won't remove all installed files, for
kaf24@firebug.cl.cam.ac.uk [Sat, 20 Aug 2005 09:38:32 +0000 (09:38 +0000)]
I find at present "make uninstall" won't remove all installed files, for
example: /usr/libexec/xen/xc_restore. This may cause potential unclean
environment.

This patch add more lines in uninstall to remove all installed files by
"make uninstall".

Signed-off-by: Yongkang You <yongkang.you@intel.com>
20 years agoWe need to detect ioemu handled devices earlier and ignore them.
kaf24@firebug.cl.cam.ac.uk [Sat, 20 Aug 2005 09:36:15 +0000 (09:36 +0000)]
We need to detect ioemu handled devices earlier and ignore them.

Testing in blkif.py is too late. The check should be in createDevices.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoMini-os updated to use the new time interface.
kaf24@firebug.cl.cam.ac.uk [Sat, 20 Aug 2005 09:35:38 +0000 (09:35 +0000)]
Mini-os updated to use the new time interface.
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
20 years agoHopefully fix build with SLES9 compiler.
iap10@freefall.cl.cam.ac.uk [Fri, 19 Aug 2005 20:02:01 +0000 (20:02 +0000)]
Hopefully fix build with SLES9 compiler.
Signed-off-by: ian@xensource.com
20 years agoMinor xenstat changes from Christian Limpach.
mark.williamson@cl.cam.ac.uk [Fri, 19 Aug 2005 18:22:56 +0000 (18:22 +0000)]
Minor xenstat changes from Christian Limpach.

20 years agoLocal merge of two headed repo.
sd386@font.cl.cam.ac.uk [Fri, 19 Aug 2005 18:12:48 +0000 (18:12 +0000)]
Local merge of two headed repo.

20 years agoFix broken 'xm sedf', fixed by Ross Mcilroy
sd386@font.cl.cam.ac.uk [Fri, 19 Aug 2005 18:08:29 +0000 (18:08 +0000)]
Fix broken 'xm sedf', fixed by Ross Mcilroy
Signed-off by: Stephan.Diestelhorst@{cl.cam.ac.uk, inf.tu-dresden.de}

20 years agomerge.
kaf24@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 17:57:00 +0000 (17:57 +0000)]
merge.

20 years agoFix x86/64 build by defining correct vcpu_pickle().
kaf24@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 17:56:20 +0000 (17:56 +0000)]
Fix x86/64 build by defining correct vcpu_pickle().

20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 17:54:56 +0000 (17:54 +0000)]
merge?

20 years agoSix the SWIOTLB. The bus range does need to be contiguous after
kaf24@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 17:51:37 +0000 (17:51 +0000)]
Six the SWIOTLB. The bus range does need to be contiguous after
all as a range comparsion is used to determine if a given
dma address is within the swiotlb aperture.

Maybe we can do better sometime in the future (fast address
range comparison yet not require bus-contiguous aperture). But
reverting this morning's patch is fine for now.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 17:38:31 +0000 (17:38 +0000)]
merge?

20 years agoImprove error paths and cleanup code.
cl349@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 17:38:07 +0000 (17:38 +0000)]
Improve error paths and cleanup code.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoGet rid of memory_t. Almost all uses should be unsigned long.
kaf24@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 17:25:04 +0000 (17:25 +0000)]
Get rid of memory_t. Almost all uses should be unsigned long.
The few uses for a physical/machine address have been mostly
changed to u64.

Grant table code probably needs auditing for PAE correctness,
but at least the interface is now sound.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoSimplify pagetable initialisation. Since swapper_pg_dir now
kaf24@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 16:46:51 +0000 (16:46 +0000)]
Simplify pagetable initialisation. Since swapper_pg_dir now
is the one allocated by the domain builder, we can be sure
it is below 4GB (essential for PAE).

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix many uses of machine addresses in XenLinux. Primarily
kaf24@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 16:06:43 +0000 (16:06 +0000)]
Fix many uses of machine addresses in XenLinux. Primarily
this fixes users of virt_to_machine/machine_to_virt to
use virt_to_mfn/mfn_to_virt where that is more appropriate.

This should be a big step to improved PAE stability.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoMerge.
sos22@douglas.cl.cam.ac.uk [Fri, 19 Aug 2005 15:47:19 +0000 (15:47 +0000)]
Merge.

Signed-off-by: Steven Smith, sos22@cam.ac.uk
20 years agoThis time, it's fixed.
sos22@douglas.cl.cam.ac.uk [Fri, 19 Aug 2005 15:37:37 +0000 (15:37 +0000)]
This time, it's fixed.

Signed-off-by: Steven Smith, sos22@cam.ac.uk
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 15:22:05 +0000 (15:22 +0000)]
merge?

20 years agoCorrectly unmap ring page if using grant tables.
cl349@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 15:21:12 +0000 (15:21 +0000)]
Correctly unmap ring page if using grant tables.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoUnbreak the build in the non-CONFIG_SMP and x86_64 cases.
sos22@douglas.cl.cam.ac.uk [Fri, 19 Aug 2005 14:10:24 +0000 (14:10 +0000)]
Unbreak the build in the non-CONFIG_SMP and x86_64 cases.

Signed-off-by: Steven Smith, sos22@cam.ac.uk
20 years agoGet rid of some annoying debug messages.
sos22@douglas.cl.cam.ac.uk [Fri, 19 Aug 2005 13:21:02 +0000 (13:21 +0000)]
Get rid of some annoying debug messages.

Signed-off-by: Steven Smith, sos22@cam.ac.uk
20 years agoMerge.
sos22@douglas.cl.cam.ac.uk [Fri, 19 Aug 2005 13:08:50 +0000 (13:08 +0000)]
Merge.

Signed-off-by: Steven Smith, sos22@cam.ac.uk
20 years agoFix suspend/resume for domains with devices which are in xenstore but have no xenbus...
cl349@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 13:05:31 +0000 (13:05 +0000)]
Fix suspend/resume for domains with devices which are in xenstore but have no xenbus aware driver.
Information about network devices is stored in xenstore.  Xenbus creates
device objects for these devices but the network driver doesn't support
finding devices over xenbus yet and thus these devices have no driver.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 12:22:27 +0000 (12:22 +0000)]
merge?

20 years agoAdd very rough xend support for xenbus block device setup.
cl349@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 12:21:29 +0000 (12:21 +0000)]
Add very rough xend support for xenbus block device setup.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix driver to work with updated probe driver.
cl349@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 12:14:41 +0000 (12:14 +0000)]
Fix driver to work with updated probe driver.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoSwitch block device setup/teardown over to xenbus/xenstore.
cl349@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 12:13:31 +0000 (12:13 +0000)]
Switch block device setup/teardown over to xenbus/xenstore.
Remove device probing support over the device channel.
g/c all the control message code.
Simplify and cleanup internal function calling code (explicit arguments
instead of passing structs around).
Also includes:
Changed "readonly" to "read-only". "backend" is still not hyphenated, but
that seems to be fairly common usage.
Block backends use xenbus_dev_error, making debugging nicer.
The block front end is told explicitly what domid to use to talk to the
backend. There's speculation that fake domid-like tokens may be given
for cluster purposes in future, so deriving from the backend dir name is
not guaranteed to work. Backends still derive front-end ids, using a
xenbus helper (xenbus_uuid_to_domid).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agouse "vbd" as driver name for blkfront devices, not "blkfront".
cl349@firebug.cl.cam.ac.uk [Fri, 19 Aug 2005 10:59:47 +0000 (10:59 +0000)]
use "vbd" as driver name for blkfront devices, not "blkfront".
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoMerge.
sos22@douglas.cl.cam.ac.uk [Fri, 19 Aug 2005 10:50:15 +0000 (10:50 +0000)]
Merge.

Signed-off-by: Steven Smith, sos22@cam.ac.uk