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
Keir Fraser
523a607a40
xenbaked: Fix for new trace format.
...
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com >
2007-10-04 09:38:40 +01:00
Keir Fraser
b470f96ea7
[hotplug scripts] Unlock the 'block' lock before bailing.
...
Signed-off-by: Stefan Berger <stefanb@us.ibm.com >
2007-10-04 09:37:33 +01:00
Keir Fraser
84daf5fe4f
svm: Enable nested paging only on x86/64.
...
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-10-04 09:36:18 +01:00
Keir Fraser
49f9842b32
hvm: More changes to reduce size of domain structure.
...
It is now smaller than a page (4kB) on x86/32 and x86/64.
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-10-03 16:33:23 +01:00
Keir Fraser
fe210320d9
hvm: Do not include full hvm_hw_hpet in 'struct domain'. It is very
...
large due to the number of (unused) reserved registers. This
unnecessarily blots the size of the domain structure.
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-10-03 15:47:47 +01:00
Keir Fraser
6f10c4bf8d
xm: Add accel option to xm network-attach.
...
Signed-off-by: Kieran Mansley <kmansley@solarflare.com >
2007-10-03 14:56:31 +01:00
Keir Fraser
3430042f34
svm: Actually remove disabling of CR4-read-intercept when using NPT.
...
Should have been in the previosu changeset. Oops.
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-10-03 14:41:28 +01:00
Keir Fraser
136f5e2f77
svm: Can only avoid CR3 reads when NPT is enabled.
...
CR0 and CR4 reads must still be intercepted.
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-10-03 14:33:57 +01:00
Keir Fraser
5d76b407ef
Merge with ia64 tree.
2007-10-03 14:07:30 +01:00