Commit Graph
8532 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk 025fd2d09a Add VMX guest quick start into Xen 3.0 user manual.
Signed-off-by: Yongkang You <yongkang.you@intel.com>
Signed-off-by: Alan C. Oehler <alan@xensource.com>
Signed-off-by: John L Villalovos <john.l.villalovos@intel.com>
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2006-01-10 15:33:28 +01:00
kaf24@firebug.cl.cam.ac.uk 57ad8645a9 Proactively check for NULL strings passed into xc_linx_build. Either do
the right thing or return error if detected.  A NULL cmdline, for example,
would currently generate a segfault.

Signed-off-by: Ben Thomas <bjthomas3@gmail.com>
2006-01-10 15:28:41 +01:00
kaf24@firebug.cl.cam.ac.uk 116bf770dc Add dummy 'all' target to guest-headers Makefile.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-01-10 15:26:57 +01:00
emellor@leeni.uk.xensource.com 9944daacf5 Merged. 2006-01-10 14:24:12 +00:00
emellor@leeni.uk.xensource.com 3a7a9bda1b Extend the xc_linux_save interface to take a callback function for handling the
suspend, and push the printf("suspend") out of xc_linux_save and into xc_save.
This means that xc_linux_save can be used without the xc_save wrapper if
desired.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-01-10 14:23:56 +00:00
kaf24@firebug.cl.cam.ac.uk 5e71b8b0dd Tiny bootstrap cleanup.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-01-09 19:46:46 +01:00
kaf24@firebug.cl.cam.ac.uk b457ba9d2a General start-of-day cleanups, resulting in the
x86/32 map_domain_page() mapcache now being per-domain
rather than global.

Other cleanups include removal of static definition of
CPU0's idle domain. Instead a single, multi-cpu, idle domain
is dynamically created early during bootstrap.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-01-09 19:44:30 +01:00
emellor@leeni.uk.xensource.com 65f50982bc Merged. 2006-01-09 14:43:46 +00:00
vhanquez@kneesa.uk.xensource.com 9652e9b451 free trans if allocated, if dev_request_and_reply fail.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2006-01-09 13:11:55 +00:00
vhanquez@kneesa.uk.xensource.com 46d0cd00e7 Fail early without calling dev_request_and_reply if memory cannot be allocated.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2006-01-09 11:31:49 +00:00
kaf24@firebug.cl.cam.ac.uk 89e23317ba Fix context_switch(). It is necessary to set_current() and
then check curr_vcpu all with interrupts disabled. This in
turn requires us to hoist the heck of next's vcpu_dirty_cpumask
as sending the flush IPI needs us to have interrupts enabled to
avoid deadlock.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-01-09 12:25:05 +01:00
root@kct d8d1f1f6c5 As hotplug events are asynchronous by its nature, the remove event seems
to be missed in some environments. This patch adds a sleep (with the same
amount of time of the one after xm block-detach) between attach and
detach operations, giving attach enough time to complete, making test 06
suceed.

Signed-off-by: Glauber de Oliveira Costa <glommer@br.ibm.com>
2006-01-09 11:24:02 +00:00
emellor@leeni.uk.xensource.com 1676162e17 Merged. 2006-01-09 11:22:17 +00:00
emellor@leeni.uk.xensource.com ee2057b34c Added missing munmap for live_p2m_frame_list_list.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-01-09 11:19:55 +00:00
emellor@leeni.uk.xensource.com e962e03d11 Fix the error recovery at the undo_out label in __gnttab_map_grant_ref to
not unlock the spinlock twice (which causes a BUG).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-01-09 11:17:55 +00:00
kaf24@firebug.cl.cam.ac.uk 4536b32f7c Allow HYPERVISOR_VIRT_START/END public definitions to be
used in assembly files. Check that the public and private
definitions of these constants match up at run time.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-01-09 11:31:19 +01:00
kaf24@firebug.cl.cam.ac.uk 171dd16155 Add cpumask_scnprintf() and cpulist_scnprintf(). This also
adds the bitmap_scnprintf functions and scnprintf itself.

