Commit Graph
279 Commits
Author SHA1 Message Date
cl349@firebug.cl.cam.ac.uk 92ac24ede5 merge? 2005-08-24 22:24:10 +00:00
cl349@firebug.cl.cam.ac.uk e66487c0fc Switch network setup over to xenbus.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-24 22:22:11 +00:00
cl349@firebug.cl.cam.ac.uk f73d8dba8f Update error message.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-24 22:21:24 +00:00
cl349@firebug.cl.cam.ac.uk d90a3a88c0 Rename grant-id to ring-ref.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-24 21:50:52 +00:00
cl349@firebug.cl.cam.ac.uk 9df7b4b119 Watch may fire before we've allocated the interface structure.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-24 20:43:16 +00:00
cl349@firebug.cl.cam.ac.uk bd16b19bb0 Unregister watch in error path.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-24 20:29:42 +00:00
cl349@firebug.cl.cam.ac.uk 9acebec0b9 Avoid calling device_unregister from device_register callback.
Also simplify code.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-24 20:11:07 +00:00
cl349@firebug.cl.cam.ac.uk f63e7cbee1 Disable debug output again.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-24 20:10:12 +00:00
kaf24@firebug.cl.cam.ac.uk 8e7d2037c7 Always free the lowest 1MB of pseudo-physical memory when booting
a guest.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-24 15:46:33 +00:00
kaf24@firebug.cl.cam.ac.uk dbd731f86b Fix x86/64 pagetable initialisation so that only things that
need to be are mapped read-only.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-24 15:22:44 +00:00
kaf24@firebug.cl.cam.ac.uk fc956379c6 Add EXT3 as built-in filesystem for x86/64 domU. 2005-08-24 15:21:48 +00:00
kaf24@firebug.cl.cam.ac.uk 5097f2fbef Copy correct number of bytes for xen_start_info in x86_64
head.S.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-24 13:17:12 +00:00
kaf24@firebug.cl.cam.ac.uk a99c711b24 Initialise syscall32 vsyscall page early, as it may be needed
for some initcalls (e.g., if initrd /bin/hotplug is an i386
binary).

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-24 10:48:24 +00:00
cl349@firebug.cl.cam.ac.uk 1e63967258 Update comment.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-24 09:44:03 +00:00
cl349@firebug.cl.cam.ac.uk a7c18c4ae8 Don't use the grant pre-allocation system for the ring grants.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-24 09:31:52 +00:00
cl349@firebug.cl.cam.ac.uk 73e3ad1b3d Add some additional error nodes when block device setup fails.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-24 08:55:14 +00:00
cl349@firebug.cl.cam.ac.uk ad2ed880fe g/c extra test.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-23 19:48:28 +00:00
cl349@firebug.cl.cam.ac.uk e8c0fa5a6d 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>
2005-08-23 19:17:46 +00:00
cl349@firebug.cl.cam.ac.uk 53438a75c8 merge? 2005-08-23 18:10:21 +00:00
cl349@firebug.cl.cam.ac.uk c09b5c91c2 g/c vbd active.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-23 18:09:54 +00:00
kaf24@firebug.cl.cam.ac.uk 6603c470e7 Fix non-hotplug i386 build. Spotted by Rik van Riel. 2005-08-23 17:54:38 +00:00
cl349@firebug.cl.cam.ac.uk 9623f30227 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>
2005-08-23 17:51:57 +00:00
cl349@firebug.cl.cam.ac.uk ae28fe8a0e merge? 2005-08-23 17:33:11 +00:00
cl349@firebug.cl.cam.ac.uk 2a0a856896 Minor cleanup.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-23 17:32:44 +00:00
kaf24@firebug.cl.cam.ac.uk 1fe5d2eeb9 Build topology.c into x86/64 xenlinux kernel. This omission
spotted by Ryan Harper at IBM.
2005-08-23 17:30:34 +00:00
kaf24@firebug.cl.cam.ac.uk 4abc4afefd 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>
2005-08-23 17:29:46 +00:00
kaf24@firebug.cl.cam.ac.uk a128983d92 Don't mask off arbitrary error-code bits in i386 xenlinux
page fault handler.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-23 17:28:53 +00:00
cl349@firebug.cl.cam.ac.uk 75480722f6 More cleanups and fix free_blkif from wrong context bug (thanks Keir!).
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-23 16:37:59 +00:00
cl349@firebug.cl.cam.ac.uk 878f019d53 Drop support for multiple vbds per blkif.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-23 15:43:04 +00:00
cl349@firebug.cl.cam.ac.uk a1d9c833f9 Move major/minor macros into public header, rename and use.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-23 15:26:54 +00:00
kaf24@firebug.cl.cam.ac.uk af3ec97615 Merge x86_64 and i386 ioremap.c.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-23 13:30:40 +00:00
cl349@firebug.cl.cam.ac.uk b009f4adc8 Update netfront for grant table interface changes.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-23 13:18:45 +00:00
kaf24@firebug.cl.cam.ac.uk 956a840d5d Fix PAE and x86/64 when NX/XD is unavailable.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-23 13:13:39 +00:00
cl349@firebug.cl.cam.ac.uk 54a17fbc83 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>
2005-08-23 13:11:31 +00:00
kaf24@firebug.cl.cam.ac.uk 88977254c3 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>
2005-08-23 12:30:35 +00:00
cl349@firebug.cl.cam.ac.uk 6a141a1783 g/c struct work_struct declaration.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-23 09:33:48 +00:00
kaf24@firebug.cl.cam.ac.uk cf4b88f454 This patch turns on host-side USB support in the x86_64 Dom0 kernel.
Signed-off-by: Aravindh Puthiyaparambil
               <aravindh.puthiyaparambil@unisys.com>
2005-08-23 09:28:05 +00:00
cl349@firebug.cl.cam.ac.uk 370fdc77f8 Add EXPORT_SYMBOL for gnttab_free_grant_reference.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-23 09:25:46 +00:00
cl349@firebug.cl.cam.ac.uk d4e34510de Update gnttab_free_callback_list locking.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-23 09:24:46 +00:00
cl349@firebug.cl.cam.ac.uk c6e625750b Add locking for gnttab_free_callback_list.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-23 08:45:13 +00:00
cl349@firebug.cl.cam.ac.uk 98b638231e merge? 2005-08-23 08:41:18 +00:00
cl349@firebug.cl.cam.ac.uk 49c9090275 merge? 2005-08-23 08:40:58 +00:00
cl349@firebug.cl.cam.ac.uk b4d1caa528 Use explicit functions with args instead of work_structs for callbacks.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-23 08:40:50 +00:00
cl349@firebug.cl.cam.ac.uk 1a710f56e7 Fix compiler warnings.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-22 23:07:37 +00:00
cl349@firebug.cl.cam.ac.uk 8c3c00a51f 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>
2005-08-22 20:59:00 +00:00
cl349@firebug.cl.cam.ac.uk e8bb26a57f Update for grant table interface changes.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-22 20:57:26 +00:00
cl349@firebug.cl.cam.ac.uk 3c047eef3c 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>
2005-08-22 20:52:38 +00:00
kaf24@firebug.cl.cam.ac.uk 7afc4b008b 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>
2005-08-22 19:58:22 +00:00
kaf24@firebug.cl.cam.ac.uk f84addf449 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>
2005-08-22 16:38:13 +00:00
cl349@firebug.cl.cam.ac.uk 279198e896 First pass at using one block interface per device.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-22 14:22:59 +00:00