Commit Graph
7149 Commits
Author SHA1 Message Date
emellor@ewan a1eea1f7e2 Merge. 2005-09-30 17:10:52 +01:00
emellor@ewan 42fb9678c9 Add the config file parsing for the on_{poweroff,reboot,crash} options, so that
they actually take effect.  Added behaviour "rename-restart" for debugging
purposes, that renames the domain out of the way, preserving it for debugging,
but starts a new domain too.

Add explicit remove of old domain paths when creating a new domain, to avoid
stale information affecting us (by shutting the domain down, for example).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-30 17:10:20 +01:00
emellor@ewan db730ecdd1 Minor tidy.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-30 17:05:08 +01:00
kaf24@firebug.cl.cam.ac.uk 8718286bfa Fix earlier merge with Ewan's xenstore changes. 2005-09-30 15:45:20 +01:00
emellor@ewan 8a3d958510 Change rebooting specification so that we can have domains crash and stay
around to be debugged, for example.

Fix problem in XendDomainInfo.eventChannel caused by a mis-merge.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-30 13:59:28 +01:00
emellor@ewan 3ee0160603 Update comment/variable names to reflect the fact that the backend paths now
contain the frontend domid, not the uuid.  The actual functionality is the same,
because the ID is referred to by path level, so the change in semantics is not
a problem.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-30 13:58:08 +01:00
emellor@ewan d934679092 Within the store, split the persistent information regarding a VM from the
transient information regarding a domain.  This allows live localhost migration,
which is important for testing migration, and also allows migration when we
have a distributed store.  The backend paths in the store now refer to the
frontend domain ID, not its UUID, and blktap has changed to match.

To support this split in the information, the cleanup procedure has been split
to match.

Change the save-restore interface between XendDomain, XendDomainInfo, and 
XendCheckpoint, to remove some intermingling, in particular taking XendDomain
out of the loop for the restore procedure.

Improved the recovery procedure to avoid trying to destroy dom0 when recovering.

Added a lock around XendDomain.refresh and one around
XendDomainInfo.refreshShutdown, to improve the behaviour when recreating
domains at startup.  There are still races here, so more thought needs to be
given to the locking.

Live reconfiguration of an existing domain is temporarily broken.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-30 13:41:10 +01:00
emellor@ewan 8d170a2989 Added cache-control headers to pages returned by HTTP server so that pages
expire immediately.  This prevents navigation to stale pages.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-30 11:55:49 +01:00
emellor@ewan 1b19d438d2 Remove the bizarre arrangement whereby EventChannel inherits from dict. Move
the channel-creation logic into eventChannel, making the EventChannel class
simpler.  Remove the closeEventChannel method -- it was simply doing a check
for None, and that isn't enough value to justify the extra method when there
is an EventChannel.close method there too.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-30 11:40:59 +01:00
emellor@ewan e9a3ddb1b2 Merge. 2005-09-30 10:50:19 +01:00
emellor@ewan a4db84d76c Added DevController.configuration and configurations methods. These parse the
store for the current device configuration, and convert it back into the
s-expression used in the config files and the save files.  This means that we
can bring the devices up properly on restore.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-30 10:48:49 +01:00
kaf24@firebug.cl.cam.ac.uk d8c9074e1b Fix typos I introduced into tpmfront driver. 2005-09-30 09:17:07 +01:00
kaf24@firebug.cl.cam.ac.uk c1a7d8b67f Fix compiler warnings when shadow debugging is enabled.
Fix two classes of warnings when debugging of shadow code is enabled:
  - The type_info field in pfn_info is a long, so use a %lx format
    specifier when printing it.
  - Fix a warning about uninitialized use of eff_guest_pte.

Signed-off-by: Michael Vrable <mvrable@cs.ucsd.edu>
2005-09-29 23:44:34 +01:00
iap10@firebug.cl.cam.ac.uk 1a57cb756d Allow kernel built with privileged operation support (e.g. -xen/-xen0) to be used as a guest kernel on x86_64
Signed-off-by: ian@xensource.com
2005-09-29 19:59:18 +01:00
kaf24@firebug.cl.cam.ac.uk 2b0aab1103 More save/restore code in interrupts-enabled contest, where
it properly belongs.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-29 18:28:28 +01:00
kaf24@firebug.cl.cam.ac.uk cdeec4517b Remove unused debug code.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-29 18:15:49 +01:00
kaf24@firebug.cl.cam.ac.uk d2eef91db8 Move xenbus_suspend outside critical region with
interrupts disabled.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-29 17:39:33 +01:00
kaf24@firebug.cl.cam.ac.uk ef03706306 Update GDB server documentation for crashed guests.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-29 17:12:48 +01:00
kaf24@firebug.cl.cam.ac.uk 8b4a91b6d4 Avoid verbosity when connection xenbus -> xenstore.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-29 17:12:20 +01:00
iap10@firebug.cl.cam.ac.uk 4bc0323bff Don't define vectors for IPIs we don't use in Xen
Signed-off-by: ian@xensource.com
2005-09-29 16:57:23 +01:00
kaf24@firebug.cl.cam.ac.uk c43f604d05 Slight rejig avoids grant entry warning message on xm save.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-29 16:39:32 +01:00
vh249@kneesaa.uk.xensource.com 188c38b7c8 full devices expect to be able to read the partition table during xlvbd_add
but couldn't because the device was not marked as BLKIF_CONNECTED and thus
blkif_queue_request discarded the read request. fix bug #220

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-09-29 11:25:50 -04:00
kaf24@firebug.cl.cam.ac.uk 756af00b03 Define new notify_remote_via_irq() interface which is a
safe version for drivers to use that is aware of
save/restore. Post-restore notifications are silently
dropped, in the expectation that xenbus will eventually
get round to telling the driver it needs to reconnect.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-29 15:49:54 +01:00
kaf24@firebug.cl.cam.ac.uk eb3abaa7a2 Change semantics of bind_evtchn_to_xxx and
unbind_evtchn_from_xxx. The bind now returns the IRQ
number on success. The unbind takes this as a parameter
instead of the event-channel port. Also, unbind closes
down the underlying event-channel port if it is still
live.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-29 15:14:03 +01:00
kaf24@firebug.cl.cam.ac.uk 434a7023be VIRQs and IPIs on VCPU#0 are automatically re-bound on save/restore.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-29 13:05:43 +01:00
kaf24@firebug.cl.cam.ac.uk 9eda1f79a8 Reindent more xenlinux files. Remove defunct header file.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-29 11:10:27 +01:00
kaf24@firebug.cl.cam.ac.uk 709c2fe3d3 Set guest selectors to be null if it's not valid when switch to
protected-mode in the guest firmware.