Add dirty cpu and cpu affinity info to 'q'-key debug output.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-01-07 18:17:13 +01:00
kaf24@firebug.cl.cam.ac.uk 961e52c4df Remove netif_be_dbg debug-key handler from netback by default.
It generally just messes up the formatting of 'q' key output.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-01-07 18:16:10 +01:00
kaf24@firebug.cl.cam.ac.uk 1088bc0f6d Handle migration of x86 VCPUs between physical CPUs.
If required, context_switch() must pull state off of
old CPU.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-01-07 17:52:43 +01:00
kaf24@firebug.cl.cam.ac.uk 1198a6a99f Reduce locked critical region in __enter_scheduler(),
changing the context switch interface yet again.

domain_runnable() renamed to vcpu_runnable().

Fix stupid bug resulting in bogus value for
vcpu_dirty_cpumask, which caused vcpu_sync_execstate() to
fail sometimes.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-01-07 16:53:25 +01:00
vhanquez@kneesa.uk.xensource.com 8300a5a508 separate installation of headers from the linux tree into a new guest-header
directory under tools.

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2006-01-07 01:31:04 +00:00
vhanquez@kneesa.uk.xensource.com 1d36a78348 test return value of kmalloc to prevent crash is the allocation fail.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2006-01-06 22:07:04 +00:00
vhanquez@kneesa.uk.xensource.com fd0de160a1 Get rid of the err variable by directly returning error values.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2006-01-06 22:03:58 +00:00
kaf24@firebug.cl.cam.ac.uk e92cab943b Change the context-switch interface. Get rid of
context_switch_finalise(). Instead provide a back-call
context_switch_done() for situations where arch-specific
context_switch() function does not return to the caller,
or needs to do some parts of state restoration with
interrupts enabled.

Get rid of ugly hack in arch/ia64.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-01-06 18:14:29 +01:00
kaf24@firebug.cl.cam.ac.uk 59505bb144 Rename per-domain cpumask to more descriptive domain_dirty_cpumask.
Add a new per-vcpu dirty cpumask (vcpu_dirty_cpumask), useful for
state flushing and selective tlb flushing.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-01-06 17:45:31 +01:00
kaf24@firebug.cl.cam.ac.uk ff3a72d599 Clean up domain shutdown and modification of vcpu
processor affinity.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-01-06 16:47:25 +01:00
cl349@firebug.cl.cam.ac.uk 04ddfac1d9 Always EXPORT_SYMBOL pm_power_off now that pm_power_off is always defined.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-01-06 16:24:46 +01:00
cl349@firebug.cl.cam.ac.uk cd478e6f7d Move definition of pm_power_off to a more sensible location.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-01-06 12:59:55 +01:00
kaf24@firebug.cl.cam.ac.uk 5becda0913 Fix a couple of bogus dom0_op names:
setdomaininfo -> setvcpucontext
  pincpudomain  -> setvcpuaffinity

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-01-06 12:53:19 +01:00
kaf24@firebug.cl.cam.ac.uk 7b1872e6f5 Clean up xen-internal representation of per-vcpu
physical cpu affinity. Rename idle_task variables and
macros to idle_domain.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-01-06 12:25:47 +01:00
kaf24@firebug.cl.cam.ac.uk 7d947ac220 Fix up x86 emulator header docs and ensure callers use
the X86EMUL_MODE enumeration.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-01-05 12:19:12 +01:00
kaf24@firebug.cl.cam.ac.uk dc88367fa1 The dom0_ops implementation wasn't matching the interface definition,
leading to ill messages when X starts up (and potentially to other
problems). The attached patch fixes that. However, it also points out
that there is a potential disagreement between the dom0_ops interface
and the internal MTRR interface - the former expects an unsigned
register number from the domain, the latter wants a signed one and does
a lookup when it's negative. I would think that the lookup code should
just be ripped out of xen/arch/x86/mtrr/main.c.

