Commit Graph
7374 Commits
Author SHA1 Message Date
emellor@leeni.uk.xensource.com 62164352c8 Revert accidental commit.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-13 17:55:15 +01:00
emellor@leeni.uk.xensource.com 0617a2049d Merged. 2005-10-13 17:51:35 +01:00
emellor@leeni.uk.xensource.com 7e6a2a3288 Remove the diagnostic/recovery when two domains end up with the same name. It
was working around bugs that have gone, and is now more dangerous than useful
-- deadlock is a possibility with this code now.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-13 17:49:56 +01:00
kaf24@firebug.cl.cam.ac.uk 9394398ccf Cleanup CPU hotplug and save/restore. Next step is to
simplify SMP initial boot and then should be easy to merge
i386 and x86/64 smpboot.c.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-13 17:08:59 +01:00
emellor@leeni.uk.xensource.com 633d294bb5 Merge. 2005-10-13 15:26:44 +01:00
emellor@leeni.uk.xensource.com 043da08cae Fix broken test for zombies.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-13 15:25:42 +01:00
kaf24@firebug.cl.cam.ac.uk 8abc2d5b4e Fix multi-cpu save/restore after the max_vcpu patch.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-13 15:19:29 +01:00
kaf24@firebug.cl.cam.ac.uk b5d8fa2d87 Fix client dependency on libxenstore in Makefile.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-13 11:12:11 +01:00
kaf24@firebug.cl.cam.ac.uk 349f04a5df NS_PER_TICK must be a s64 quantity. It is compared with
possibly -ve values which we do not want to 'promote' to
big +ve values.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-13 08:38:49 +01:00
kaf24@firebug.cl.cam.ac.uk ac9725dff6 Currently, we mark an IO request to STATE_IOREQ_READY state before
calling IO handlers in xen HV, i.e. vmx_portio_intercept or
vmx_mmio_intercept.  Actually, STATE_IOREQ_READY means it's ready for
DM handling, only if IO handlers in xen HV won't handle it, it should
be passed to DM. This patch fixes this issue.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Nakajima Jun <nakajima.jun@intel.com>
2005-10-13 08:06:27 +01:00
kaf24@firebug.cl.cam.ac.uk dfc0b259c1 Add memory barriers to console ring accesses. Similar to what
Rusty uses for xenbus messaging.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-12 21:10:14 +01:00
cl349@firebug.cl.cam.ac.uk 4e5630275d Disable watch callbacks only during driver registration instead of all probes.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-10-12 20:58:51 +01:00
cl349@firebug.cl.cam.ac.uk 22abd37313 Disable watch callbacks while running the driver probe callback.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-10-12 18:43:26 +01:00
kaf24@firebug.cl.cam.ac.uk 3b83e00b15 Change xenstore-domain messaging protocol to match what we use
for other inter-domain comms (power-of-two-sized rings, and
free-running indexes). The interface is defined in the spirit of
the console protocol, so maybe some chance of merging them
together later?

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-12 18:25:40 +01:00
kaf24@firebug.cl.cam.ac.uk a54918631e Fix xsls build dependency.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-12 18:18:43 +01:00
kaf24@firebug.cl.cam.ac.uk 98adab9284 Add a option for enabling ne2000 NIC device model
Signed-off-by: Yan Li <yanx.li@intel.com>
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
2005-10-12 17:04:11 +01:00
kaf24@firebug.cl.cam.ac.uk dc8499433a Refactor domain/vcpu allocation to be more separated.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-12 17:01:38 +01:00
kaf24@firebug.cl.cam.ac.uk 5677e95f23 Keir moved barriers,
Competence questions are raised:
        Correctness withers.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2005-10-12 17:00:29 +01:00
kaf24@firebug.cl.cam.ac.uk be8d1a5fd5 Fix error output to stderr in xc_linux_build.
Signed-off-by: Scott Parish <srparish@us.ibm.com>
2005-10-12 16:42:35 +01:00
kaf24@firebug.cl.cam.ac.uk 523636b3b7 New dom0_op to set max vcpus for a domain.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-12 16:34:49 +01:00
kaf24@firebug.cl.cam.ac.uk a442cd731d Fix 64-bit compile warnings in firmware.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-12 16:15:02 +01:00
emellor@ewan 337e9007fc Merged. 2005-10-12 13:21:06 +01:00
emellor@ewan fede7d6cb6 Merged. 2005-10-12 13:20:10 +01:00
emellor@ewan 3e500e67eb Make the error reporting back to xm just a little bit less insane, and fix a
missing import inside blkif.  Fix the command parsing for op_device_destroy and
op_device_configure -- the device IDs should be strings, to allow the user to
specify devices by name as well as number.

