Commit Graph
365 Commits
Author SHA1 Message Date
smh22@tempest.cl.cam.ac.uk 99e88d6dd7 Trivial fixes for 64bit and xend.
Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-16 18:03:48 +01:00
smh22@firebug.cl.cam.ac.uk 4c908cf0e3 Many fixes for save/restore and related areas for PAE in particular. Now
should be able to save/restore successfully on machines with up to 16GB 
and any size of guest. 

Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-16 17:45:03 +01:00
kaf24@firebug.cl.cam.ac.uk 0b15c25a49 Add definitions of some swiotlb symbols to pci-dma.c.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-11-16 11:34:54 +01:00
kaf24@firebug.cl.cam.ac.uk 817d4d02cf /dev/mem write function should use copy_from_user, not copy_to_user.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-11-16 11:34:19 +01:00
kaf24@firebug.cl.cam.ac.uk 7cfd98e2f1 Correctly export xencons functions to avoid ugly 'extern'
declarations.

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-11-16 11:32:19 +01:00
kaf24@firebug.cl.cam.ac.uk 7448bc78c5 Add function declarations, and ensure we prevent mismatch
of function definition vs. declaration.

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-11-16 11:28:12 +01:00
kaf24@firebug.cl.cam.ac.uk b30b10f57a Replace 0 with NULL when assigning pointer fields/parameters.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-11-16 11:27:19 +01:00
kaf24@firebug.cl.cam.ac.uk fcde973e26 Ensure we initialise the cpu_present_map before
topology_init() is called. In latest Linux kernels it
iterates over cpu_present_map rather than cpu_possible_map.

