Commit Graph
6076 Commits
Author SHA1 Message Date
adsharma@los-vmm.sc.intel.com e35d13d2fb Fix comments about the localtime option.
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-08-09 11:06:44 -08:00
adsharma@los-vmm.sc.intel.com 9f048aa91c Fix Mouse hang with VNC
I've made some progress on this problem.  Turns out, the VNC emulator is
a little over aggressive in dealing with reset commands for the mouse.
Since there are commands that enable and disable the mouse the VNC
emulator provides this control.  Unfortunately, VNC also interprets
either a `reset' or `set to default' command to also disable the mouse.
This is wrong, neither of these commands are supposed to affect the
enabled status of the mouse so that, when X sends a `reset', no futher
mouse data is sent, making it look like X is hung.

Signed-off-by: Don Dugger <donald.d.dugger@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-08-09 11:06:44 -08:00
adsharma@los-vmm.sc.intel.com 5b1a5c7317 Need to reset device model pid on reboot
Without this, xend will not spawn a new device model process after the reboot.

Signed-off-by: Ke Yu <ke.yu@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-08-09 11:06:44 -08:00
adsharma@los-vmm.sc.intel.com dcf909f29f Support rebooting VMX domains
Signed-off-by: Ke Yu <ke.yu@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-08-09 11:06:44 -08:00
adsharma@los-vmm.sc.intel.com c7876d9e88 Handle VMX domains correctly across xend restarts
This patch remembers the device model pid across xend restarts and
avoids creating duplicate device model processes.

Also, device models don't inherit socket fds from xend (which are closed
on exec now), which used to prevent xend restarting.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-08-09 11:06:44 -08:00
adsharma@los-vmm.sc.intel.com 886d6d4581 Improved error reporting on vmlaunch/vmresume failure.
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-08-09 11:06:44 -08:00
adsharma@los-vmm.sc.intel.com 34394c16d4 Support VCPU migration
Reorganize the low level asm code to support relaunching a VMCS on a different
logical CPU.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-08-09 11:06:44 -08:00
adsharma@los-vmm.sc.intel.com dc939824d6 Separate out VMCS host state initialization from the rest
This is needed to support virtual cpu migration, because the host state
initialization is done on every migration, but the rest of the initialization
is done once per vcpu.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-08-09 11:06:44 -08:00
adsharma@los-vmm.sc.intel.com e1e0c43de3 Add a hook to support CPU migration for VMX domains
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-08-09 11:06:44 -08:00
adsharma@los-vmm.sc.intel.com 6692cc98be Fix config file parsing for VMX domains.
If we define "vif" in the config file, image.py will raise error "vmx:
missing vbd configuration". The reason is "vif" is dealt with as a "vbd"
device.

This patch fixes this issue by dealing with "vbd" and "vif " separately,
removing "macaddr" arg and parsing mac address from "vif" instead.

Also, the vbd doesn't have to be a file anymore, but can be a physical
disk partition.

Signed-off-by: Yunfeng Zhao <yunfeng.zhao@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-08-09 11:06:44 -08:00
kaf24@firebug.cl.cam.ac.uk 191a7d28f8 Directly including ../tools breaks building in separate object tree,
as well as building from mkpatch patch (I believe Rik hit that one).
This puts xenstore headers in linux-public.

Signed-off-by: Chris Wright <chrisw@osdl.org>
2005-08-09 13:53:15 +00:00
kaf24@firebug.cl.cam.ac.uk 09d42caafd Add missing LGPL license notice to python sources
that didn't have them.

Signed-off-by: Mike Wray <mike.wray@hp.com>
2005-08-09 13:17:37 +00:00
kaf24@firebug.cl.cam.ac.uk ba529a426c PAE PMDs must be made writable before freeing. 2005-08-09 13:08:25 +00:00
kaf24@firebug.cl.cam.ac.uk e7f2cf60b5 merge 2005-08-09 13:04:54 +00:00
kaf24@firebug.cl.cam.ac.uk cd6fd4d17c merge 2005-08-09 13:04:31 +00:00
twilkie@paploo.uk.xensource.com 8aa46fd245 Updates to SV. New look. Removed and simplified lots of files. 2005-08-09 12:55:18 +00:00
cl349@firebug.cl.cam.ac.uk 670f10866e merge? 2005-08-09 12:51:06 +00:00
cl349@firebug.cl.cam.ac.uk b9a5e01c19 The following patch is a major restructuring of main.py to be more straight forward, and remove as much code as possible.
It does a number of things:

* It implements the standardized options proposed via my RFC for xm
* It restructures the calling of these functions to be function pointers out
  of a dictionary, instead of subclasses found through inspection
* It consolidates all help info, making it easier to see that the help
  screen looks consistent across commands.  (Per command help isn't yet in
  this patch just global help)
* It moves object importing into the functions that require them only,
  allowing commands like "xm help" to be runable as non root
* It adds command aliasing to provide backwards compatibility with many
  commands (i.e. xm balloon)
* It provides more useful error messages is most fail cases
* It implements a short help by default (which takes < 24 screen lines) as
  requested by Mark W at OLS
* It attempts to trap more exceptions than before and provide useful errors
  based on them (this requires more testing)

This patch makes no changes to any other elements of xen/xm, and works with
all other objects and libraries as is.

Signed-off-by: Sean Dague <sean@dague.net>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-09 12:50:22 +00:00
kaf24@firebug.cl.cam.ac.uk 1787e1a4b7 When building in separate object directory entry.o fails building
because entry.S includes syscall_table.S but it's in the wrong
directory.  This simply adds the obj-dir to the include search path.

Signed-off-by: Chris Wright <chrisw@osdl.org>
2005-08-09 10:47:41 +00:00
kaf24@firebug.cl.cam.ac.uk 87ce6ef033 Fixes for x86/64 writable pagetables, including SMP
guest support.

NOTE: I removed some x86/64 specific tests from get_page_type().
I can't see what good could come of them -- if they caused
things to work then I'm pretty sure there must be some underlying
bug that is what ought to be fixed.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-09 10:42:51 +00:00
cl349@firebug.cl.cam.ac.uk 1b63dcf8f4 Restore suspend/resume calls for the control interface on suspend/resume.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-09 09:34:06 +00:00
cl349@firebug.cl.cam.ac.uk b06a5d76b9 Don't expose xenstore daemon-only permission bits through python bindings.
These bits are daemon-only, never come though to userspace.  We already
changed them once and broke compilation: better they had never been
referenced.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-09 08:44:29 +00:00
kaf24@firebug.cl.cam.ac.uk 72782fe7c8 Simple fix to getdomaininfo cpu_time calculation for
multi-vcpu guests. From Josh Triplett.
2005-08-08 18:43:57 +00:00
kaf24@firebug.cl.cam.ac.uk 52318a414c Fix page_to_phys() macro as suggested by Gerd. 2005-08-08 17:00:21 +00:00
kaf24@firebug.cl.cam.ac.uk bc7615a229 That one is obviously needed to make pae xen-linux work with
more than 4GB.
2005-08-08 16:51:02 +00:00
kaf24@firebug.cl.cam.ac.uk 31b2ad0533 Fix x86/64 xenlinux build. Remove stupid patch.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-08 14:39:29 +00:00
kaf24@firebug.cl.cam.ac.uk 8718ef030b Fix signedness issue in xenlinux timer interrupt handler.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-08 14:13:36 +00:00
kaf24@firebug.cl.cam.ac.uk b352ab0b9a Really fix the x86/64 build. Get rid of push/pop from
scale_delta().
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-08 12:31:04 +00:00
kaf24@firebug.cl.cam.ac.uk 40e0c1037a Fix the x86/64 build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-08 12:07:19 +00:00
kaf24@firebug.cl.cam.ac.uk 592d8f352a Remove dead file. 2005-08-08 11:10:54 +00:00
kaf24@firebug.cl.cam.ac.uk 76cc3f4579 Remove dead files. 2005-08-08 11:06:45 +00:00
kaf24@firebug.cl.cam.ac.uk 8cf6cfe286 Fix both Xen and XenLinux to correctly handle 64-bit
time deltas. Good for robustness and future-proofing.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-08 10:59:22 +00:00
kaf24@firebug.cl.cam.ac.uk 0996bc07b9 1) More testing: include tests which I forgot in previous patch, remove
xs_watch_stress, reduce cycles in "make check" random test.
2) xs_crashme: corrupt random packets going to xenstored, watch it
crash.
3) Handle second input from before we finished output on first one.
4) Fix bug where one-arg operations are given zero args.
5) Fix bug where SET_PERMS fails after blocking on transaction.
6) Fix memory leak when DIRECTORY op given no argument.
7) Fail on first memory leak, for better testing.
8) Fix missing waiting_for_ack initialization for new connections.
9) Ensure all input and output is handled for domains so we don't stall.
10) Fix overrun bug in xs_count_strings on non-nul-terminated strings.
11) New test for clients which write without waiting for response.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2005-08-08 09:13:19 +00:00
kaf24@firebug.cl.cam.ac.uk 9174fdfbfc Fix hw_resend_irq() -- IRQ_PENDING must be propagated back
to evtchn_pending[] bit during irq_enable, or the delayed
callback may never happen.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-08 09:12:22 +00:00
kaf24@firebug.cl.cam.ac.uk 5175be9942 The attached patch adds -Werror to HOSTCFLAGS in Config.mk, makes
xen/tools actually use HOSTCFLAGS (it was already using HOSTCC), and
fixes some gcc-4.0 signedness warnings in xen/tools/symbols.c.

Signed-off-by: Josh Triplett <josht@us.ibm.com>
2005-08-08 08:32:52 +00:00
kaf24@firebug.cl.cam.ac.uk aba8322b54 Attached is a patch to x86_64 xenlinux. It also includes cleanups. We
are also working on SMP + writable pagetable support now.
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
2005-08-08 08:18:38 +00:00
kaf24@firebug.cl.cam.ac.uk a3ec773b26 Writable pagetables for x86/64. Xen portion.
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
2005-08-08 08:18:06 +00:00
kaf24@firebug.cl.cam.ac.uk ea9fb36c36 Really include renamed console files. :-)
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-07 09:13:39 +00:00
kaf24@firebug.cl.cam.ac.uk 2ba532d767 Rename console binaries to xenconsole and xenconsoled.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-07 09:12:55 +00:00
kaf24@firebug.cl.cam.ac.uk 97ef1d5297 this patch fixes X86_64 Xorg Xfree86 issues.
Signed-off-by: Xin Li <xin.b.li@intel.com>
2005-08-07 08:56:57 +00:00
kaf24@firebug.cl.cam.ac.uk bb893a188a Fix perfc_defn.h to allow multiple inclusion. 2005-08-06 15:47:20 +00:00
kaf24@firebug.cl.cam.ac.uk 652bdea7c1 xend prints out some messages when starting, which is annoying. This
patch send those to xend log file instead - people want them always
know where to find them.

Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
2005-08-06 15:45:41 +00:00
kaf24@firebug.cl.cam.ac.uk 1271b79339 More time-interface fixes.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-06 15:24:22 +00:00
kaf24@firebug.cl.cam.ac.uk ce5f74eea0 Fix xenbus_read() usage in shutdown handler. 2005-08-06 09:54:57 +00:00
kaf24@firebug.cl.cam.ac.uk b07bb957ff - include linux/vmalloc.h for vmalloc
- include grant table includes from common.h rather than blkback.c,
  since both C files use grant tables
- include linux/version.h from block.h (a macro there uses it)
- include asm-xen/hypervisor.h from block.h (virt_to_machine)

Signed-off-by: Matthew Chapman <matthewc@hp.com>
2005-08-06 09:52:01 +00:00
kaf24@firebug.cl.cam.ac.uk a5af5704b2 This patch changes the vcpu-hotplug handler from using control message
over to using xenstore for triggers.  Dropping the control messages also
fixes the issue with not being able to use xm vcpu-hotplug on dom0.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
2005-08-06 09:50:51 +00:00
kaf24@firebug.cl.cam.ac.uk 52c8195eb2 This patch changes the probe notifier, per Rusty's suggestion. It
also converts the balloon driver to use the notifier structure, and
removes the root-watch workaround.

Signed-off-by: Dan Smith <danms@us.ibm.com>
2005-08-06 09:49:22 +00:00
kaf24@firebug.cl.cam.ac.uk 32060bbf97 This patch changes the shutdown driver and xend to use strings instead
of codes for signaling a shutdown request.

Also, we fix the return code for the shutdown notifier, so other
notifiers will get to run ;)

Signed-off-by: Dan Smith <danms@us.ibm.com>
2005-08-06 09:48:47 +00:00
kaf24@firebug.cl.cam.ac.uk 18a62c66f0 Fix mach2phys table allocation for 32-bit PAE Xen.
Found by Gerd Knorr.
2005-08-05 15:11:46 +00:00
kaf24@firebug.cl.cam.ac.uk 339bc1ef13 Fix xtime_lock handling to avoid deadlock in sched_clock().
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-05 14:57:43 +00:00