Commit Graph
8086 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk 5a281883cd Hardcode many cpu features for x86/64 -- we know 64-bit
cpus have many features by default.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-28 17:37:15 +01:00
kaf24@firebug.cl.cam.ac.uk be06e2c74b In alloc_vcpu_struct, after doing a memset on the new allocated vcpu, we
do a memcpy from idle0_vcpu.arch to arch of the new vcpu, which causes
monitor_pagetable is set to a none 0 value.  For VMX guest which is
using external shadow mode, this is not what we really need. the
previous patch is OK for UP VMX guest, but failed on SMP VMX guest.

Signed-off-by: Xin Li <xin.b.li@intel.com>
2005-11-28 16:24:14 +01:00
kaf24@firebug.cl.cam.ac.uk 298ec42fe7 Remove bogus extra unmap_domain_page() call in
free_monitor_pagetable().

Signed-off-by: Xin Li <xin.b.li@intel.com>
2005-11-28 16:17:03 +01:00
Michael.Fetterman@cl.cam.ac.uk f72ca19a29 merge 2005-11-28 15:30:48 +01:00
Michael.Fetterman@cl.cam.ac.uk 81c55aa8d7 merge
Keir did a similar change earlier, but my version removed some special case
code as well, now that __gpfn_to_mfn() can protect itself.
2005-11-28 15:22:47 +01:00
Michael.Fetterman@cl.cam.ac.uk 7cf0a5297e minor printf and log message rework in the shadow code. 2005-11-28 15:12:39 +01:00
Michael.Fetterman@cl.cam.ac.uk 981c3c9b24 Allow __gpfn_to_mfn() to automatically deal with translated domains != current.
Renamed gpfn_to_mfn_foreign() to get_mfn_from_pfn_foreign(), making it more
consistent with get_mfn_from_pfn().
2005-11-28 15:09:44 +01:00
kaf24@firebug.cl.cam.ac.uk f823a38b1f arch/xen/kernel/fixup.c -> arch/xen/i386/kernel/fixup.c
arch/xen/kernel/devmem.c -> drivers/xen/char/mem.c
arch/xen/kernel/smp.c deleted

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-28 14:08:53 +01:00
kaf24@firebug.cl.cam.ac.uk fde3ff3095 Simplify boot_vcpu() implementation.
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2005-11-28 13:39:22 +01:00
emellor@leeni.uk.xensource.com dad18c78cb Change uses of \s within sed regexps -- some versions of sed do not support this
escape.

Allow the vif-nat and vif-route scripts to have netdev specified, rather than
hard-coding eth0.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-28 11:05:07 +00:00
emellor@leeni.uk.xensource.com 74f2b3c56d Added xen-bugtool, an application that collects various system logs and can
save them as a tarball, or submit them to a pre-existing bugzilla bug.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-28 01:47:28 +00:00
emellor@leeni.uk.xensource.com 65b2887f85 Set a console limit, in order to detect runaways.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-27 13:09:46 +00:00
emellor@leeni.uk.xensource.com c675c9215b Fix console handling; saveLog call was broken if ConsoleError occurred.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-27 10:46:26 +00:00
emellor@leeni.uk.xensource.com fd3a649380 Remove keyword from call to xc.domain_setmaxmem; keyword support for this call
was removed with changeset 7955:f72da8799418.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-27 01:28:11 +00:00
emellor@leeni.uk.xensource.com da898dfd4e Merged. 2005-11-27 01:06:44 +00:00
emellor@leeni.uk.xensource.com b2538b1c49 Change the console handling, to remove the loop and timeout if a console fails
to respond first time.  For restored and unpaused domains there is no need for
the console to output data, so we cannot use this as a way to detect the
liveness of a console.  Instead, a command must always be sent to the console,
which means that this failure can only be detected once the constructor of the
Console class has returned successfully.  The __chewall loop still remains, in
order to detect runaway consoles and to clear out previous data from the
console before executing commands, but we no longer treat failure of that
method to read data as a failure of the console itself.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-27 01:06:20 +00:00
emellor@leeni.uk.xensource.com 83b3d6ce35 Use the getId method to tidy up simple call to domid.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-27 01:02:36 +00:00
emellor@leeni.uk.xensource.com cbdece93b2 Remove looping from handling of xm domid. This command should now work first
time after creation of a domain.  Have the getRunningDomains method detect
failure of the xm list command, as indicated by the error code.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-27 01:01:42 +00:00
emellor@leeni.uk.xensource.com 90094c1bd4 Mark 03_network_attach_detach as XFAIL. There are known bugs in the network
frontend device teardown.
 
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-27 00:59:37 +00:00
emellor@leeni.uk.xensource.com 1db9dd55d8 Restore 05_create_noroot, as this test now seems to work, and remove
13_create_multinic from the XFAIL list, as this one works also.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-27 00:58:44 +00:00
emellor@leeni.uk.xensource.com eece6610d4 Remove some Makefile cruft.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-27 00:57:34 +00:00
emellor@leeni.uk.xensource.com 9e1ac75bfa Added device-sharing checks for loopback-mounted files. The existing
check_sharing functions have been rejigged slightly so that the file-specific
stuff can share the code therein.  This separates the actual test from the
generation of the error message, and introduces the canonicalise_mode function.