This is the second half to the fixes for bug #315.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-12 13:13:32 +01:00
kaf24@firebug.cl.cam.ac.uk 452e11b833 merge 2005-10-12 13:06:35 +01:00
kaf24@firebug.cl.cam.ac.uk f95154b372 Fix firmware build for cross-compilation.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-12 13:03:10 +01:00
emellor@ewan 5ca91af2f8 Ignore any watches that fire for which we do not have a registration. This can
happen if there are watches in flight at the same time as a deregistration, and
also seems to happen spuriously on xend restart.

This fixes the Invalid token error that has been seen on xend restart.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-12 13:00:55 +01:00
emellor@ewan 0041d06c95 Don't try and call DevController if we can't destroy a device ourselves,
because we are already inside the ValueError exception handler, so we know that
the give device identifier is not an integer, and DevController.destroyDevice
only accepts integers.  Fixes bug #315.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-12 12:56:52 +01:00
emellor@ewan c74a06ff24 Improve error message. 2005-10-12 12:54:43 +01:00
emellor@ewan db778d68dd Explicitly state which architectures are going to use /usr/lib64, to allow for
the fact that Itanium does not.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-12 12:04:45 +01:00
emellor@ewan 1d47535f5f Fix the handling of EAGAIN from the transaction_end; we were failing to do any
work if the transaction caused a retry, because optind had been obliterated.
Achieve this by splitting the main body of the loop off to a separate function,
meaning that we get rid of the goto out at the same time.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-12 12:03:03 +01:00
emellor@ewan bd0321055f Added missing __init__.py.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-12 11:51:52 +01:00
kaf24@firebug.cl.cam.ac.uk c7a76688b9 Fix vcpu-hotplug xenbus watch handler and setup.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-12 11:47:16 +01:00
kaf24@firebug.cl.cam.ac.uk 3bf766cdf1 Better cast for ptr->int in residerfs module.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-12 11:13:00 +01:00
kaf24@firebug.cl.cam.ac.uk d8263e8dba Fix Xen public interfaces and the tools to consistently
use stdint-format bitsize types (uint32_t and friends).

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-12 11:07:37 +01:00
emellor@ewan e2c103e485 Fix deadlock in XendDomainInfo when a domain is cleaned up. We are renaming
the domain, to make it clear that it is a zombie, but this renaming cannot
check the uniqueness of the new name, because this causes a deadlock with
XendDomain.  Instead, we allow the name to be non-unique for the case of
zombie domains.

Change the locking in waitForShutdown and state_set to be robust in the face of
exceptions.

Rename the STATE_VM_ constants to STATE_DOM_.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-12 10:11:35 +01:00
emellor@ewan 9887530801 Change import that was confusing pylint (this is a pylint bug, I think).
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-12 10:08:01 +01:00
emellor@ewan 2543c86b2a Issue diagnostics if xm is being run as a non-root user. This used to happen,
but the triggering error has moved, so the diagnostics were broken.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-12 10:07:04 +01:00
kaf24@firebug.cl.cam.ac.uk e8d5405d57 Fix compilation problems with xenstore.
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
2005-10-12 09:34:27 +01:00
kaf24@firebug.cl.cam.ac.uk f7c1a9cd63 This patch implements select() functionality on /dev/vtpm and fixes some
other problems.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2005-10-12 09:33:03 +01:00
kaf24@firebug.cl.cam.ac.uk e4c8d0db29 Fix PAE overflow in xc_linux_build.
Signed-off-by: srparish@us.ibm.com
2005-10-12 09:31:53 +01:00
kaf24@firebug.cl.cam.ac.uk 7ca9b327cd Error print on err path.
Signed-off-by: srparish@us.ibm.com
2005-10-12 09:29:52 +01:00
kaf24@firebug.cl.cam.ac.uk c27ad917f2 The NAT scripts currently work, but the changes below decrease user
error and allow the netmask to be passed in.

Signed-off-by: Jon Mason <jdmason@us.ibm.com>
2005-10-12 09:28:12 +01:00
kaf24@firebug.cl.cam.ac.uk 6f7731e676 Hide the VMX cpu feature from unmodified Guests.
Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
2005-10-12 09:27:28 +01:00
djm@kirby.fc.hp.com e57d870ddd Merged 2005-10-11 16:57:44 -06:00
djm@kirby.fc.hp.com 56b309fa71 Fixes for correct itir handling in vcpu_translate (broke simulator) 2005-10-11 15:50:21 -06:00
emellor@ewan 5dab3dadb9 Merged. 2005-10-11 15:23:19 +01:00
emellor@ewan 2d15771b61 Bring out the common console-handling code from main.py and create.py.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-11 15:01:43 +01:00
emellor@ewan 562df47667 Added auxbin module, for handling auxillary binaries.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-11 14:59:52 +01:00
emellor@ewan ed7f93c25b Remove bang path.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-11 14:57:28 +01:00