Commit Graph
7284 Commits
Author SHA1 Message Date
djm@kirby.fc.hp.com 56b309fa71 Fixes for correct itir handling in vcpu_translate (broke simulator) 2005-10-11 15:50:21 -06:00
djm@kirby.fc.hp.com 61f98e4923 Convert a few privops to existing hyperprivops in xenlinux 2005-10-09 09:04:49 -06:00
djm@kirby.fc.hp.com 25313e76bb Still more updating ia64 to xen-unstable 2005-10-08 22:55:14 -06:00
djm@kirby.fc.hp.com ecd5eb7620 More updating ia64 to latest xen-unstable 2005-10-08 22:28:02 -06:00
djm@kirby.fc.hp.com 776ce3ec76 Update ia64 to keep up with core changes 2005-10-08 14:28:56 -06:00
djm@kirby.fc.hp.com c575162f2a Merge 2005-10-08 14:28:24 -06:00
kaf24@firebug.cl.cam.ac.uk 7429d6e032 Make libxenstore thread-safe. It also spawns an internal
thread to read messages from the comms channel.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-08 19:19:27 +01:00
djm@kirby.fc.hp.com 84c411d11e Add support for fast mov_to_kr privops
Signed-off by: Dan Magenheimer <dan.magenheimer@hp.com>
2005-10-08 11:37:45 -06:00
kaf24@firebug.cl.cam.ac.uk 47f583a947 Fix locking in /dev/xen/evtchn ioctl.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-08 10:22:01 +01:00
kaf24@firebug.cl.cam.ac.uk eb9505d3ec Add one more parameter to __vmread_vcpu and clean some code.
Signed-off-by: Xin Xiaohui <Xiaohui.xin@intel.com>
Signed-off-by: Li Chengyuan <Chengyuan.li@intel.com>
Signed-off-by: Nakajima Jun <jun.nakajima@intel.com>
2005-10-08 09:54:06 +01:00
kaf24@firebug.cl.cam.ac.uk e34356e6b3 Add a bzImage target for xen kernels for consistency with
native architectures.

Signed-off-by: Rik van Riel <riel@redhat.com>
2005-10-08 09:51:43 +01:00
kaf24@firebug.cl.cam.ac.uk 7aecdc2e7a Xen-friendly glibc selection: appropriate ld-linux can parse
the vsyscall page ELF notes and use the "nosegneg" glibc variant
to ensure that things work fine.

Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Roland McGrath <roland@redhat.com>
2005-10-08 09:49:28 +01:00
kaf24@firebug.cl.cam.ac.uk 1660169e32 Remove linux-2.4 sparse tree.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-07 23:36:26 +01:00
kaf24@firebug.cl.cam.ac.uk 7951aaa23a Some cleanup in TPM-related files and implementation of functionality that
got lost when switching to xenbus.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2005-10-07 23:22:35 +01:00
kaf24@firebug.cl.cam.ac.uk 635fd50b51 Re-enable the pygrub build and fix the build with older
e2fsprogs (tested on RHEL4 with e2fsprogs-1.35 and rawhide
with e2fsprogs-1.38)

Signed-off-by: Jeremy Katz <katzj@redhat.com>
2005-10-07 23:21:23 +01:00
kaf24@firebug.cl.cam.ac.uk 3bd6068aae Move mmio operation structure from domain to vcpu.
Also do some cleanup.

Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Nakajima Jun <nakajima.jun@intel.com>
2005-10-07 23:17:24 +01:00
kaf24@firebug.cl.cam.ac.uk 5b013ee256 Rationalise xenstore header files a little. xenstored.h,
which defines aspects of the 'wire' protocol between
xs daemon and clients in user and kernel land, is now
xs_wire.h and moved to xen's public/io directory. From there
it is more easily accessible by kernels.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-07 16:49:29 +01:00
djm@kirby.fc.hp.com 59169b80f1 Reset hypercall_continuation flag (by Tristan Gingold) 2005-10-07 09:40:37 -06:00
djm@kirby.fc.hp.com cd403883c1 Fix incorrect re-enablement of interrupts (found by Tristan Gingold) 2005-10-07 09:37:41 -06:00
kaf24@firebug.cl.cam.ac.uk 79133a09fb Update kernel watch API to pass the array of watch arguments to the callback
instead of just passing the node.

