Commit Graph
7845 Commits
Author SHA1 Message Date
dan@guaranine.beaverton.ibm.com cf01e4ff3b Test for creating a domain with too little memory. 2005-11-16 20:33:12 +01:00
dan@guaranine.beaverton.ibm.com 574b65be2f Make 01_reboot test more robust.
We need to attach a console before rebooting to make sure the domain did
actually boot in the first place.  Also, use a better method for pulling out
the uptime string.
2005-11-16 20:32:36 +01:00
emellor@leeni.uk.xensource.com a71d394cc3 Merged. 2005-11-16 13:38:16 +01:00
jmb@artemis.home.pimb.org 698d53df47 Dom0 might not be called Domain-0, so ask for the name in shutdown.py, instead of hardcoding it
Signed-off-by: Jody Belka <knew (at) pimb (dot) org>
2005-11-16 13:34:52 +01:00
kaf24@firebug.cl.cam.ac.uk 568a59e7fc Rename XENVER_parameters to slightly more informative
XENVER_platform_parameters.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-16 12:44:12 +01:00
emellor@leeni.uk.xensource.com 2877958e20 Merged. 2005-11-16 12:37:29 +01:00
emellor@leeni.uk.xensource.com f1f5c0ba12 Review checks for Error string when checking that bad arguments are handled
correctly.  Many checks were looking using output.find("Error") > 1, which is
incorrect, as we do not guarantee that the word "Error" will be first in the
output (never mind the fact that strings are indexed from 0).

All these checks have been changed to compare against -1.  In particular, this
should fix the failure of create_noparm_neg and create_badparm_neg on a machine
with the /etc/xen/xmdefconfig file in place, as xm create issues the
Using config file "/etc/xen/xmdefconfig" diagnostic before reporting the error.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-16 12:36:47 +01:00
kaf24@firebug.cl.cam.ac.uk 3d95cc36a0 Fix up start_info_t magic string to match the format of
XENVER_capabilities strings.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-16 12:23:17 +01:00
kaf24@firebug.cl.cam.ac.uk b6b510cca7 This fixes the following scenerio:
1) gmfn X is L2 table, and a shadow for it is set.
2) A write to page X, and the same page would be L1 table
also.(Something like the linear page table) But the shadow for L1 table
is not set.

The code path will be shadow_fault -> l1pte_write_fault. Because X is L2
table, so shadow_mark_va_out_of_sync is called , this function will
allocate a OO entry for this table, and set the writable_pl1e to -1.
Also it alloc a L1 shadow for X through shadow_map_l1_into_current_l2.
When allocating, free_out_of_sync_state will be called to free all OO
entry. However, since the OO entry allocated on
shadow_mark_va_out_of_sync has the writable_pl1e to -1, this OO entry
will never be released.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
2005-11-16 11:41:14 +01:00
kaf24@firebug.cl.cam.ac.uk cebb9d12a5 Change ISA_IO_BASE to fix_to_virt(FIX_ISAMAP_BEGIN). It used to be
PAGE_OFFSET, which was unaltered from vanilla Linux 2.6.12.6 kernels
and caused isa_memcpy_fromio() to not read physical memory from
0xf0000 - 0xfffff correctly.

http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=393

Signed-off-by: Andrew D. Ball <aball@us.ibm.com>
2005-11-16 11:39:38 +01:00
kaf24@firebug.cl.cam.ac.uk 250a814ea4 Remove unnecessary cast of kmalloc() result.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-11-16 11:35:26 +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 3d44ee0299 merge. 2005-11-16 11:33:13 +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
emellor@leeni.uk.xensource.com 3bd89f2ebf Merged. 2005-11-16 11:32:14 +01:00
emellor@leeni.uk.xensource.com cb248d6b16 The following patch removes every (hopefully) reference to network-limit.
Upon further investigation it sets Device parameters that don't exist any
longer, thus causing exceptions.  As it looks like this is completely
obsolete, and no one is actively working on it, we should just rip it out to
end the confusion.

