direct-io.hg

log

age author revision description
2005-10-19 emellor 7436:18eb059ae471 New network-bridge script and associated gubbins.
2005-10-19 kaf24 7435:f7552b93adeb pygrub's setup.py relies on distutils.UnixCCompiler.has_function(),
2005-10-19 kaf24 7434:b3e6901f4cdb Declare ac_timer_init() properly in ac_timer.h
2005-10-19 emellor 7433:b0f61c2c0746 Merge.
2005-10-19 emellor 7432:4ba11726df73 Added diagnosis tool for broken domains.
2005-10-19 emellor 7431:857b79d27993 Set the console limit for DomUs based on a value set in xend-config.sxp.
2005-10-19 kaf24 7430:41489189b19e Add slack to balloon driver to allow to counteract low-mem
2005-10-19 kaf24 7429:c08e7f0b1ee5 merge
2005-10-19 kaf24 7428:848f21d57278 Better fix to detect failed patch application when building
2005-10-19 emellor 7427:74f693d6e03e Some trivial changes for the tool scripts:
2005-10-19 emellor 7426:b556130d3c6c Added sedf_get functionality to XendClient interface. From David Isaac
2005-10-19 emellor 7425:7c951e3eb5ab Remove unused parameter from addControllerClass. This became unused when the
2005-10-19 emellor 7424:9b18b85e0146 Remove unused shadow_control functionality from the Python layer. This is
2005-10-19 emellor 7423:8dbf531776e1 Take advantage of the new UUID (handle) stored for us in Xen to improve the
2005-10-19 kaf24 7422:4dd58ef39639 Rename 2.6.12.5 patch so it actually gets applied. Fail
2005-10-18 kaf24 7421:aabc33c3c0ac Fix -xen builds.
2005-10-18 kaf24 7420:3233e3921fdd Domain0 doesn't do initial VCPU hotplug via xenstore.
2005-10-18 kaf24 7419:bd1298cf0b4d Remove 'n_vcpu' field from start_info structure. Domain0
2005-10-18 emellor 7418:6ef7386f7370 Protect __del__ from failure inside __init__ by setting inTransaction before
2005-10-18 emellor 7417:c24fae1cd39d Added uuid unit test.
2005-10-18 emellor 7416:377b64f085d0 Fix call to getVCpuCount for dom0.
2005-10-18 kaf24 7415:3d27ee7da0c1 Merge i386/x86_64 smpboot.c into a simplified common Xen version.
2005-10-18 kaf24 7414:7169e31606bd alloc_netif() must return a ERR_PTR() on error, not NULL.
2005-10-18 kaf24 7413:551d099dae3a Clean up some VMX IO handler code:
2005-10-18 kaf24 7412:7155eafc858a Fix x86_64 smp boot:
2005-10-18 kaf24 7411:eea0e77b7683 Allow interdomain channels to bind DOMID_SELF to DOMID_SELF.
2005-10-18 kaf24 7410:76a413a8eef0 There are only six fields in vcpuinfo.
2005-10-18 kaf24 7409:cd2a4d6da0a1 In the shadow mode, thanks to recent patches, the shadow
2005-10-18 cl349 7408:2b95dde72853 Fix transaction EAGAIN handling in xenstore client programs.
2005-10-17 emellor 7407:1d88f303c39c Put back the arg_check calls removed recently -- they aren't as useless as I
2005-10-17 emellor 7406:aa5c62270da7 More removal of BE_DOMAIN flags.
2005-10-17 emellor 7405:f726c39670d9 Merged.
2005-10-17 emellor 7404:75ec60b67f64 Have xenstored initialise its connections, meaning that xend can be out of
2005-10-17 kaf24 7403:895149d24048 Remove useless SIF_XXX_BE_DOMAIN driver flags.
2005-10-17 kaf24 7402:ba9706473941 Make the event-channel pending and mask arrays consist of
2005-10-17 emellor 7401:5e4e11d059a1 Merged.
2005-10-17 emellor 7400:2b92f50b7692 Replace xm vcpu-enable and xm vcpu-disable with one command, xm set-vcpus,
2005-10-17 kaf24 7399:420db20e103c Force RTC driver to fail to load in domU by preventing it
2005-10-17 emellor 7398:446aa56ca4fe Added a TRACE log level, for those versions of Python that do not have it, and
2005-10-17 kaf24 7397:fa0faada967b Plumb GETVCPUINFO dom0_op through to Python. Remove
2005-10-16 kaf24 7396:9b51e7637676 Clean up debug tracing in mm and mm audit code.
2005-10-16 kaf24 7395:f535708469ee Small cleanup in hotplug script.
2005-10-16 kaf24 7394:6cf6f8783282 Fix local_irq_save() and irqs_disabled() to be preemption-safe.
2005-10-15 kaf24 7393:475e2a8493b8 Flush writable pagetable state whenever a domain is
2005-10-15 kaf24 7392:9d9b75569d0e Fix invalidation of shadow LDT on SMP systems.
2005-10-15 kaf24 7391:9d51c5afda92 Remove bogus error message in libxenctrl.
2005-10-15 kaf24 7390:938f209d886b Detect failure to create shutdown process and retry twice
2005-10-15 emellor 7389:4c9dbbb5fe3d Use new -t flag on xenstore-rm to keep the store pruned when devices go away.
2005-10-15 emellor 7388:a0ec7370eec0 Fix installation decision to make the DISTDIR and DESTDIR absolute before
2005-10-15 emellor 7387:bb127c984f74 Added --tidy flag to xenstore-rm that recursively removes any empty directories
2005-10-15 kaf24 7386:fd7b8b051466 At least for the time being, GETVCPUCONTEXT needs to work
2005-10-15 kaf24 7385:27d7c7f226f4 Extend VCPUINFO dom0_op to return status information about
2005-10-15 kaf24 7384:26862e5458eb Fix NAT for domU checksum offload.
2005-10-15 kaf24 7383:5487b11faafa add BT instruction support to VMX MMIO decoder.
2005-10-15 iap10 7382:768b04d09dde Enable hotplug cpus in -xen x86_32 kernel.
2005-10-14 kaf24 7381:06ce728dcede machine_specific_memory_setup() makes the following call to setup e820:
2005-10-14 kaf24 7380:f9b300fab36e This should fix time stopped / going slow problems that
2005-10-14 kaf24 7379:d48bc069122c In addition to setting opaque handle during domain
2005-10-14 kaf24 7378:bd3268de4145 Store an opaque handle (tools uuid) in the domain structure
2005-10-14 iap10 7377:70aa62954e91 Remove unused x86_64 functions.
2005-10-13 emellor 7376:95ec0b134206 Patch for typo causing multiple output in xm list -l, courtesy of Laura Ramirez
2005-10-13 jrb44 7375:56752fea020d Fixed 64 bit Linux build.
2005-10-13 kaf24 7374:b41e51ffa5ea Because of a bug with reference counting against the target guest page
2005-10-13 emellor 7373:3fd239d8b640 Revert accidental commit.
2005-10-13 emellor 7372:bb22622a15fc Merged.
2005-10-13 emellor 7371:cd6f7b548218 Remove the diagnostic/recovery when two domains end up with the same name. It
2005-10-13 kaf24 7370:5a97ee0633e8 Cleanup CPU hotplug and save/restore. Next step is to
2005-10-13 emellor 7369:92c6021f23e4 Merge.
2005-10-13 emellor 7368:7b9547485703 Fix broken test for zombies.
2005-10-13 kaf24 7367:10c93f58b041 Fix multi-cpu save/restore after the max_vcpu patch.
2005-10-13 kaf24 7366:43677823b395 Fix client dependency on libxenstore in Makefile.
2005-10-13 kaf24 7365:9e373ffff3e6 NS_PER_TICK must be a s64 quantity. It is compared with
2005-10-13 kaf24 7364:48f542f8d906 Currently, we mark an IO request to STATE_IOREQ_READY state before
2005-10-12 kaf24 7363:40b4860f554a Add memory barriers to console ring accesses. Similar to what
2005-10-12 cl349 7362:d6e0eb8622cd Disable watch callbacks only during driver registration instead of all probes.
2005-10-12 cl349 7361:179027128d99 Disable watch callbacks while running the driver probe callback.
2005-10-12 kaf24 7360:2796f432858e Change xenstore-domain messaging protocol to match what we use
2005-10-12 kaf24 7359:f8c725f1fce8 Fix xsls build dependency.
2005-10-12 kaf24 7358:c81c8a2821aa Add a option for enabling ne2000 NIC device model
2005-10-12 kaf24 7357:d6e99066959a Refactor domain/vcpu allocation to be more separated.
2005-10-12 kaf24 7356:af38c6b205f6 Keir moved barriers,
2005-10-12 kaf24 7355:9d47f70345a4 Fix error output to stderr in xc_linux_build.
2005-10-12 kaf24 7354:52b9aca1916a New dom0_op to set max vcpus for a domain.
2005-10-12 kaf24 7353:29db5bded574 Fix 64-bit compile warnings in firmware.
2005-10-12 emellor 7352:f3aa156fda6a Merged.
2005-10-12 emellor 7351:97648825856b Merged.
2005-10-12 emellor 7350:b938c4965a8f Make the error reporting back to xm just a little bit less insane, and fix a
2005-10-12 emellor 7349:00a324b3a2db Ignore any watches that fire for which we do not have a registration. This can
2005-10-12 emellor 7348:09447f91ab49 Don't try and call DevController if we can't destroy a device ourselves,
2005-10-12 emellor 7347:3dd931842e71 Improve error message.
2005-10-12 kaf24 7346:26599c5d298d merge
2005-10-12 kaf24 7345:68e754d7e1cb Fix firmware build for cross-compilation.
2005-10-12 emellor 7344:ffbee4415bf7 Explicitly state which architectures are going to use /usr/lib64, to allow for
2005-10-12 emellor 7343:41c970cf82ba Fix the handling of EAGAIN from the transaction_end; we were failing to do any
2005-10-12 emellor 7342:b719806d1265 Added missing __init__.py.
2005-10-12 kaf24 7341:def91f2dbc89 Fix vcpu-hotplug xenbus watch handler and setup.
2005-10-12 kaf24 7340:43b40ae7904c Better cast for ptr->int in residerfs module.
2005-10-12 kaf24 7339:b3a255e88810 Fix Xen public interfaces and the tools to consistently
2005-10-12 emellor 7338:067b9aacb6c2 Fix deadlock in XendDomainInfo when a domain is cleaned up. We are renaming
2005-10-12 emellor 7337:00a24908057f Change import that was confusing pylint (this is a pylint bug, I think).
2005-10-12 emellor 7336:1d8933fa01d2 Issue diagnostics if xm is being run as a non-root user. This used to happen,
2005-10-12 kaf24 7335:e89a7279d602 Fix compilation problems with xenstore.
2005-10-12 kaf24 7334:801ffcaa450b This patch implements select() functionality on /dev/vtpm and fixes some
2005-10-12 kaf24 7333:1fd8bd359118 Fix PAE overflow in xc_linux_build.
2005-10-12 kaf24 7332:0fd84f168103 Error print on err path.
2005-10-12 kaf24 7331:456b91c81427 The NAT scripts currently work, but the changes below decrease user
2005-10-12 kaf24 7330:c05d5e85ded2 Hide the VMX cpu feature from unmodified Guests.
2005-10-11 djm 7329:74d56b7ff46c Merged
2005-10-11 djm 7328:333f722ed6d0 Fixes for correct itir handling in vcpu_translate (broke simulator)
2005-10-09 djm 7327:bb8120b53a96 Convert a few privops to existing hyperprivops in xenlinux
2005-10-08 djm 7326:eba5d2627b18 Still more updating ia64 to xen-unstable
2005-10-08 djm 7325:042714c06042 More updating ia64 to latest xen-unstable
2005-10-08 djm 7324:0ffa4369cbb3 Update ia64 to keep up with core changes
2005-10-08 djm 7323:4e0c94871be2 Merge
2005-10-08 djm 7322:0ba10f7fef51 Add support for fast mov_to_kr privops
2005-10-07 djm 7321:cbe6b4c4480f Reset hypercall_continuation flag (by Tristan Gingold)
2005-10-07 djm 7320:f81e637e7741 Fix incorrect re-enablement of interrupts (found by Tristan Gingold)
2005-10-03 djm 7319:98fb7e03a886 Some cleanup of reflection code
2005-09-29 djm 7318:c22741d000a5 Keep up with recent changes in xen-unstable
2005-09-29 djm 7317:61b3b357d827 Merge xen-unstable into xen-ia64-unstable
2005-09-29 djm 7316:93e27f7ca8a8 Merge
2005-09-29 djm 7315:c0ac925e8f1d Newer compilers don't allow strings to cross newlines?
2005-09-29 djm 7314:8463ce38eda3 Minor code restructure in vcpu_translate (prep for more later)
2005-10-11 emellor 7313:4e335372ace8 Merged.
2005-10-11 emellor 7312:713328270fb3 Bring out the common console-handling code from main.py and create.py.
2005-10-11 emellor 7311:c5553e06a8bc Added auxbin module, for handling auxillary binaries.
2005-10-11 emellor 7310:293f4417c089 Remove bang path.
2005-10-11 emellor 7309:903d88857972 Allow parallel 32- and 64-bit Xen installations. Move xc_save, xc_restore,
2005-10-11 jrb44 7308:959d33fbd660 Added xsls to xenstore Makefile install dependencies to fix "make dist".
2005-10-11 kaf24 7307:2d2414d6f938 Publish the virtual console interface in public/io/console.h.
2005-10-11 kaf24 7306:46bd7564125d Xenstore client library spawns a reader thread the first
2005-10-11 kaf24 7305:5cca372aec05 Echo request and transaction identifiers in xenstored
2005-10-11 kaf24 7304:e43ffb31de48 Fix xenbus internal join() function to be concurrency safe
2005-10-11 emellor 7303:90f4f4dc3f62 Added missing global statement, to ensure that the logfilename variable is
2005-10-11 emellor 7302:1a4f8d6ddd19 Fix broken xm commands.
2005-10-11 emellor 7301:813bc65bde2a Added doccomment.
2005-10-11 emellor 7300:dfadbb90d092 Added xsls utility, which recursively lists the contents of the store.
2005-10-11 kaf24 7299:4b93736d64f7 Fix 64-bit compile of pygrub. From Charles Duffy.
2005-10-11 kaf24 7298:a9924f452b3a Fix the legacy %-build targets for dist installation of
2005-10-11 emellor 7297:e97436e48e56 Fix for "unsubscriptable object" error, courtesy of Kurt Garloff
2005-10-10 kaf24 7296:5da7f98f91e7 Fix changeset banner for source tarballs.
2005-10-10 kaf24 7295:60b0ac30ba18 Local repo version number in Xen boot log.
2005-10-10 kaf24 7294:9afe86e6d9dd Kernel makefiles do not define $(LN).
2005-10-10 emellor 7293:0f33cbec4e36 This patch fixes an error in the xm create path when the
2005-10-10 emellor 7292:bea563754fe6 When a domain is introduced to xenstored, check whether this has already
2005-10-10 emellor 7291:7a48bfd1aba6 Mention -s option in usage.
2005-10-10 emellor 7290:3a341763d8b8 Fix completely broken xenstore_read function.
2005-10-10 kaf24 7289:5134f3c512c8 Fix cancellation of pending watch events on watch unregistration.
2005-10-10 kaf24 7288:03d69dbea152 Fire watch callbacks on their own workqueue. Mainly this is
2005-10-10 emellor 7287:f9bd8df8a098 Merged.
2005-10-10 emellor 7286:d6d1c3cbc151 Rewritten XendLogging to not be a singleton class, and not have methods used
2005-10-10 kaf24 7285:015f8ae81276 xenstored now supports multiple concurrent transactions per
2005-10-10 emellor 7284:1ac39c7a0435 Merged.
2005-10-10 emellor 7283:0e7c48861e95 Added error logging to the block hotplug script, and support facilities for
2005-10-10 kaf24 7282:b7dce4fe2488 No need to gate xenstored reading requests from a
2005-10-09 kaf24 7281:b67873a9e3ac Simplify reply logic in xenstored. Maintain a linked list
2005-10-09 kaf24 7280:f1e8d5f64105 Extend xenbus/xenstore client interface to include a transaction
2005-10-09 smh22 7279:5df423407700 Added some clarifying comments regarding xenbus/xenstore kernel startup.
2005-10-09 kaf24 7278:8016551fde98 Refactor xenbus to break up the xenbus_lock and permit watches
2005-10-09 vh249 7277:ab93a9a46bd4 Don't increment mi->usage is alloc_major_info return NULL
2005-10-09 smh22 7276:8f7ee9ab31ac Fix cpu hotplug issue with SMP guests (including save/restore).
2005-10-09 emellor 7275:fe4c1d44e899 Alter logging statements to move the interpolation inside the logging function,
2005-10-09 emellor 7274:bb113ea17659 Remove unnecessary extraction of ssidref from config inside restore -- this
2005-10-09 emellor 7273:32f9300618d6 /home/emellor/log2
2005-10-09 emellor 7272:8e3ec9ab0075 Remove cruft.
2005-10-09 emellor 7271:59440a003278 Remove code seeding RNG from /dev/urandom. The random module's default RNG is
2005-10-09 emellor 7270:f15892b95965 Append a newline to error messages, so that they are parsed by XendCheckpoint.py
2005-10-09 emellor 7269:17f110647efa Change xenbus callbacks to match new signature of xenbus_watch.
2005-10-08 kaf24 7268:2144de6eabcc Make libxenstore thread-safe. It also spawns an internal
2005-10-08 kaf24 7267:e69413dca684 Fix locking in /dev/xen/evtchn ioctl.
2005-10-08 kaf24 7266:801b2bd7ef2e Add one more parameter to __vmread_vcpu and clean some code.
2005-10-08 kaf24 7265:a4df9003c54d Add a bzImage target for xen kernels for consistency with
2005-10-08 kaf24 7264:32c3658d7391 Xen-friendly glibc selection: appropriate ld-linux can parse
2005-10-07 kaf24 7263:f1abe953e401 Remove linux-2.4 sparse tree.
2005-10-07 kaf24 7262:bf07490fab19 Some cleanup in TPM-related files and implementation of functionality that
2005-10-07 kaf24 7261:18f765da2725 Re-enable the pygrub build and fix the build with older
2005-10-07 kaf24 7260:1b4ad6eb6968 Move mmio operation structure from domain to vcpu.
2005-10-07 kaf24 7259:62d815160f01 Rationalise xenstore header files a little. xenstored.h,
2005-10-07 kaf24 7258:c45c3d6b1a60 Update kernel watch API to pass the array of watch arguments to the callback
2005-10-07 kaf24 7257:402b5eb85905 Change xs_read_watch interface to return a sized array (in userspace and in
2005-10-07 kaf24 7256:4b9c9b85b3a5 Clean up file vmx.c:
2005-10-07 kaf24 7255:409cea2432fc Add installation of the udev rules if appropriate. With a normal 'make
2005-10-07 emellor 7254:e9e10e783ccd Merged.
2005-10-07 emellor 7253:b5c5360a61d0 Regig the construction of new domains so that restore and create can share the
2005-10-07 kaf24 7252:99532f6b2ae3 Add udev rules that map similar to the hotplug agent. Based off of what
2005-10-07 kaf24 7251:1b0dbfedc043 Move the block-phy and block-file handling into a common
2005-10-07 kaf24 7250:e31e64e00ac3 The hotplug agent sets the path now, but that's not as practical to do
2005-10-07 kaf24 7249:5eda9308b0ca Remove bind_evtchn_to_irq/unbind_evtchn_from_irq from the
2005-10-07 kaf24 7248:2a3e10a132a2 The attached fixes a few things to make the blkfront and netfront
2005-10-07 kaf24 7247:8b0958155380 merge.
2005-10-07 kaf24 7246:306f6ec86ea8 This patch copies the NAT scripts in tools/examples/ to
2005-10-07 emellor 7245:f3c590641000 Merge.
2005-10-07 emellor 7244:a6420243710d Merge.
2005-10-07 emellor 7243:7079bb72ceca Rename the source domain on migration, regardless of the live flag. This fixes
2005-10-07 kaf24 7242:ddb803b6308b Move construct_vmcs to arch_vmx_do_launch.
2005-10-07 kaf24 7241:37bea65ed6ca Big simplification of the Xen event-channel interface.
2005-10-07 emellor 7240:48df3efaf61c Fix conflicting merge.
2005-10-06 emellor 7239:62190db89326 Merged.
2005-10-06 emellor 7238:f5320ac7ed31 Remove xm commands block-refresh and vbd-refresh, as these are unsupported.
2005-10-06 kaf24 7237:76a7a7aa27e4 User tools send evtchn notifications via /dev/xen/evtchn
2005-10-06 kaf24 7236:4083eb31def0 Change how event channels are allocated and used by the control
2005-10-06 emellor 7235:cd228621e1fd Added Zope's test.py, and a unit test to sxp. This test itself isn't very
2005-10-06 emellor 7234:bd37123974b2 Merged.
2005-10-06 emellor 7233:4ab4f023a6ce Allow shutdown code SHUTDOWN_HALT, which we handle here in exactly the same
2005-10-06 emellor 7232:0bc466c25560 Rename all dying domains to be prefixed with Zombie. This allows a new domain
2005-10-06 emellor 7231:1cfe0875658d Reduce the log level for the 'cannot recreate information for dying domain'
2005-10-06 emellor 7230:b0bc53c9d5b6 Issue diagnostic if we find dying domains on Xend restart, because we will not
2005-10-06 emellor 7229:971e7c7411b3 Raise an exception if an error appears on the pipes to our children, and make
2005-10-06 kaf24 7228:ba0bbf9d29ff Ensure that all fields of evtchn_op_t are initialised when
2005-10-05 vh249 7227:c344d6944d2f mixup in vcpu-enable and vcpu-disable help string
2005-10-05 kaf24 7226:bde548fff7b4 Reformat the pfn_info structure to ensure that
2005-10-05 kaf24 7225:21606b84b730 Activate suspending/resuming of the TPM interface and add
2005-10-05 kaf24 7224:f98c8238e909 Gentoo compatible stuff has to be done *before* the set -e. You could also do
2005-10-05 kaf24 7223:c3d9b7013b14 EVTCHNOP_alloc_unbound can allocate a port in an arbitrary
2005-10-05 emellor 7222:6f71824a45c1 Fix the handling of VCPUs, specifically wrt the broken VCPU hotplugging, bug
2005-10-05 emellor 7221:6e5463aec499 Change boolean config option parsing to allow True and Y and similar useful
2005-10-05 kaf24 7220:a37a4abc1191 Fix save/restore -- too much work being done in
2005-10-05 kaf24 7219:89b1b67fc2c4 Emulate guest reads of CR4, masking features that Xen
2005-10-05 kaf24 7218:438f1b53682b Send event-channel notification from console daemon
2005-10-05 kaf24 7217:072fb38810a6 Revert changes checked in by mistake in previous changeset.
2005-10-05 kaf24 7216:8f8e42887f09 Clean up DESTDIR handling. Default install is to root
2005-10-05 emellor 7215:6bbfd6a98974 Merge (with trepidation).
2005-10-05 emellor 7214:b4800e204757 Recover from name uniqueness violation by renaming. Fixes bug #277.
2005-10-05 kaf24 7213:e579bef0d237 Add Gentoo handling to network-bridge. Based on patches
2005-10-05 kaf24 7212:e643fccb851b Handle the case where there are no spaces or parameters
2005-10-05 kaf24 7211:8be702637183 Fix DOM0_PHYSINFO to return correct value for total
2005-10-05 kaf24 7210:b4b12c9f1200 Currently, the scripts in /etc/xen/scripts won't get overwritten if they
2005-10-05 kaf24 7209:e6ecfb4f4a24 The attached patch places an updated TPM driver into the sparse directory.
2005-10-05 kaf24 7208:303d51d0d578 Restructure the makefiles used to drive builds of linux 2.6 kernels.
2005-10-05 kaf24 7207:aad1d3e231ff Move setting of configuration variables to Config.mk.
2005-10-05 emellor 7206:c60036fe7418 Removed the EventServer, replacing the events fired with simple logging
2005-10-05 emellor 7205:33cd9a7a903b imported patch /home/emellor/block_detach.patch
2005-10-05 emellor 7204:22449386d38d Explicitly close files on save and restore. Rename all local variables named id or slice so as not to clash with the builtins.
2005-10-04 emellor 7203:2c9e66555ff4 Explicitly close files.
2005-10-04 emellor 7202:00037ba13f0b Clean up domains if creation/restoration fails.
2005-10-04 emellor 7201:db651da37899 Fix typo.
2005-10-04 emellor 7200:bc325488f47f Merge the child-process handling of the save and restore functions into one
2005-10-04 emellor 7199:84c585a99a7b Removed unused xen_domain method, and unused imports. Comment those methods
2005-10-04 emellor 7198:81246a2923d2 Fix call to state_set inside preserve (was erroneously calling set_state).
2005-10-04 emellor 7197:b4c388a004c0 Fix xm restore broken by missing return statement.