This also restores the broken teardown functionality for file: devices -- the
writing of XENBUS_PATH/node had been removed, but this is required for file
device teardown.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-27 00:56:34 +00:00
emellor@leeni.uk.xensource.com 85626c44fa Renable FAIL call that was disabled back when block-attach did not work.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-27 00:10:14 +00:00
emellor@leeni.uk.xensource.com 963d9e8fdf Write the error message and the hotplug-status=busy in the same transaction, to
ensure that the message is picked up.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-26 23:59:09 +00:00
smh22@firebug.cl.cam.ac.uk c7458fa52e Fix formatting.
Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-26 12:17:35 +01:00
smh22@firebug.cl.cam.ac.uk d8fa063ad2 Fix save/restore and migrate on x86_64.
Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-26 12:13:39 +01:00
kaf24@firebug.cl.cam.ac.uk b0116a884d More cleanups to the pmd-shared patch.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-26 11:32:57 +01:00
kaf24@firebug.cl.cam.ac.uk 2e9d882a69 Clean the arch_memory_op() for-loop header.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-26 10:43:27 +01:00
smh22@firebug.cl.cam.ac.uk 03d49c4c35 Fix x86_64 build.
Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-26 10:24:08 +01:00
emellor@leeni.uk.xensource.com 10e8ebd5bb Merged. 2005-11-26 01:21:55 +00:00
emellor@leeni.uk.xensource.com f5553a774c Fix the unpause_basic test. The console will appear to have failed, given the
current Console.py API, because no bytes have come from it, but that's not a
failure -- an unpaused domain has no reason to output any more data.  We need
to send a command to the domain before we can be sure whether it is alive or
dead, so move the FAIL call, allowing the console connection to throw
ConsoleError.
 
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-26 01:13:51 +00:00
emellor@leeni.uk.xensource.com 37e9f9f3b5 Fix the 06_block-list_checkremove test. The use of string.find was invalid
(should be testing against -1, not merely using if or if not), one block-list
command was missing, and the block-detach command is asynchronous (to give the
domain time to close down the device) so we need a time.sleep(1) call before
trying xm block-list.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-26 01:08:26 +00:00
emellor@leeni.uk.xensource.com 9d71c153ea Added a comment.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-26 00:38:45 +00:00
emellor@leeni.uk.xensource.com d31f316358 Also, make a small tweak to the 12_block_attach test so that we don't leave
a DomU running with a block device attached.

Signed-off-by: Dan Smith <danms@us.ibm.com>
2005-11-25 23:19:23 +00:00
emellor@leeni.uk.xensource.com d966085083 Check when using physical devices that the device is not already in use. Using
a device from two guests, or from dom 0 and a guest, can destroy the filesystem,
and this check prevents that.  This should ensure that the xm tests
11_block_attach_shared_dom0 and 12_block_attach_shared_domU should pass.
Closes bug #331.

Devices may be shared only if all uses are read-only.  If anyone has read-write
access to a device, then no sharing is allowed.

The mode in the config file may now have an exclamation mark appended, to
indicate that devices may be shared (i.e. that this new check should be
bypassed).  This supports some network block devices, but is clearly dangerous
and should only be used when you know what you are doing.

The mode specified in the config file is now written explicitly to the store,
To implement this, the blkback driver has been changed to create two entries
in /sys describing each device in use.  This means that we can determine which
devices are in use without crawling through the store.

