Commit Graph
8026 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk 5601f6c62f Quieten down grant-table transfer failure when it is because
a domain is dying.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-24 19:49:15 +01:00
kaf24@firebug.cl.cam.ac.uk fb94b59330 Another PAE fix for pgd_ctor.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-24 19:40:18 +01:00
kaf24@firebug.cl.cam.ac.uk 3074eec09f More PAE PGD fixes. Ensure we do not pin PGDs with no kernel
PMD (Xen will not allow it). This is okay even across
suspend/resume -- such PGDs are completely empty and so
contain no PTEs that become garbage across suspend/resume.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-24 19:16:13 +01:00
kaf24@firebug.cl.cam.ac.uk d702ee35e2 Fix pgd allocation for PAE. We must handle the fact that
a PGD may get pinned under our feet by suspend/resume.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-24 18:19:51 +01:00
kaf24@firebug.cl.cam.ac.uk 9651847290 Fix 32b non-pae build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-24 17:13:46 +01:00
emellor@leeni.uk.xensource.com e5914d7e89 Merged. 2005-11-24 15:57:45 +00:00
emellor@leeni.uk.xensource.com 5840748740 Check whether a device is already configured before trying to configure it
again.  Closes bug #397.

To perform this check in the same transaction as the writing of the device
entries has required a little bit of rejigging.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-24 15:57:36 +00:00
emellor@leeni.uk.xensource.com 2bf2793e18 Support destruction of device by /dev/sda1 (for example) even when the
configuration just said sda1.
 
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-24 15:55:49 +00:00
emellor@leeni.uk.xensource.com 2128c9ba49 Minor tidy, no semantic change.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-24 15:52:42 +00:00
kaf24@firebug.cl.cam.ac.uk c68890bfaa Shootdown TLB entries across all VCPUs for SMP shadow mode.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-24 16:47:44 +01:00
smh22@firebug.cl.cam.ac.uk 9661835101 Re-enable tools support for live migration on PAE.
Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-24 16:32:38 +01:00
smh22@firebug.cl.cam.ac.uk cf31cfc274 Quiet down live migrate on PAE domains.
Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-24 16:30:40 +01:00
kaf24@firebug.cl.cam.ac.uk be8dc15376 Clean up mark_dirty() implementation to check for log-dirty
status internally, with the shadow_lock held for consistency.

Callers no need to check log-dirty status themselves.

Also, add dirty logging to alloc_page_type/free_page_type, so
that we see page tables coming and going during live relocation.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-24 15:38:33 +01:00
kaf24@firebug.cl.cam.ac.uk 0b7989bf3d Remove unused 'nr_recs' field from trace-buffer header
structure. This also happens to ensure correct t_rec
alignment on ia64. A better layout for trace buffers
will be coming soon.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-24 15:08:27 +01:00
kaf24@firebug.cl.cam.ac.uk 0d79c5a9ec Adds ac_timer based polling to the ns16550 UART driver. This is
useful when the interrupt line is not connected in hardware or the
mechanism to enable it is not readily available in the hypervisor.
Polling is only enabled when the UART IRQ is set to zero.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-24 12:06:07 +01:00
kaf24@firebug.cl.cam.ac.uk efb8e0c63f This fixes a small race between when a domain is created and when xentop
tries to read it's info from the xenstore. Instead of sending a NULL
pointer for the name the name will be displayed as a ' ' until the next
refresh where xentop will then properly display the name. 

Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2005-11-24 11:17:20 +01:00
kaf24@firebug.cl.cam.ac.uk d0d531a4c5 xen/common/acm_ops.c, check for a NULL pointer and then
cheerfully dereferences it.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2005-11-24 11:10:43 +01:00
kaf24@firebug.cl.cam.ac.uk 16a1f39d38 dom0_ops return -EACCES when the interface version in wrong. I think
that an acm failure is closer to being non-priv'ed, which returns
-EPERM.  Wouldn't want dom0 tools to report they were the wrong version
just because ACM limited some operation, surely?

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (authored)
2005-11-24 11:06:26 +01:00
kaf24@firebug.cl.cam.ac.uk b9e7fc2603 Clean up some Xen files in the ioemulator.
1) fix indent
2) use fprintf(logfile, ...) instead of perror and printf
3) remove tailing spaces