Also, save/restore should really iterate over
possible cpus, not present ones (not that it really matters,
but it's a small cleanup).

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-15 18:43:28 +01:00
kaf24@firebug.cl.cam.ac.uk 1cdce56648 Initialise secondary CPUs via an arch_initcall rather than
a subsys_initcall. This ensures that initialisation occurs
before topology_init().

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-15 11:28:01 +01:00
kaf24@firebug.cl.cam.ac.uk 7355824f56 Use make_lowmem_page_readonly/writable() in preference to the
generic functions where appropriate. This prevents us using the
generic functions early during boot, when pte_pfn() does not work
(because max_mapnr is not initialised).

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-14 18:13:38 +01:00
smh22@firebug.cl.cam.ac.uk 58aaf6643c Fix make_page_readonly/make_page_writeable on PAE guests - previous behaviour
was incorrect when machine address > 4GB. We believe this fixes bugzilla #267. 

Also tidy up and fix show_page_walk.


Signed-off-by: Steven Hand <steven@xensource.com> 
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-11 19:02:49 +01:00
kaf24@firebug.cl.cam.ac.uk 284be486e4 Max xen skbuff allocation is now 64KB. kmem caches only
get populated with objects on first allocation, so if large
caches end up being unused, they don't actually cost us
very much.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-11 11:01:32 +01:00
kaf24@firebug.cl.cam.ac.uk 5aa99be215 Merge with xen-unstable-ia64.hg 2005-11-11 10:47:43 +01:00
djm@kirby.fc.hp.com 5076bff75d Blkfront no longer built by default, need CONFIG_XEN_BLKDEV_FRONTEND 2005-11-10 14:02:01 -06:00
kaf24@firebug.cl.cam.ac.uk 0f6857b3cd Fix Linux fault.c indentation.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-10 19:43:56 +01:00
smh22@firebug.cl.cam.ac.uk 65dcdd1ffe Fix page-table dump on PAE with >4GB MFNs.
Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-10 19:32:09 +01:00
djm@kirby.fc.hp.com cab735cf69 Fix typo 2005-11-10 09:07:47 -06:00
djm@kirby.fc.hp.com 093551c035 Merge latest xen-unstable into xen-ia64-unstable 2005-11-10 08:34:09 -06:00
djm@kirby.fc.hp.com 0add1f8a92 Adapt to new evtchn interfaces.
Signed-off-by Kevin Tian <kevin.tian@intel.com>
2005-11-10 08:18:25 -06:00
kaf24@firebug.cl.cam.ac.uk 4440e29b50 Indirect writes to phys_to_machine_mapping array through an inline
function defined in page.h.

For self-migration, I need the ability to trap writes to the p2m map
during migration, because I keep a dictionary mapping mfns to pfns,
which I use for remapping the page tables once I am on the other side.

Signed-off-by: Jacob Gorm Hansen <jacobg@diku.dk>
2005-11-10 15:16:01 +01:00
kaf24@firebug.cl.cam.ac.uk df1231853e When creating exception/interrupt stack frames for a guest,
set saved eflags.IF to !saved_upcall_mask. This allows the
guest to test interrupts-enabled in the interrupted context
in the same way as when running natively.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-10 15:03:33 +01:00
kaf24@firebug.cl.cam.ac.uk 79d289ec5f Enable export of set_nmi_callback in suitably priv 64-bit doms.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-10 11:58:39 +01:00
kaf24@firebug.cl.cam.ac.uk 84b8ebc5d3 Move linear faulting address (%cr2) out of the page fault
stack frame and into vcpu_info_t (in shared_info_t). This
makes the guest #PF handler much more similar to native.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-09 17:23:46 +01:00
kaf24@firebug.cl.cam.ac.uk 2ea876d2a0 Attached patch allows building of netfront and blkfront as modules
(xennet.ko and xenblk.ko).  

Signed-off-by: Jeremy Katz <katzj@redhat.com>
2005-11-09 14:42:15 +01:00
kaf24@firebug.cl.cam.ac.uk d47fc2945e gnttab_request_free_callback needs to be exported for building modular
blkfront

Signed-off-by: Jeremy Katz <katzj@redhat.com>
2005-11-09 14:41:37 +01:00
kaf24@firebug.cl.cam.ac.uk 4b6d60a8f0 Allow xen_create_contiguous_region() to fail gracefully if it
cannot allocate a contiguous multi-page extent of memory. This
should avoid unnecessary crashes in the xen-specific skbuff
cache constructor.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-09 14:39:32 +01:00
djm@kirby.fc.hp.com 64123904fb Fix domU (by Kevin Tian) 2005-11-08 12:15:55 -06:00
kaf24@firebug.cl.cam.ac.uk 0444e5275d Fix alloc_skb() to ensure data is always physically contiguous.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-08 16:48:42 +01:00
kaf24@firebug.cl.cam.ac.uk 366aac2d16 Rationalise the kernel event-channel binding interfaces. The
new interfaces are simpler and should be implementable by any
architecture.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-08 15:58:31 +01:00
Michael.Fetterman@cl.cam.ac.uk 11f72f4ab9 merge 2005-11-08 14:41:25 +01:00
Michael.Fetterman@cl.cam.ac.uk c02e0c7355 merge 2005-11-08 13:30:05 +01:00
kaf24@firebug.cl.cam.ac.uk fb57a01c90 Remove unused and unnecessary gnttab ioctl.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-08 12:25:09 +01:00
djm@kirby.fc.hp.com 9b55020172 Merge xen-unstable into xen-ia64-unstable again (to get ioapic changes) 2005-11-07 20:40:31 -06:00
unknown@aosda.research.intel-research.net e2e46ad25b Make xen0's default config match itself after a "make oldconfig" 2005-11-07 18:25:09 +01:00
kaf24@firebug.cl.cam.ac.uk c60a806bc2 Fix pagetable pinning logic for xen/i386 kernels. The pin
flag is now associated with the pgd rather than the mm -- this
avoids a race where a pgd is allocated from the pgd_cache but,
before it gets associated with an mm, the kernel suspends itself.
At this point the kernel mappings will not get rewritten when the
kernel is resumed, and the system will fail.

A further advantage is that the code is slightly simpler and less
invasive (no changes to mm_context for example).

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-07 18:14:45 +01:00
djm@kirby.fc.hp.com c179fd9015 Merge latest xen-unstable into xen-ia64-unstable 2005-11-07 11:13:38 -06:00
djm@kirby.fc.hp.com 15e7453af8 Minor driver code changes/rearrangement to reduce ia64-specific patches
Signed-off by: Dan Magenheimer <dan.magenheimer@hp.com>
2005-11-04 10:40:29 -06:00
kaf24@firebug.cl.cam.ac.uk 10abf5a06a Specifying 'mem=' as Linux boot parameter disables the default
8MB slack in the mem_map and the p2m table.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-04 11:46:10 +01:00
djm@kirby.fc.hp.com c358323739 Enable test for running_on_xen from modules
Signed-off by: Dan Magenheimer <dan.magenheimer@hp.com>
2005-11-03 21:37:29 -06:00
djm@kirby.fc.hp.com 5c68156782 Oops, backout accidental test config, committed in wrong directory 2005-11-03 16:50:44 -06:00
djm@kirby.fc.hp.com aab5203039 Test new config 2005-11-03 16:01:38 -06:00
djm@kirby.fc.hp.com a5d0b76464 Fix console output and bug in evtchn_ia64 (by Tristan Gingold) 2005-11-03 07:21:26 -06:00
kaf24@firebug.cl.cam.ac.uk d7345c440f Changeset 7419 introduced a check for DOM0 before setting a bit in the
cpu_present map.  This prevents domU SMP kernels without HOTPLUG_CPU
support from booting.  Secondary cpus need to be present and online
before init/main.c:do_basic_setup() calls init_workqueues() (which
initializes per-cpu workqueues).

Without this patch, non HOTPLUG_CPU enabled kernels hang when flushing
cpu workqueues as the spinlock in the structure is never initialized (it
has a default value of zero which means the lock has been acquired on 
x86).

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-02 00:08:01 +01:00
kaf24@firebug.cl.cam.ac.uk 31ed041b51 Fix 'nosmp' and ensure that CPU#0 is reported properly
by /proc/cpuinfo. Also fix the sibling and core maps.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-01 17:49:19 +01:00
kaf24@firebug.cl.cam.ac.uk f6177063df Fix CPU hotplug -- cpu initialisation functions must be declared
__cpuinit or later hotplug references freed code and data.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-01 16:28:20 +01:00
djm@kirby.fc.hp.com 4f4f651b8c Fixes for first step in getting domU back up (by Kevin Tian) 2005-10-31 17:27:38 -06:00
emellor@leeni.uk.xensource.com 5b4535ea04 Change the grant table interface so that gnttab_end_foreign_access_ref returns
an error code if the page is still in use, and gnttab_end_foreign_access takes
a page to free.  This allows us to cope with frontends wanting to end access
while backends are still using pages by, eventually, placing the page and
grant table entry on a list, for freeing later.  At the moment, the page and
grant table entry are leaked, with a diagnostic.

Tidied up netfront.c's clean-up code.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-30 16:33:05 +01:00
emellor@leeni.uk.xensource.com e8fa801c79 Remove out: label, to silence warning.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-30 15:42:02 +01:00
emellor@leeni.uk.xensource.com ff9465e411 Merged. 2005-10-30 14:00:35 +01:00
emellor@leeni.uk.xensource.com d4a37a51af Don't schedule work for reboot if work is already scheduled. This fixes a
problem whereby migrated domains would shut themselves down immediately,
because the watch from the removal of the control/shutdown node would fire
after the workqueue had started, but before the domain was suspended, meaning
that an additional piece of work was scheduled, which ran immediately after the
domain was resumed. 

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-30 13:52:38 +01:00