The physical-device node has been changed to give the major and minor of the
device, separated by a colon.  This means that we do not need to pack these
numbers into one, removing the restriction to 8 bit minors that we had in place
before.

The mode specified in the config file is now written explicitly to the store,
rather than using the presence or absence of a read-only node.  This supports
the write-sharing override above.

If the device is in use, a new hotplug status of "busy" is written to the
store, and a message is written to a new hotplug-error node.  Xend uses these
things for diagnosis.

The block scripts do not need to handle online or offline events, so this
support has been removed.  These scripts can be called twice, depending upon
the hotplug config, so they now identify the second run and do not attempt to
set up the device again.

The device directories in the store are cleaned out before new details are
written there.  This prevents stale information from messing up block device
hotplugging.  This will be one cause of "blkback: changing physical device
not supported" messages.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-25 20:58:07 +00:00
kaf24@firebug.cl.cam.ac.uk 83120737f5 Implement new memory_op() XENMEM_machphys_mfn_list. Replaces old
privcmd Linux ioctl and includes an implementation for x86/64.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-25 18:43:35 +01:00
emellor@leeni.uk.xensource.com 7522af5c6a Only write a success node when coming online, not going offline. Delete the
interface from the bridge when going offline -- the comment stating that
interfaces are auto-removed does not seem to be true, at least some of the
time.  Log failure of brctl delif and ifconfig down only at debug level, as
this script may be called more than once, depending upon the hotplug
configuration.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-25 17:12:12 +00:00
emellor@leeni.uk.xensource.com 4494161ec1 Only write a success node when coming online, not going offline.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-25 17:09:49 +00:00
emellor@leeni.uk.xensource.com 88eca2a60d Don't issue the iptables diagnostic when removing entries. Depending upon your
hotplug config, the offline event may come through to this script twice, and
the iptables -D will fail the second time.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-25 17:08:22 +00:00
emellor@leeni.uk.xensource.com 892f3730ae Match rename of parameters to match the corresponding hotplug events. This
took place some time ago, so presumably not many people are using this scripts!

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-25 17:07:19 +00:00
emellor@leeni.uk.xensource.com b7a3863d9a Fix handling of devid_end when devid is an integer, but not present as a device.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-25 17:05:45 +00:00
kaf24@firebug.cl.cam.ac.uk c584947305 In shadow-external mode, every VCPU must free its own
monitor pagetable.

Signed-off-by: Xin Li <xin.b.li@intel.com>
2005-11-25 17:58:36 +01:00
smh22@firebug.cl.cam.ac.uk 4d58b5d8ba Tolerate temporary inconsistency between type info and page contents on
(live) restore. This should now enable live migrate of fork-intensive (or
other page-table-intensive) workloads. 

Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-25 17:53:41 +01:00
emellor@leeni.uk.xensource.com f3ac9a462d check_hotplug fails on one of my machines running ubunto 4.10 "Warty
Warhog", due to misparsing the udevinfo version string. The problem is
caused by an old version of sed that does not appreciate the
regexp. This patch fixes it, and also works on debian unstable and
SLES9SP2. Please apply...

Signed-Off-By: Muli Ben-Yehuda <mulix@mulix.org>
Signed-Off-By: Orna Agmon <ladypine@ladypine.org>
2005-11-25 15:26:19 +00:00
emellor@leeni.uk.xensource.com a8845ad36e Add help option on runtests.sh
Signed-off-by: Murillo Fernandes Bernardes <mfb@br.ibm.com>
2005-11-25 15:18:26 +00:00
dan@elm3b196.beaverton.ibm.com e0f31705c8 Add sanity checks that let us know if there are any problems before
we run the entire suite
2005-11-25 15:17:37 +00:00
emellor@leeni.uk.xensource.com cbc8a361c0 Fix stupid invalid syntax on network-attach tests.
Signed-off-by: Murillo Fernandes Bernardes <mfb@br.ibm.com>
2005-11-25 15:17:18 +00:00
emellor@leeni.uk.xensource.com 837853a460 Merged. 2005-11-25 11:19:09 +00:00
emellor@leeni.uk.xensource.com fefa6c7211 Move XenbusState from the Linux-specific xenbus.h into a new file with the Xen
public interfaces.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-25 11:19:03 +00:00
smh22@firebug.cl.cam.ac.uk 16dc686834 Use page-sized batches in GETPAGEFRAMEINFO2 (and generally tidy up).
Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-25 10:51:09 +01:00