Commit Graph
7165 Commits
Author SHA1 Message Date
emellor@ewan 0b630dbfca Remove the reason parameter from XendDomain.destroy -- it is useless. Accept
the halt shutdown reason inside XendDomainInfo.  This indicates that the
domain should be shutdown just like a poweroff, except that the domain is not
restarted, regardless of the on_poweroff configuration setting.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-04 00:30:49 +01:00
emellor@ewan c9577eb490 Added method XendDomain.privilegedDomain and use that inside DevController to
avoid hard-coding the domain ID 0.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-04 00:21:49 +01:00
jrb44@plym.cl.cam.ac.uk 72835ed4aa Possible fix for the SEDF scheduler assertion problem.
Signed-off-by: Stephan Diestelhorst <Stephan.Diestelhorst@{cl.cam.ac.uk, inf.tu-dresden.de}>
2005-10-03 23:28:24 +01:00
kaf24@firebug.cl.cam.ac.uk 836ead33c4 Create new vcpu_op() hypercall. Replaces old boot_vcpu()
hypercall and vcpu-related schedop commands.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-03 19:14:02 +01:00
kaf24@firebug.cl.cam.ac.uk 11dfa156fe Allow adjustment of the size of TPM transfer buffers
to the size that a lower-layer driver supports.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2005-10-03 15:05:37 +01:00
kaf24@firebug.cl.cam.ac.uk 7978a107d1 x86/64 was using the plain i386 version of the microcode
driver instead of the Xen version.

Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
2005-10-03 15:04:27 +01:00
kaf24@firebug.cl.cam.ac.uk 0603254247 Do not pickle vcpu state on save/restore. We can construct
suitable initial state for each vcpu during restore, without
need for pickle/unpickle.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-03 15:02:23 +01:00
kaf24@firebug.cl.cam.ac.uk 38f9dc4f90 Dynamically allocate mmu_update array in
direct_remap_pfn_range(). This allows larger batches and
avoids stack overflow.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-03 10:26:29 +01:00
emellor@ewan 5cd7b9b437 The stopgap in changeset 7152:a73ab0ddf990 was broken -- revert the change to
domain_lookup_by_name, as it causes an infinite loop on startup.  Leave the
domain_lookup change.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-02 23:56:13 +01:00
vh249@kneesaa.uk.xensource.com 3b4a8a957c remove useless ptep_establish_new function (called set_pte_at now)
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-10-02 17:45:32 -04:00
emellor@ewan 54795b5c53 Merged. 2005-10-02 18:24:41 +01:00
emellor@ewan c8a89eae6b Move XendVnet from using DBMap etc to using xstransact. This is the last
dependency upon xsnode, xsobj, and xsresource, so these can all go.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-02 18:22:22 +01:00
emellor@ewan ec7bb10f8e Call refresh in the domain_lookup and domain_lookup_by_name methods. This
should reduce the incidence of stale domain information being used by xend, but
is only a stop-gap.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-02 18:21:01 +01:00
emellor@ewan f578bafffd Fix call to XendCheckpoint.restore, since that method no longer needs a
XendDomain instance passed in.

Remove meaningless indirection of imports through web/reactor.py.  Tidy import
statements.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-02 18:17:26 +01:00
kaf24@firebug.cl.cam.ac.uk 11ceacc920 Also send xenbus notifications using evtchn as handle. It's
always up-to-date as it's reinitialised for us by external
tools during save/restore and migration.
2005-09-30 17:37:52 +01:00
kaf24@firebug.cl.cam.ac.uk a26d93bd22 xencons must notify via evtchn. It can't use the irq as the
notification handle because console is used early, before the
irq is set up.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-30 17:34:01 +01:00
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