Commit Graph
7614 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk 06c12463fc This is another patch that adds an arg_check() to domid and domname so
that we don't dump stack if a user runs either without an argument.

Signed-off-by: Dan Smith <danms@us.ibm.com>
2005-11-04 11:05:10 +01:00
kaf24@firebug.cl.cam.ac.uk 4fc33b9db4 This patch adds an arg_check into the set_vcpus code in xm, so that we
don't output a stack trace if <2 arguments are passed.

Signed-off-by: Dan Smith <danms@us.ibm.com>
2005-11-04 11:03:20 +01:00
kaf24@firebug.cl.cam.ac.uk e5c7a2d299 Simplified vmx_platform.c by removing obsolete code and redundant vmread's.
Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
2005-11-03 09:58:45 +01:00
emellor@leeni.uk.xensource.com 15e614f25d Merged. 2005-11-03 02:45:07 +01:00
emellor@leeni.uk.xensource.com a9fc2ae6bc Fix handling of child in forkHelper.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-03 02:44:41 +01:00
kaf24@firebug.cl.cam.ac.uk 13f2a6e868 Fix map_domain_page() by reverting a bogus simplification
that I committed in changeset 5303:d68bc64e2cfe38a85483a8c5d349b4ee45e91fb9
This fixes some very weird and nasty Xen crashes.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-02 19:12:30 +01:00
sos22@douglas.cl.cam.ac.uk 9ef84e4f94 Merge.
Signed-off-by: Steven Smith, sos22@cam.ac.uk
2005-11-02 17:29:32 +01:00
emellor@leeni.uk.xensource.com f50296a467 Merged. 2005-11-02 16:43:32 +01:00
emellor@leeni.uk.xensource.com fe1e7e447b Rewritten handling of child stderr to avoid deadlock.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-02 16:42:29 +01:00
kaf24@firebug.cl.cam.ac.uk ea894244ed Make the -V option of xenconsoled actually do something.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2005-11-02 11:25:21 +01:00
kaf24@firebug.cl.cam.ac.uk 0a2a26aa78 Make it clear that the result of xs_get_domain_path() must be free()'d. 2005-11-02 11:25:08 +01:00
kaf24@firebug.cl.cam.ac.uk 68917d1380 Fix memory leak in domain cleanup spotted by doremifa in #xen.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2005-11-02 11:24:49 +01:00
kaf24@firebug.cl.cam.ac.uk a108cd0052 The attached patch to 1) fix a 64-bit bug with some of the data packing,
and 2) adds a workaround for an Infineon TPM hardware bug.

Signed-off-by: Vinnie Scarlata, Joseph Cihula (@intel.com)
2005-11-02 11:21:46 +01:00
kaf24@firebug.cl.cam.ac.uk 37d122dc76 fix VMX decoder for MOVZ instruction.
In VMX decoder, we always assume the 2 operands of x86 instructions are
in the same length, however, MOVZ is an exception.
This patch fixes MOVZ instruction handling.

Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Dan Xu <dan.d.xu@intel.com>
2005-11-02 11:19:48 +01:00
kaf24@firebug.cl.cam.ac.uk 1b0e85247f Just some small code cleanup to shadow.c, no logic changed.
Signed-off-by: Xin Li <xin.b.li@intel.com>
2005-11-02 11:18:51 +01:00
kaf24@firebug.cl.cam.ac.uk d7345c440f Changeset 7419 introduced a check for DOM0 before setting a bit in the
cpu_present map.  This prevents domU SMP kernels without HOTPLUG_CPU
support from booting.  Secondary cpus need to be present and online
before init/main.c:do_basic_setup() calls init_workqueues() (which
initializes per-cpu workqueues).

Without this patch, non HOTPLUG_CPU enabled kernels hang when flushing
cpu workqueues as the spinlock in the structure is never initialized (it
has a default value of zero which means the lock has been acquired on 
x86).

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-02 00:08:01 +01:00
kaf24@firebug.cl.cam.ac.uk d9731f3f6c >I'm hitting an ASSERT in alloc_monitor_pagetable() with debug=y and I
>can reproduce the condition when debug isn't on. The monitor_table is
>not zeroed when entering alloc_monitor_pagetable() - this happens when I
>create a vmx guest. I'm not sure why this happening at first glance.
>File: xen/arch/x86/shadow32.c
>Line: 689
>System: VT/VMX FC3 x86_32 (I can reproduce on FC4 x86_64 too)
>ASSERT(pagetable_get_paddr(v->arch.monitor_table) == 0);