This allows us to extend watches to have additional arguments (like domids).

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2005-10-07 15:52:43 +01:00
kaf24@firebug.cl.cam.ac.uk 76bd51c23d Change xs_read_watch interface to return a sized array (in userspace and in
kernel).

Add index macros (XS_WATCH_*) for accessing the array to allow for future
expansion.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2005-10-07 15:51:53 +01:00
kaf24@firebug.cl.cam.ac.uk 86a5b732c1 Clean up file vmx.c:
1) change d to v.
 2) remove trailing spaces.

Signed-off-by: Xin Li <xin.b.li@intel.com>
2005-10-07 15:49:33 +01:00
kaf24@firebug.cl.cam.ac.uk 726081b63b Add installation of the udev rules if appropriate. With a normal 'make
install', the udev rules will be installed if udev version is >= 059;
otherwise, the hotplug rules get installed.

When 'make dist' is done, we set a variable so that both hotplug and
udev rules are installed into the dist tarball.  install.sh then takes
care of picking the proper rules.

Also changes the hotplug check to look for a proper udev version

Signed-off-by: Jeremy Katz <katzj@redhat.com>
2005-10-07 14:47:45 +01:00
emellor@ewan 7dc4ee7c76 Merged. 2005-10-07 13:34:45 +01:00
emellor@ewan a87cea82c0 Regig the construction of new domains so that restore and create can share the
construct method.  This ensures that the domain will have any stale paths in
the store removed on restore.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-07 13:34:10 +01:00
kaf24@firebug.cl.cam.ac.uk e3430966b8 Add udev rules that map similar to the hotplug agent. Based off of what
Chris Bainbridge posted the end of last week but doing things as
directly as possible.

Signed-off-by: Jeremy Katz <katzj@redhat.com>
2005-10-07 13:15:52 +01:00
kaf24@firebug.cl.cam.ac.uk 44e73911fe Move the block-phy and block-file handling into a common
block script that gets called by the hotplug agent.

Signed-off-by: Jeremy Katz <katzj@redhat.com>
2005-10-07 13:13:58 +01:00
kaf24@firebug.cl.cam.ac.uk 6f455ecab6 The hotplug agent sets the path now, but that's not as practical to do
with udev rules.  So instead, make sure that the path is set in the vif
scripts themselves.

Signed-off-by: Jeremy Katz <katzj@redhat.com>
2005-10-07 13:11:41 +01:00
kaf24@firebug.cl.cam.ac.uk 5bd7984820 Remove bind_evtchn_to_irq/unbind_evtchn_from_irq from the
evtchn kernel interface. Fix error path in bind_evtchn_to_irqhandler.
Fix backend drivers to avoid double freeing IRQs.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-07 11:54:38 +01:00
kaf24@firebug.cl.cam.ac.uk e8c790c70c The attached fixes a few things to make the blkfront and netfront
drivers better follow the Linux driver model.  Changes include:
* Rename xenbus_register functions to more closely match what's used
with other buses.  Adjust callers
* There's no need to wait for the first vbd of vif and do a timeout if
they fail, device probing is async
* Add sysfs attributes for examining type and nodename
* Set device of gendisk so /sys/block/foo/device points to the right
place
* Set device of net_device so that /sys/class/net/foo/device points to
the right place

Signed-off-by: Jeremy Katz <katzj@redhat.com>
2005-10-07 11:16:28 +01:00
kaf24@firebug.cl.cam.ac.uk f89856186c merge. 2005-10-07 11:04:41 +01:00
kaf24@firebug.cl.cam.ac.uk 8d840be9ee This patch copies the NAT scripts in tools/examples/ to
/etc/xen/scripts/.