Signed-off-by: Sean Dague <sean@dague.net>
2005-11-16 11:31:57 +01:00
kaf24@firebug.cl.cam.ac.uk 4f114eacb2 Fix function that shouldn't be globally defined.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-11-16 11:30:32 +01:00
kaf24@firebug.cl.cam.ac.uk 119496c00d Trivial coding style fix.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-11-16 11:29:52 +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 3741b397bd Fix 64-bit build that I broke by making acpi table mapping
fixup dependent on CONFIG_XEN_X86 (that only xen/i386
defines).

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-15 19:46:48 +01:00
emellor@leeni.uk.xensource.com 63852bee47 Make watchStart and watchMain global functions rather than classmethods,
meaning that we no longer need to prefix all the field accesses with cls.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-15 19:19:02 +01:00
emellor@leeni.uk.xensource.com da5f951216 Merged. 2005-11-15 19:09:30 +01:00
emellor@leeni.uk.xensource.com 5d0f388f77 Have a watch callback return 0 or 1 depending upon whether it would like to
continue to receive watches.  This means that it is not necessary to probe
around in the xswatch internals to unregister a watch.

Tidy up the hotplug watch handling, moving the nested function out to a
separate place (I don't think that this was a problem in the end, but it was
making me nervous as I was debugging the recent race condition, and I find it
clearer out of the class in any case.  Pass an integer code representing
hotplug status, once it has been parsed from the store, as there are now a few
different places we can detect failure, and it's cleaner to pass a code from
those places.

Small tidy up to XendDomain, removing the unused releaseDomain field.
2005-11-15 19:08:11 +01:00
emellor@leeni.uk.xensource.com 9773f5386e Remove the handling of TypeError inside gather. It is not thrown by int()
when given a non-convertible value, as claimed by the comment, as the exception
ValueError is thrown in that situation.  TypeError is only thrown on int(None),
which cannot actually take place in this code, because of the explicit check
for None.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-15 18:47:39 +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
emellor@leeni.uk.xensource.com 56be995b8a This patch fixes dom0 SMP vcpu hotplug. Currently, domains without
config files (e.g. dom0) don't set info['vcpus'] correctly resulting in
incorrect cpu availablity values in the store.  This prevents hotplug
from functioning.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
2005-11-15 17:30:55 +01:00
emellor@leeni.uk.xensource.com b195c30cf4 This patch fixes a number of vcpu related issues.
1.  xm vcpu-list now shows info for all vcpus by using
    info['max_vcpu_id']+1 as end of the range to query
    vcpu_info.
2.  Add new vcpu fields, online_vcpus, max_vcpu_id to
    XendDomainInfo.sxpr()
3.  Remove filter_cpump() which isn't needed now that
    the per vcpu cpumap field is correct.
4.  Update xm/main.py to use online_vcpus as the number
    vcpus to display in list.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
2005-11-15 17:28:05 +01:00
emellor@leeni.uk.xensource.com adea335ead Merged. 2005-11-15 17:22:42 +01:00
emellor@leeni.uk.xensource.com f1d4a077ea Fix race between xspy_read_watch and xspy_watch, by placing the watch in the
xshandle's list of watches *before* registering the watch with Xend.

Closes bug #392.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-15 17:22:04 +01:00
kaf24@firebug.cl.cam.ac.uk 84cf021917 acpi change is Xen/x86 specific, so make it dependent on
CONFIG_XEN_X86.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-15 17:02:37 +01:00
kaf24@firebug.cl.cam.ac.uk 5e99064784 Upgrade Xen's msr.h to include definitions from Linux 2.6.14.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-15 16:57:02 +01:00
emellor@leeni.uk.xensource.com fd8a620f6b Merged. 2005-11-15 16:24:31 +01:00
danms@us.ibm.com 44631ace40 Reduce the time required to start xm-test domains by allowing the console
to retry connecting to the DomU multiple times.  A polling approach instead
of a wait-and-hope-it-works approach.
2005-11-15 16:07:44 +01:00
emellor@leeni.uk.xensource.com 8d43373af6 Have the vif scripts expect the offline event, not the remove event. With
the remove event, the script environment variable has disappeared, so we must
hook on the offline event instead.  This fix was put into xen-backend.rules,
but not the vif scripts, so they were out of sync, and the interfaces were not
being properly closed down.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-15 15:56:47 +01:00
emellor@leeni.uk.xensource.com 946f9a1879 Added link_exists function, for neatness. Check for the existence of the pdev
before issuing the diagnostic about the missing vdev.  Having a pdev but no
vdev is a strong indicator that the network-bridge script has run once already,
and so there is nothing to worry about.  Having the vdev and no corresponding
pdev is still diagnosed.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-15 15:54:51 +01:00
emellor@leeni.uk.xensource.com 5a408169e4 Merged. 2005-11-15 15:44:37 +01:00
emellor@leeni.uk.xensource.com 0e9ceb580a This patch is largely stylistic, and gets rid of StuddlyCaps formatting in
all the param variables, make consistant use of bold and italics in the the
man pages to make it easier to read, and adds a few minor content additions.
It makes actually reading the man page a lot easier.

Signed-off-by: Sean Dague <sean@dague.net>
2005-11-15 15:36:42 +01:00
emellor@leeni.uk.xensource.com 92c71aea0d This patch adds more content around the scheduler portions of the xm.1 man
page.  Most of this content came from the xensource wiki or the sedf doc in
the Xen tree.  It still needs more work, but it is a good first start.

Signed-off-by: Sean Dague <sean@dague.net>
2005-11-15 15:27:48 +01:00
emellor@leeni.uk.xensource.com c7509dd6cc This patch is another in the continued effort to flesh out the man pages, it
adds pretty reasonable text to most of the code xen domain and host commands
(device and scheduler will come in the future).

Signed-off-by: Sean Dague <sean@dague.net>
2005-11-15 15:26:37 +01:00
kaf24@firebug.cl.cam.ac.uk 597a25c0f4 Update hgignore list. 2005-11-15 15:11:24 +01:00
kaf24@firebug.cl.cam.ac.uk 0d5ddb8806 The new userland monitoring tool, XenMon.
Signed-off-by: Rob Gardner <rob.gardner@hp.com>
2005-11-15 15:09:58 +01:00
kaf24@firebug.cl.cam.ac.uk 0e3a022f8c Extra tracing in Xen to support XenMon.
Signed-off-by: Rob Gardner <rob.gardner@hp.com>

I also appied some fixes and simplifications to the tracing.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-15 14:59:59 +01:00
kaf24@firebug.cl.cam.ac.uk 21b4e1c2a6 Previous changeset trivially broke ioemu/helper2.c. Fix it.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-15 11:36:44 +01:00
kaf24@firebug.cl.cam.ac.uk b4c25d2787 This patch fixed keyboard issue for linux kernel 2.6 in vmx guest.
linux 2.6 kernel keyboard use a timer to poll the kbd state,in
virtualization environment,the kbd interrupt injection is very likely
to happend just after kbd state query in the kbd timer and thus 
will reverse sequence of scan code.
Also fix env->send_event SMP issue.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
Signed-off-by: Edwin Zhai<edwin.zhai@intel.com>
Signed-off-by: Eddion Dong <eddie.dong@intel.com>
Signed-off-by: Asit Mallick <asit.k.mallick@intel.com>
2005-11-15 11:34:29 +01:00
kaf24@firebug.cl.cam.ac.uk 6ff86009b7 Properly declare ioapic_update_EOI().
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-15 11:28:33 +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 fa96186576 get_page_type() must clean up writable pagetable state
before failing, otherwise functions like set_gdt() can
spuriously fail because a page appears to be writable
despite there being pending changes to mapping of that
page in ptwr state.

This should fix the reported cases of crashes in
vcpu_prepare in xenlinux.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-14 19:55:40 +01:00
kaf24@firebug.cl.cam.ac.uk 3c5d699996 Better fix for flushing conflicting batched ptwr state
before emulating a PT access.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-14 19:45:32 +01:00