Commit Graph
16112 Commits
Author SHA1 Message Date
Keir Fraser ac2a30fcff libxc: Avoid overflow in xc_domain_dumpcore_via_callback().
nr_pages*PAGE_SIZE can overflow a 32-bit long.
From: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-15 12:20:43 +01:00
Keir Fraser b28b3c245a x86/64: Do not clobber %r11 (user rflags) on syscall from guest
userspace to guest kernel. The flags are saved on the guest kernel
stack anyway, but some guests rely on %r11 instead.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-15 12:13:41 +01:00
Tim Deegan 4b90f16ed7 PV guests don't require order-non-zero pages for shadowing, hence lift
the requirement on such being available for allocation when enabling
shadow mode, removing the potential for live migration to fail due to
fragmented memory.

Has seen little testing only so far.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-10-15 09:28:14 +01:00
Keir Fraser c92739e06d vt-d: disable protected memory registers after vt-d is enabled.
Signed-off-by: Allen Kay <allen.m.kay@intel.com>
2007-10-13 08:44:06 +01:00
Keir Fraser e18c67eaf4 x86: Fix acpi_parse_fadt()
Prevent returning early, so that other information gathered in this
function will not occasionally be missing for the consumer(s).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-10-12 15:37:13 +01:00
Keir Fraser e972f8be18 xend: Fix file resouce leak on resume of suspended managed domains.
When a suspended managed domain is resumed, the checkpoint file is
removed, but xend retains a reference to the removed file. This
represents a resource leak. Fixed by ensuring that the file reference
is closed correctly.

Signed-off-by: Gary Pennington <gary.pennington@sun.com>
2007-10-12 14:30:41 +01:00
Keir Fraser 4029f2451a x86/64: Fix the build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-12 13:06:16 +01:00
Keir Fraser 06a73c9f93 xentrace/x86: PV guest tracing extensions.
From: George Dunlap <gdunlap@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-12 13:06:02 +01:00
Keir Fraser 70c2e55854 x86: propagate VESA capabilities to dom0
Linux has been using the VESA capabilities field for quite a while, so
Xen should also supply it. At once, in case needed in the future, also
propagate the mode attributes field.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-10-12 11:55:41 +01:00
Keir Fraser 60dc4142c6 x86/hvm: miscellaneous CPUID handling changes
- use __clear_bit() rather than clear_bit()
 - use switch statements instead of long series of if-s
 - eliminate pointless casts

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-10-12 11:42:56 +01:00
Keir Fraser b392d5cd47 x86: Sync flag definitions in cpufeature.h with Linux.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-12 11:20:28 +01:00
Keir Fraser 12bd83d0cb svm: allow guest to use EFER.FFXSE
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-12 11:00:26 +01:00
Keir Fraser d29e3e7dd3 svm: last branch recording MSR emulation
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-12 10:19:55 +01:00
Keir Fraser 050f66992c x86: Fix time-scale calculation to avoid #DE fault.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-11 19:23:40 +01:00
Keir Fraser e8688e2ff2 x86: Fix emulation of DIV instruction. Never actually used currently,
but this will avoid a #DE in Xen.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-11 19:18:12 +01:00
Keir Fraser b02a2c6266 hvm: Fix CR0.TS handling.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-11 13:53:50 +01:00
Keir Fraser 73fc0df663 Clean up SMP macros and always have IRQs disabled when executing an
'smp_call_function' callback function.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-11 13:32:41 +01:00
Keir Fraser 10d0334291 x86: disable AMD's C1E mode.
In C1E the APIC timer stops ticking, which Xen cannot tolerate.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-10-11 13:27:38 +01:00
Keir Fraser 3f497f56cc x86: AMD Fam10/11 adjustments
Signed-off-by: Jan Beulich <jbeulich@novell.com>

