Commit Graph
471 Commits
Author SHA1 Message Date
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
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
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
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 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
kaf24@firebug.cl.cam.ac.uk d8c9074e1b Fix typos I introduced into tpmfront driver. 2005-09-30 09:17:07 +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 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 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 c8bdffa10a Merged. 2005-09-28 15:03:00 +01:00
jrb44@plym.cl.cam.ac.uk 31c338e4c2 Changed -xen x86-32 defconfig CONFIG_EXT2_FS=y
Was previously a module, caused LTP test sysfs01 to fail. Compiling in to
the kernel brings this in to line with our own -xen x86-64 kernel and
vendor kernels.

Signed-off-by: James Bulpin <james@xensource.com>
2005-09-28 14:29:35 +01:00
jrb44@plym.cl.cam.ac.uk 800749d2fa Changed -xen x86-32 defconfig CONFIG_SECURITY_CAPABILITIES=y
Was previously a module, which wasn't getting loaded and causing the
LTP capset01 test to fail. Compiling in to the kernel brings this in to
line with our own -xen x86-64 kernel and vendor kernels.

Signed-off-by: James Bulpin <james@xensource.com>
2005-09-28 14:21:29 +01:00
kaf24@firebug.cl.cam.ac.uk 68fd7614db Move non-transactional and non-idempotent code out of
xenstore transaction retry loops in our device drivers.
Otherwise things get very smelly if a transaction fails and
is retried.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-26 19:13:57 +01:00
djm@kirby.fc.hp.com 72f6940bc6 Merge latest xen-unstable into xen-ia64-unstable 2005-09-26 11:07:49 -06:00
kaf24@firebug.cl.cam.ac.uk f61d64c62e xenbus_transaction_end() returns negative error code.
Therefore need to test for -EAGAIN (not EAGAIN).

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-26 16:31:33 +01:00
kaf24@firebug.cl.cam.ac.uk 0a045970ea Fix tpm split driver to follow changes in the xenbus API.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2005-09-24 08:58:41 +01:00
djm@kirby.fc.hp.com 7ca003d100 Doh! Cut-paste error of file copy in mkbuildtree-pre breaks build 2005-09-23 15:41:28 -06:00
djm@kirby.fc.hp.com 05bd60f033 Remove drivers/acpi/motherboard.c from sparse tree to match
xen-unstable.  For now, copy it from elsewhere (see note
in xen-mkbuildtree-pre)
2005-09-23 13:49:44 -06:00
djm@kirby.fc.hp.com 195564107a More getting xenlinux/ia64 to build with drivers from -sparse 2005-09-23 11:15:48 -06:00
djm@kirby.fc.hp.com b407002e1b Another step towards building xenlinux/ia64 from -sparse 2005-09-23 08:12:28 -06:00
emellor@ewan bdd477ad34 Add check for speed (takes 33 minutes on my laptop, OUCH!)
Make xenstored use tdb, transactions can soft-fail (EAGAIN)
Transactions no longer take root dir, no longer lock & block: commit can fail spuriously with EAGAIN, not ETIMEDOUT.
Speeds up transactions by over 1000 times, should be NFS safe.
New program: xs_tdb_dump to dump raw TDB contents.
Don't do failure testing: we are no longer robust against all ENOMEM 8(
Introduce "struct node" which contains perms, children and data.
Make struct xs_permissions unpadded, so we can write to tdb w/o valgrind complaints.
Gently modify TDB to use talloc, not do alloc on tdb_delete.

Fix up transaction users for new semantics.
Don't need a transaction around a single read in xen/i386/kernel/smpboot.c.
Python: transaction_start() returns True/False rather than raising exception on EAGAIN.
Fix usage comment on xs_transaction_end().
Include stdarg to xs_tdb_dump so it compiles.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2005-09-23 14:28:16 +01:00
djm@kirby.fc.hp.com 7e1e9bf822 Default CONFIG_XEN_PRIVILEGED_GUEST to y for now 2005-09-22 18:11:04 -06:00
djm@kirby.fc.hp.com 58fff2a00b First step toward building drivers/xen for ia64 out of sparse 2005-09-22 18:05:29 -06:00
kaf24@firebug.cl.cam.ac.uk 01668ad066 Remove file from sparse tree. 2005-09-22 20:59:31 +01:00
djm@kirby.fc.hp.com 250cccd224 Minor drivers/xen changes and includes to support xenlinux/ia64 2005-09-22 12:06:33 -06:00
djm@kirby.fc.hp.com 46d993a5ca Merge latest xen-unstable into xen-ia64-unstable 2005-09-22 11:42:01 -06:00
kaf24@firebug.cl.cam.ac.uk 29008aff6c Fixes a vtpm timeout problem for slow machines.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2005-09-22 15:19:30 +01:00
kaf24@firebug.cl.cam.ac.uk 936568e29a Netfront/back always use grant tables now. This cleans up a
whole bunch of code.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-22 14:36:20 +01:00
kaf24@firebug.cl.cam.ac.uk 9508e60958 Remove defunct usb split driver code. It will get replaced with
a new working driver at some point.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-22 14:05:36 +01:00