Signed-off-by: Jon Mason <jdmason@us.ibm.com>
2005-10-07 11:03:56 +01:00
emellor@ewan 6623c6da78 Merge. 2005-10-07 11:02:09 +01:00
emellor@ewan c1a792dbf3 Merge. 2005-10-07 11:01:23 +01:00
kaf24@firebug.cl.cam.ac.uk 88e2b02038 Move construct_vmcs to arch_vmx_do_launch.
Currently, since VMX guest is brought up by xen0, construct_vmcs is
executed in xen0 hypervisor context, this is not reasonable.  This=20
patch moves construct_vmcs to arch_vmx_do_launch.

Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Nakajima Jun <nakajima.jun@intel.com>
2005-10-07 11:00:56 +01:00
emellor@ewan 1c7d85f77f Rename the source domain on migration, regardless of the live flag. This fixes
localhost non-live migration, and bug #297.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-07 10:58:41 +01:00
kaf24@firebug.cl.cam.ac.uk f16cb294c5 Big simplification of the Xen event-channel interface.
EVTCHNOP_bind_interdomain in particular is much simpler.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-07 10:57:13 +01:00
emellor@ewan 57e576dc3c Fix conflicting merge.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-07 00:21:00 +01:00
emellor@ewan 2a3e2af26c Merged. 2005-10-06 19:43:11 +01:00
emellor@ewan fa670bf40e Remove xm commands block-refresh and vbd-refresh, as these are unsupported.
Allow xm block-detach to take a device name as well as a device ID.  This
closes bug #285 and fixes xm-test's 01_block-destroy_btblock_pos.py and
02_block-destroy_rtblock_pos.py.

Rename and reconnect XendDomainInfo.configureDevice to reconfigureDevice.
There is nothing using this at the moment, mind you.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-06 19:41:29 +01:00
kaf24@firebug.cl.cam.ac.uk 07a233ac7c User tools send evtchn notifications via /dev/xen/evtchn
rather than using hypercall directly.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-06 17:02:38 +01:00
kaf24@firebug.cl.cam.ac.uk c804adf4b6 Change how event channels are allocated and used by the control
tools. /dev/xen/evtchn is now used by daemons to connect to
remote domains: the advantage is that the local ports are garbage
collected automatically if the daemon dies. xen no longer
constructs end-to-end event-channel port pairs -- it allocates an
unbound port in new domU and writes that port to xenstore. It is
then picked up by teh appropriate daemon which does interdomain bind
via /dev/xen/evtchn.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-06 16:07:52 +01:00
emellor@ewan 0c6f366280 Added Zope's test.py, and a unit test to sxp. This test itself isn't very
exciting, but it's there to encourage the creation of more interesting ones.  A
test target has been added to the main Makefile, and the one in tools/python.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-06 15:12:31 +01:00
emellor@ewan 705f86977c Merged. 2005-10-06 11:12:55 +01:00
emellor@ewan 10956b7739 Allow shutdown code SHUTDOWN_HALT, which we handle here in exactly the same
way as POWEROFF.  The tools use the distinction when the code is returned.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-06 11:11:16 +01:00
emellor@ewan 0465a697d3 Rename all dying domains to be prefixed with Zombie. This allows a new domain
to be created with the same name, fixing the race condition inside XendDomain
that caused bug #278.

Move the state_set(TERMINATED) call onto the end of cleanupDomain rather than
destroyDomain, so that this flag is set when XendDomain cleans up a domain
that was killed without going through Xend.

Remove is_terminated, as this check is no longer necessary, since we are using
Zombie prefixes instead.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-06 11:09:14 +01:00
emellor@ewan 435cc5366c Reduce the log level for the 'cannot recreate information for dying domain'
message for all but the first refresh when Xend starts.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-06 11:04:49 +01:00
kaf24@firebug.cl.cam.ac.uk e926a10696 Ensure that all fields of evtchn_op_t are initialised when
making an event_channel_op hypercall. Stefan Berger gets the
credit for diagnosing nasty domU driver problems that were a
result of garbage fields.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-06 10:42:32 +01:00
emellor@ewan 6bee43e0b6 Issue diagnostic if we find dying domains on Xend restart, because we will not
be able to show them any longer, as the paths in the store have gone.  Don't
call cleanupVm when a domain dies, as localhost-migrating VMs will be blown
away by this (there is actually a race between the saving process and the
resuming process).  This fixes bug #276.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-06 10:16:50 +01:00
emellor@ewan 4c78f9561d Raise an exception if an error appears on the pipes to our children, and make
sure that the child's pipes are closed even under that exception.  Move the
handling of POLLHUP to the end of the loop, so that we guarantee to read any
remaining data from the child if POLLHUP and POLLIN appear at the same time.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-06 10:13:11 +01:00