Signed-off-by: Jan Beulich <JBeulich@novell.com>
2006-01-04 18:51:38 +01:00
kaf24@firebug.cl.cam.ac.uk c546f7e7bb Fixes to mtrr interface code in linux guest.
Signed-off-by: Jan Beulich <JBeulich@novell.com>
2006-01-04 18:47:11 +01:00
kaf24@firebug.cl.cam.ac.uk 65abb26969 Add IO-APIC interrupt debugging to 'i' debug key.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-01-04 18:37:24 +01:00
kaf24@firebug.cl.cam.ac.uk ff6e4be615 Fix split of duties between close_netdev() and
netif_disconnect_backend() in netif driver.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-01-04 14:45:52 +01:00
kaf24@firebug.cl.cam.ac.uk b84e890ff3 Add pending status to irq debugkey dump.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-01-04 12:37:27 +01:00
kaf24@firebug.cl.cam.ac.uk 4a4c2bd2d2 Add dubug key for dumping guest-bound physical interrupts
and their current status.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-01-04 12:18:02 +01:00
kaf24@firebug.cl.cam.ac.uk f890ca8bcd This patch adds TPM_Seal support to the VTSP. On measured platforms
this can be use to better protect secrets in the VTPM System

Signed-off-by: Vinnie Scarlata <vincent.r.scarlata@intel.com>
2006-01-04 11:37:41 +01:00
kaf24@firebug.cl.cam.ac.uk e8166802fe merge 2006-01-03 19:06:14 +01:00
kaf24@firebug.cl.cam.ac.uk 7238a83fdf Marge with xen-ia64-unstable.hg 2006-01-03 19:03:56 +01:00
vhanquez@kneesa.uk.xensource.com 929f0f09a9 convert latest old initializer to C99 initializer
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2006-01-03 16:57:41 +00:00
emellor@leeni.uk.xensource.com d9efa5305f Fix comment describing return value -- xs_rm returns false if the path does not
exist, not true.
 
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-01-03 16:29:42 +00:00
emellor@leeni.uk.xensource.com 2157498bfb Remove "Died" support from the hotplug monitoring. This error code was used
when hotplugStatusCallback raised VmError, but this can no longer happen.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-01-03 16:28:00 +00:00
emellor@leeni.uk.xensource.com 49684df079 Use xenctrl.h, not xc_private.h.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-01-03 16:26:24 +00:00
djm@kirby.fc.hp.com 9f336e8adf Adapt xen-ia64 to changes in xen-unstable 2006-01-03 10:20:05 -06:00
djm@kirby.fc.hp.com e31c95409c Merge 2006-01-03 10:19:20 -06:00
djm@kirby.fc.hp.com fe8281c24d Small bug fixes 2006-01-03 08:59:00 -06:00
emellor@leeni.uk.xensource.com 3db606124b Remove 03_network_attach_detach_multiple_pos.test from xfail list
Signed-off-by: Murillo F. Bernardes <mfb@br.ibm.com>
2006-01-03 14:51:33 +00:00
emellor@leeni.uk.xensource.com c69c2efbcf Vcpu-list's error message shows an unnecessary header.
Signed-off-by: Yoshinori Katase <y_katase@soft.fujitsu.com>
2006-01-03 14:08:32 +00:00
emellor@leeni.uk.xensource.com 1989719e21 These xm info, top, dmesg and log requre no parameter.
But log's error message differs from other 3 command's error messages,
when parameter is given.

# xm log 1
Error: 'xm log' requires 0 argument.

   log                              Print the xend log

Other 3 commands ignore parameter.
I think it might be better symmetricalize.

Signed-off-by: Yoshinori Katase <y_katase@soft.fujitsu.com>
2006-01-03 14:07:43 +00:00