Signed-off-by: Chengyuan Li <chengyuan.li@intel.com>
Signed-off-by: Asit Mallick <asit.k.mallick@intel.com>
2005-09-29 09:59:46 +01:00
kaf24@firebug.cl.cam.ac.uk 47fa53bbb4 Fix fixed-point long multiplication used in time delta
calculations. The carry flag was clobbered before it was
added to the result.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-28 22:18:30 +01:00
kaf24@firebug.cl.cam.ac.uk e248d45a29 merge 2005-09-28 21:06:49 +01:00
kaf24@firebug.cl.cam.ac.uk 93dc2b5a8f Fix gnttab setup, which I broke 2 changesets ago.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-28 18:21:09 +01:00
kaf24@firebug.cl.cam.ac.uk 810d33a0c9 This patch fixes a race between when the disable cpu is marked online
and binding IPIs back to the CPU.  In some cases, an IPI would be sent
to CPU1 before it had allocated a new evtchn.  Moving smp_resume() call
before setting the cpu online fixes this race.  This fixes bug #228
(http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=228).

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
2005-09-28 18:03:20 +01:00
kaf24@firebug.cl.cam.ac.uk 9783e5ee2a Reindent grant-table kernel code and reserve first few
entries for tools use.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-28 18:01:40 +01:00
kaf24@firebug.cl.cam.ac.uk 3ed926b571 Fix netif save/restore.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-28 17:51:24 +01:00
kaf24@firebug.cl.cam.ac.uk 7b96a65903 Fixes for blkif save/restore. A 'dd if=/dev/sda1 of=/dev/null'
seems to lock up the domU kernel on restore still (can be
pinged but not ssh'ed). This still needs investigation.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-28 17:25:08 +01:00
emellor@ewan 82e3e14c86 Merge. 2005-09-28 17:02:17 +01:00
emellor@ewan 4075caad61 Remove unused domain_devtype_get.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-28 17:00:22 +01:00
emellor@ewan 182124af7b Remove unused xend_domain_device.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-28 16:59:34 +01:00
emellor@ewan 1106624d57 Change device IDs to be integers, as required now by DevController. Remove
unused op_device.  Remove broken code to show the domain configuration using
the HTTP server.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-28 16:59:13 +01:00
kaf24@firebug.cl.cam.ac.uk b0f49f74b7 Remove broken assertion in 64-bit shadow pagetable code. 2005-09-28 16:15:20 +01:00
emellor@ewan f955af1faa Nothing. 2005-09-28 15:09:45 +01:00
emellor@ewan 3896bc2b68 Minor tidy up.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-28 15:09:24 +01:00
emellor@ewan 55da9243e8 Added new classmethod xstransact.ListRecursive, and use this inside
DevController to tidy up the code there.  Change the semantics of
xstransact.list and List to return the empty list rather than None if there
are no entries or the directory is not present, as this is easier to handle
for the client.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-28 15:06:48 +01:00
emellor@ewan 5d7d6aff18 Nothing. 2005-09-28 15:03:27 +01:00
emellor@ewan c8bdffa10a Merged. 2005-09-28 15:03:00 +01:00
emellor@ewan 5481d1d22c Merged. 2005-09-28 15:02:42 +01:00
emellor@ewan d92c9d26b0 Merged. 2005-09-28 15:02:26 +01:00
emellor@ewan fa2bf7265c Merged. 2005-09-28 15:02:09 +01:00
emellor@ewan 9ae829ffad Merge. 2005-09-28 15:01:09 +01:00
kaf24@firebug.cl.cam.ac.uk 1efef3efb2 Fix preemptible uses of smp_processor_id() in page fault
handler.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-28 15:00:48 +01:00
emellor@ewan a348233185 Fix returning of results broken by last change.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-28 15:00:11 +01:00