Solution:
What happens is that the monitor page table is not zeroed out
during the initial setup for VMX guests.  As a result, at a later
time when we enable shadow mode for these VMX guests, we trip on
the ASSERT problem above.  To fix this, we just need to initialize
the monitor page table to 0 before calling vmx_final_setup_guest()
and enabling shadow mode.
2005-11-01 19:13:06 +01:00
kaf24@firebug.cl.cam.ac.uk 31ed041b51 Fix 'nosmp' and ensure that CPU#0 is reported properly
by /proc/cpuinfo. Also fix the sibling and core maps.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-01 17:49:19 +01:00
kaf24@firebug.cl.cam.ac.uk 64217a3735 Temporary fix for blkfront failure on save/restore.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-01 16:44:25 +01:00
kaf24@firebug.cl.cam.ac.uk f6177063df Fix CPU hotplug -- cpu initialisation functions must be declared
__cpuinit or later hotplug references freed code and data.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-01 16:28:20 +01:00
emellor@leeni.uk.xensource.com 6a889fa0e3 Merged. 2005-11-01 16:02:43 +01:00
emellor@leeni.uk.xensource.com c174bece23 Catch KeyboardInterrupt, to avoid spewing error messages on Ctrl-C.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-01 15:57:19 +01:00
emellor@leeni.uk.xensource.com f8681f1674 Added missing __init__.py.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-01 15:24:47 +01:00
sos22@douglas.cl.cam.ac.uk 0b76cfe422 Make SMP alternatives work under xenolinux rather than just native,
since part of it seems to have gotten lost.

Signed-off-by: Steven Smith, sos22@cam.ac.uk
2005-11-01 13:38:20 +01:00
kaf24@firebug.cl.cam.ac.uk b35976750a Disable guest firmware apm since no apm is supported now to remove the
apm handle idle request error when guest os boot

Signed-off-by: Winston Wang <winston.l.wang@intel.com>
2005-11-01 10:37:07 +01:00
kaf24@firebug.cl.cam.ac.uk d5dce3e452 The following patch adds a section for SHUTDOWN OPTIONS for the xmdomain.cfg
man page.  It documents the new set of options introduced over the last few
weeks.

Signed-off-by: Sean Dague <sean@dague.net>
2005-11-01 10:36:19 +01:00
kaf24@firebug.cl.cam.ac.uk e573e24eb8 Fix docs: xm set-mem => xm mem-set.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2005-11-01 10:34:34 +01:00
kaf24@firebug.cl.cam.ac.uk 2c6df848e6 There is an error in xenstat, such that a wild pointer is being
dereferenced and written to.

Signed-off-by:  Charles Coffing <ccoffing@novell.com>
2005-11-01 10:33:22 +01:00
kaf24@firebug.cl.cam.ac.uk e4072e1c33 Fix the DISPLAY configration that breaks vmx domain creation with SDL
on vncserver or remote X. Changeset 7547 added a test of
opts.vals.display when getenv("DISPLAY"); because there is a default
value:localhost:0, that causes the test always to be true.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
2005-11-01 10:31:25 +01:00
kaf24@firebug.cl.cam.ac.uk 157a708a28 Add get_cycles(), to be defined in asm/time.h, as a
generic method to access cpu-specific local cycle counter.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-01 10:28:41 +01:00
emellor@leeni.uk.xensource.com bde1fa0a22 Merged. 2005-10-31 17:14:59 +01:00
kaf24@firebug.cl.cam.ac.uk 4d9db38409 Make check_pkgs work with the Bourne shell 2005-10-31 17:11:24 +01:00
emellor@leeni.uk.xensource.com cb3d870a1a From Murillo Fernandes Bernardes <mfb@br.ibm.com>:
The problem is: There is no mechanism to detect block device setup failure

Network devices have the same problem, and are fixed with this too.