Signed-off-by: Xin Li <xin.b.li@intel.com>
2005-11-24 11:05:21 +01:00
kaf24@firebug.cl.cam.ac.uk 6d116e013c Fix ia64 build. Two typos in header files.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-24 11:03:07 +01:00
rread@ubuntu.eng.hq.xensource.com 30da893333 Make the microcode driver builtin.
As a module it complains about unknown symbols sys_munlock and sys_lock.
2005-11-23 22:04:13 -07:00
rread@ubuntu.eng.hq.xensource.com 6c5dcf790f Disable crufty modules still using cli and friends. 2005-11-23 21:55:07 -07:00
rread@ubuntu.eng.hq.xensource.com f048512769 Compile IDE drivers as builtins instead of modules.
This makes the -xen config compatible with the distribution kernel configs, 
but at the cost of some bloat when being used as a guest kernel.
2005-11-23 21:12:38 -07:00
emellor@leeni.uk.xensource.com f6d80a7f57 Reverse accidental commits for changesets 8001 and 7996-7999.
The Mercurial Queues extensions suddenly looks a lot less useful than it first
seemed.
 
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-23 19:37:33 +00:00
emellor@leeni.uk.xensource.com d64896a9f0 Merged. 2005-11-23 19:31:22 +00:00
emellor@leeni.uk.xensource.com 3ad90d3df7 Added comment describing usage.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-23 19:31:14 +00:00
emellor@leeni.uk.xensource.com a640b7c2dd imported patch quiet_linux_build.patch 2005-11-23 19:19:24 +00:00
emellor@leeni.uk.xensource.com a14862a927 imported patch trace-thread.patch 2005-11-23 19:19:24 +00:00
emellor@leeni.uk.xensource.com 8856d17150 imported patch my-config 2005-11-23 19:19:23 +00:00
emellor@leeni.uk.xensource.com 30f626794c imported patch logging-thread.patch 2005-11-23 19:19:23 +00:00
emellor@leeni.uk.xensource.com 96e138a54d Merged. 2005-11-23 19:19:04 +00:00
emellor@leeni.uk.xensource.com 92b5e81264 Don't treat the failure of ifconfig vifX.Y down as a fatal error. This hasn't
emerged as a problem in the field, AFAIK, but it seems that distro scripts
could have brought the device down already by this point (Debian stable's
net.agent does ifdown vifX.Y, and it wouldn't surprise me if someone decided
to do ifconfig vifX.Y down if this failed, for example).

Logging but ignoring the failure seems sensible.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-23 19:16:54 +00:00
emellor@leeni.uk.xensource.com 20f482d494 Remove the frontend device directories as well as the backend ones.
Closes bug #424.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-23 19:13:13 +00:00
emellor@leeni.uk.xensource.com 034f2cd52e Inside xenbus_switch_state, don't write the new state if the node has already
disappeared.  This happens when the driver is being torn down, and we don't
want to resurrect the device directory in the store because of it.

Partially addresses bug #424.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-23 18:47:54 +00:00
emellor@leeni.uk.xensource.com d29719d231 Added a hotplug KOBJ_OFFLINE call, for symmetry with the ONLINE call used here.
We need a hook to be able to close down the device properly, but the REMOVE
event is no good because we don't get the script and vif environment variables
set in that case.

Closes bug #417.
 
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-23 18:45:57 +00:00
rread@ubuntu.eng.hq.xensource.com ae3b719fa4 Build the mouse device into the kernel.
Both RHEL and SLES do this.
2005-11-23 10:09:18 -07:00
kaf24@firebug.cl.cam.ac.uk ef112a54bd Fix Xen to build with gcc-4.1.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-11-23 14:15:35 +01:00
kaf24@firebug.cl.cam.ac.uk 5a808f1e05 Add __iomem and __user pointer annotations to linux sparse tree.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-11-23 14:14:01 +01:00
kaf24@firebug.cl.cam.ac.uk b9b24cd1bf Fix __gpfn_to_mfn() to work correctly when not executed
in the queried domain's context.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-23 13:58:44 +01:00
kaf24@firebug.cl.cam.ac.uk 53600718bf Clean up use of get_pfn_from_mfn().
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-23 13:54:40 +01:00
kaf24@firebug.cl.cam.ac.uk b9f1e46324 Move arch-specific portions of grant-table implementation
out of common code. Ready for use by ia64.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-23 13:50:14 +01:00
sos22@douglas.cl.cam.ac.uk 3fa276f635 Merge.
Signed-off-by: Steven Smith, sos22@cam.ac.uk
2005-11-23 13:38:34 +01:00
sos22@douglas.cl.cam.ac.uk 27fa09fe1d Merge.
Signed-off-by: Steven Smith, sos22@cam.ac.uk
2005-11-23 13:35:50 +01:00
sos22@douglas.cl.cam.ac.uk 05607bfc8f Make sure that accesses to the machine_to_phys table all go through
suitable macros.

Signed-off-by: Steven Smith, sos22@cam.ac.uk
2005-11-23 13:34:25 +01:00
root@localhost.localdomain d29e39f1f4 xm-test: add tests for network-attach command
Signed-off-by: Murillo Fernandes Bernardes <mfb@br.ibm.com>
2005-11-23 12:32:44 +01:00
dan@guaranine.beaverton.ibm.com 399bffa1e9 Add tests for bug #331 2005-11-23 12:31:55 +01:00
dan@guaranine.beaverton.ibm.com 2d0693f8dd Make 04_memset_smallmem differentiate between console run-away and console
daemon death.
2005-11-23 12:31:30 +01:00
emellor@leeni.uk.xensource.com f7ba489565 Fix to xm create --help from Ken Grant.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-23 12:29:58 +01:00
kaf24@firebug.cl.cam.ac.uk 5d7d4a952f BUG_ON test for xmalloc alignment should not be excluded
for ia64. SMP_CACHE_BYTES should be increased for uniproc
ia64 systems (how many uniproc ia64 boxes are there?!).

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-23 12:22:58 +01:00
kaf24@firebug.cl.cam.ac.uk 39fcc013ef Intel systems with more than 8 CPUs require that the APIC is configured
in clustered mode with the apic=bigsmp kernel parameter. This patch does
the APIC mode selection automatically without needing to manually specify
the kernel paremeter.

(KAF note: I see the patch is also present in Linux 2.6.14.2)

Signed-off-by: Nitin Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
2005-11-23 12:11:05 +01:00