Sync up affected files with 2.6.23-rc9.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-11 12:11:54 +01:00
Keir Fraser 6190bfce75 Add local header files to HDRS.
Otherwise, changes to such headers do not trigger
re-compiles. (Powerpc already had this.)

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-10-11 10:21:55 +01:00
Keir Fraser 3204cfd3a8 More static shadow functions.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-10-11 10:21:08 +01:00
Keir Fraser 02f2086e54 Shadow code printing adjustments.
Messages prior to BUG() should always be displayed, not just when
DEBUG_TRACE_DUMP is defined (which by default it isn't). Convert them
from SHADOW_PRINTK() to SHADOW_ERROR().

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-10-11 10:20:45 +01:00
Keir Fraser 5698ad2c5b Do not include compile.h directly -- use version.h indirection functions.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-11 10:02:07 +01:00
Keir Fraser 1a55b4207e [vTPM] Add set/get_other_config to Xen-API.
Add get_- and set_other_config methods to the vTPM class. Write the
parameters into the xenstore while the domain is running prefixing it
with 'oc_'. Also I add the methods to the C library as well as the
documentation.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-10-11 09:41:16 +01:00
Keir Fraser 09fa4973a1 hvm: Fix migration of 64-bit guests by permitting EFER_LMA to be set
in restored VCPU context.
Signed-off-by: David Lively <dlively@virtualiron.com>
Signed-off-by: Robert Phillips <rphillips@virtualiron.com>
2007-10-11 08:14:11 +01:00
Keir Fraser 58bf4b2aff ia64: Fix help message of xenitp.
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
2007-10-10 13:17:42 +01:00
Keir Fraser 0026df5171 Fix printing month in printk prefix (1-12 rather than 0-11).
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
2007-10-10 11:26:23 +01:00
Keir Fraser 37a61c7a65 vt-d: Clean up iommu code.
Signed-off-by: Weidong Han <weidong.han@intel.com>
2007-10-09 16:42:42 +01:00
Keir Fraser 85cb55a886 MiniOS: no-stack-protector added to the cflags if needed,
and the default domain config file fixed.

From: Grzegorz Milos <gm281@cam.ac.uk>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-09 16:06:50 +01:00
Keir Fraser 061078be62 [IA64] Update for cset 16067:9f9f9b68cd08
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-10-09 16:05:43 +01:00
Keir Fraser 3e1c252345 xend, xsm: Lock domain access while modifying policy.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-10-08 13:43:17 +01:00
Keir Fraser f15dc94bec xend: Remove unused xoptions.netback_type.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-08 10:57:32 +01:00
Keir Fraser b2ac1c4e50 xenconsoled: portability fixes:
- Use openpty(), which does the same as the sequence
   of open(), grantpt(), unlockpt(), ptsname(), tcgetattr()
   simplifies code
 - Check return code from tcsetattr()
 - sprintf() -> snprintf()
 - OpenBSD lacks POSIX grantpt() and unlockpt()
   requires use of openpty()
 - Solaris lacks POSIX openpty() via feedback from SUN (John Levon)
   implement openpty() for Solaris, tested and ok'd by SUN (John
   Levon)

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
2007-10-08 10:55:50 +01:00
Keir Fraser f94f6e258d Remove tabs from python scripts xenmon and xentrace_format.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-10-08 10:47:58 +01:00
Keir Fraser 10f71216a1 Fix domU reboot failure when using "pci=" option
The failure only happens on the second or later auto reboot.
See the following thread for a long discussion on this issue where
most problems were fixed.

http://lists.xensource.com/archives/html/xen-users/2006-05/msg00154.html

Signed-off-by: Charles Arnold <carnold@novell.com>
2007-10-08 10:46:45 +01:00
Tim Deegan c4cc673510 [XEN] Shadow: fix locking in error path.
Signed-off-by: TIm Deegan <Tim.Deegan@xensource.com>
2007-10-08 09:40:49 +01:00
Keir Fraser 711f622729 Initialize last_error in libxc.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-10-05 14:39:40 +01:00
Keir Fraser f056fc9b80 xenstore: sprintf->snprintf, and fix for OpenBSD.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
2007-10-05 14:11:36 +01:00
Keir Fraser c4698a7d71 entrace: Remove assertions to avoid system crashes on debug build xen.
Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
2007-10-05 10:38:52 +01:00
Keir Fraser 6e91413a40 [NW scripts] Choose alternative interface if NFSroot is used.
Allow the network bridging setup script to choose an alternative
network interface if it is determined that the root is mounted using
NFS, which is assumed to be done over the NIC serving the default
gw. In this case the prefix of the device is used to find other
devices, i.e., if eth0 is the default device an alternative device may
be an other ones starting with 'eth'.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-10-05 10:31:25 +01:00
Keir Fraser 7ee27216bf xen: Changes to printk handling:
1. Command-line option 'console_timestamps' adds a timestamp prefix
 to each line of Xen console output (x86 only, after CMOS has been
 interrogated).
 2. Clean up prefix handling and vanity banner info.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-04 17:58:16 +01:00
Keir Fraser 3f943baffc Revert 16065:671dcd08e806 and try again to fix the issue.
Changing LINUX_VER causes us to clone the wrong repository so instead
use the kernel's "kernelrelease" target to figure out the correct
Linux version.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-10-04 14:21:11 +01:00
Keir Fraser a687f4cc2f xsview: a xenstore viewer written in PyQT.
From: Mark Williamson <mark.williamson@cl.cam.ac.uk>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-04 13:52:51 +01:00
Keir Fraser ce03cc4d87 Clean up grant-table code after recent changes.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-04 10:31:44 +01:00
Keir Fraser 057b33e472 Allow iomem permissions to be set up through grant table ops.
Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
2007-10-04 10:26:21 +01:00
Keir Fraser 606ab7a468 Fix TLB flush on grant unmap.
Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
2007-10-04 10:25:35 +01:00
Keir Fraser 53dbebc03b Fix kernel version after linux-2.6.18-xen.hg 219:3e8752eb69dc which
applied 2.6.18.8,

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-10-04 10:03:04 +01:00
Keir Fraser ab60c50648 hvm: Fix the flush-all-tlbs hypercall.
From: Peter Johnston <pjohnston@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-04 09:57:17 +01:00
Keir Fraser c678acb180 This patch ensures xen vmm has exclusive access of vt-d hw by zapping
vt-d "DMAR" ACPI table signature after xen has finished using it.

Signed-off-by: Allen Kay <allen.m.kay@intel.com>
2007-10-04 09:40:31 +01:00
Keir Fraser ca2e266fd6 README: Remove incorrect information about PAE builds.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-04 09:39:40 +01:00