I handling this problem in the way suggested by aliguori:
- hotplug scripts write a "hotplug-status" node on store
- Xend DevController.createDevice() check verify this node and return success
or throw an exception on failure.
- If no changes in "hotplug-status" node after DEVICE_CREATE_TIMEOUT seconds
Xend throw an exception showing the problem with hotplug scripts.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-31 17:10:57 +01:00
kaf24@firebug.cl.cam.ac.uk 08cbfe6fa0 Update .hgignore. 2005-10-31 17:10:41 +01:00
kaf24@firebug.cl.cam.ac.uk c8cbe00b0f Fix PAE shadow on a machine with RAM above 4G on x86_64 xen.
Currently, on a machine with RAM above 4G, we can not run 32bit VMX
guest on x86_64 xen, the root cause is that the PAE page table PDPT must
below 4G, this patch fixes this issue.

Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
2005-10-31 17:08:54 +01:00
kaf24@firebug.cl.cam.ac.uk 2fb80a5353 Watch events may get lost, the xenstored response races against the new
watch being added to the watch list in register_xenbus_watch().  Fixed 
by adding the watch to the list unconditionally, and remove it in the 
error case.
2005-10-31 17:07:14 +01:00
emellor@leeni.uk.xensource.com 55c3f7f34f From Gerd Knorr <kraxel@suse.de>:
Watch events may get lost, the xenstored response races against the new
watch being added to the watch list in register_xenbus_watch().  Fixed
by adding the watch to the list unconditionally, and remove it in the
error case.

That one fixes the network issues I'm seeing.  Due to the race the
"online" hotplug event for the vif backend was lost sometimes.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-31 17:03:13 +01:00
emellor@leeni.uk.xensource.com 6b0403edfe Added new xentrace executables tbctl and setsize.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-31 17:01:31 +01:00
emellor@leeni.uk.xensource.com 4951a81930 Use _p to fix, once and for all, the debugging printf recently changed.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-31 16:59:15 +01:00
emellor@leeni.uk.xensource.com 3bbe6d0380 Removed the event server, and all it entails. This is unused, and a big pile
of crusty rubbish.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-31 16:56:34 +01:00
emellor@leeni.uk.xensource.com 6eae10ab53 Removed some dead code.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-31 16:54:05 +01:00
emellor@leeni.uk.xensource.com 3941b09261 Ignore the directories containing generated man pages.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-31 12:05:49 +01:00
kaf24@firebug.cl.cam.ac.uk 2442eccf6d Sanitise the trace-buffer hypervisor<->user interface.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-31 10:45:31 +01:00
kaf24@firebug.cl.cam.ac.uk 622e82cde1 Remove stupid unused strtok() function.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-30 23:30:41 +01:00
kaf24@firebug.cl.cam.ac.uk 2c3e9e2eea Simplify trace header some more, and ensure that
construction of arguments for tracing is outlined from
straightline code paths.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-30 23:28:32 +01:00
kaf24@firebug.cl.cam.ac.uk b55e426e37 Tracing cleanups and simplify tb_set_size(). Dynamic
buffer shrinking is unsafe without heavier weight SMP
synchronisation.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-30 23:17:58 +01:00
kaf24@firebug.cl.cam.ac.uk 1cd7c2a733 Remove trace compile option from Xen.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-30 22:35:06 +01:00
kaf24@firebug.cl.cam.ac.uk f6556b0d17 This is a set of changes which allow the tracebuffer functionality to
be enabled and disabled dynamically while the system is running. The
existing DOM0_TBUFCONTROL hypercall is used, and three new operations
have been added: enable, disable, and set_size. This is to address
concerns that use of the trace buffers impacts system performance.

The initial value of opt_tbuf_size is set to zero, so that trace
buffers remain disabled by default. They can be enabled as they used
to be, by adding tbuf_size= to the xen command line at boot time. They
can also be turned on and off any time when the system is running. The
size of the trace buffer allocation can also be changed dynamically
while the system is running. The trace buffers may be completely
deallocated by setting the size to zero. No change in buffer size can
be done while tracing is enabled;

Other Changes made:
 - Update the constants in tools/xentrace/formats to match those in 
public/trace.h
 - libxc functions for enable/disable, get/set size
Still left to do:
 - remove all ifdef's for trace buffers and the 'trace' build option
 - xm command to do enable/disable trace buffers and get/set size
 
Signed-off-by: Rob Gardner  <rob.gardner@hp.com>
2005-10-30 22:31:45 +01:00
emellor@leeni.uk.xensource.com 07237aa4f3 Merged. 2005-10-30 19:23:36 +01:00
emellor@leeni.uk.xensource.com 371261ea1b Try again to get the ptrdiff_t printf right for 64-bit.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-30 19:22:31 +01:00