]> xenbits.xensource.com Git - xen.git/log
xen.git
17 years ago[IA64] Remove dead code
Alex Williamson [Fri, 12 Oct 2007 20:08:13 +0000 (14:08 -0600)]
[IA64] Remove dead code

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] Avoid set cr.ivt when context switch if possible
Alex Williamson [Fri, 12 Oct 2007 19:56:42 +0000 (13:56 -0600)]
[IA64] Avoid set cr.ivt when context switch if possible

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] Minor clean up of sync_vcpu_execstate()
Alex Williamson [Fri, 12 Oct 2007 19:52:30 +0000 (13:52 -0600)]
[IA64] Minor clean up of sync_vcpu_execstate()

vmx_save_state() is called by context_switch()

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] Remove duplicate xc_get/set_hvm_param() definitions
Alex Williamson [Fri, 12 Oct 2007 19:50:09 +0000 (13:50 -0600)]
[IA64] Remove duplicate xc_get/set_hvm_param() definitions

Remove duplicated xc_get/set_hvm_param definition in xc_ia64_hvm_build.c
They are also defined in xc_domain.c.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years agosvm: last branch recording MSR emulation
Keir Fraser [Fri, 12 Oct 2007 09:19:55 +0000 (10:19 +0100)]
svm: last branch recording MSR emulation
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agox86: Fix time-scale calculation to avoid #DE fault.
Keir Fraser [Thu, 11 Oct 2007 18:23:40 +0000 (19:23 +0100)]
x86: Fix time-scale calculation to avoid #DE fault.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agox86: Fix emulation of DIV instruction. Never actually used currently,
Keir Fraser [Thu, 11 Oct 2007 18:18:12 +0000 (19:18 +0100)]
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>
17 years agohvm: Fix CR0.TS handling.
Keir Fraser [Thu, 11 Oct 2007 12:53:50 +0000 (13:53 +0100)]
hvm: Fix CR0.TS handling.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoClean up SMP macros and always have IRQs disabled when executing an
Keir Fraser [Thu, 11 Oct 2007 12:32:41 +0000 (13:32 +0100)]
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>
17 years agox86: disable AMD's C1E mode.
Keir Fraser [Thu, 11 Oct 2007 12:27:38 +0000 (13:27 +0100)]
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>
17 years agox86: AMD Fam10/11 adjustments
Keir Fraser [Thu, 11 Oct 2007 11:11:54 +0000 (12:11 +0100)]
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>
17 years agoAdd local header files to HDRS.
Keir Fraser [Thu, 11 Oct 2007 09:21:55 +0000 (10:21 +0100)]
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>
17 years agoMore static shadow functions.
Keir Fraser [Thu, 11 Oct 2007 09:21:08 +0000 (10:21 +0100)]
More static shadow functions.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agoShadow code printing adjustments.
Keir Fraser [Thu, 11 Oct 2007 09:20:45 +0000 (10:20 +0100)]
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>
17 years agoDo not include compile.h directly -- use version.h indirection functions.
Keir Fraser [Thu, 11 Oct 2007 09:02:07 +0000 (10:02 +0100)]
Do not include compile.h directly -- use version.h indirection functions.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years ago[vTPM] Add set/get_other_config to Xen-API.
Keir Fraser [Thu, 11 Oct 2007 08:41:16 +0000 (09:41 +0100)]
[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>
17 years agohvm: Fix migration of 64-bit guests by permitting EFER_LMA to be set
Keir Fraser [Thu, 11 Oct 2007 07:14:11 +0000 (08:14 +0100)]
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>
17 years agoia64: Fix help message of xenitp.
Keir Fraser [Wed, 10 Oct 2007 12:17:42 +0000 (13:17 +0100)]
ia64: Fix help message of xenitp.
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
17 years agoFix printing month in printk prefix (1-12 rather than 0-11).
Keir Fraser [Wed, 10 Oct 2007 10:26:23 +0000 (11:26 +0100)]
Fix printing month in printk prefix (1-12 rather than 0-11).
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
17 years agovt-d: Clean up iommu code.
Keir Fraser [Tue, 9 Oct 2007 15:42:42 +0000 (16:42 +0100)]
vt-d: Clean up iommu code.
Signed-off-by: Weidong Han <weidong.han@intel.com>
17 years agoMiniOS: no-stack-protector added to the cflags if needed,
Keir Fraser [Tue, 9 Oct 2007 15:06:50 +0000 (16:06 +0100)]
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>
17 years ago[IA64] Update for cset 16067:9f9f9b68cd08
Keir Fraser [Tue, 9 Oct 2007 15:05:43 +0000 (16:05 +0100)]
[IA64] Update for cset 16067:9f9f9b68cd08
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years agoxend, xsm: Lock domain access while modifying policy.
Keir Fraser [Mon, 8 Oct 2007 12:43:17 +0000 (13:43 +0100)]
xend, xsm: Lock domain access while modifying policy.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
17 years agoxend: Remove unused xoptions.netback_type.
Keir Fraser [Mon, 8 Oct 2007 09:57:32 +0000 (10:57 +0100)]
xend: Remove unused xoptions.netback_type.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoxenconsoled: portability fixes:
Keir Fraser [Mon, 8 Oct 2007 09:55:50 +0000 (10:55 +0100)]
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>
17 years agoRemove tabs from python scripts xenmon and xentrace_format.
Keir Fraser [Mon, 8 Oct 2007 09:47:58 +0000 (10:47 +0100)]
Remove tabs from python scripts xenmon and xentrace_format.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
17 years agoFix domU reboot failure when using "pci=" option
Keir Fraser [Mon, 8 Oct 2007 09:46:45 +0000 (10:46 +0100)]
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>
17 years ago[XEN] Shadow: fix locking in error path.
Tim Deegan [Mon, 8 Oct 2007 08:40:49 +0000 (09:40 +0100)]
[XEN] Shadow: fix locking in error path.
Signed-off-by: TIm Deegan <Tim.Deegan@xensource.com>
17 years agoInitialize last_error in libxc.
Keir Fraser [Fri, 5 Oct 2007 13:39:40 +0000 (14:39 +0100)]
Initialize last_error in libxc.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
17 years agoxenstore: sprintf->snprintf, and fix for OpenBSD.
Keir Fraser [Fri, 5 Oct 2007 13:11:36 +0000 (14:11 +0100)]
xenstore: sprintf->snprintf, and fix for OpenBSD.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
17 years agoentrace: Remove assertions to avoid system crashes on debug build xen.
Keir Fraser [Fri, 5 Oct 2007 09:38:52 +0000 (10:38 +0100)]
entrace: Remove assertions to avoid system crashes on debug build xen.
Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
17 years ago[NW scripts] Choose alternative interface if NFSroot is used.
Keir Fraser [Fri, 5 Oct 2007 09:31:25 +0000 (10:31 +0100)]
[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>
17 years agoxen: Changes to printk handling:
Keir Fraser [Thu, 4 Oct 2007 16:58:16 +0000 (17:58 +0100)]
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>
17 years agoRevert 16065:671dcd08e806 and try again to fix the issue.
Keir Fraser [Thu, 4 Oct 2007 13:21:11 +0000 (14:21 +0100)]
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>
17 years agoxsview: a xenstore viewer written in PyQT.
Keir Fraser [Thu, 4 Oct 2007 12:52:51 +0000 (13:52 +0100)]
xsview: a xenstore viewer written in PyQT.
From: Mark Williamson <mark.williamson@cl.cam.ac.uk>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoClean up grant-table code after recent changes.
Keir Fraser [Thu, 4 Oct 2007 09:31:44 +0000 (10:31 +0100)]
Clean up grant-table code after recent changes.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoAllow iomem permissions to be set up through grant table ops.
Keir Fraser [Thu, 4 Oct 2007 09:26:21 +0000 (10:26 +0100)]
Allow iomem permissions to be set up through grant table ops.
Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
17 years agoFix TLB flush on grant unmap.
Keir Fraser [Thu, 4 Oct 2007 09:25:35 +0000 (10:25 +0100)]
Fix TLB flush on grant unmap.
Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
17 years agoFix kernel version after linux-2.6.18-xen.hg 219:3e8752eb69dc which
Keir Fraser [Thu, 4 Oct 2007 09:03:04 +0000 (10:03 +0100)]
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>
17 years agohvm: Fix the flush-all-tlbs hypercall.
Keir Fraser [Thu, 4 Oct 2007 08:57:17 +0000 (09:57 +0100)]
hvm: Fix the flush-all-tlbs hypercall.
From: Peter Johnston <pjohnston@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoThis patch ensures xen vmm has exclusive access of vt-d hw by zapping
Keir Fraser [Thu, 4 Oct 2007 08:40:31 +0000 (09:40 +0100)]
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>
17 years agoREADME: Remove incorrect information about PAE builds.
Keir Fraser [Thu, 4 Oct 2007 08:39:40 +0000 (09:39 +0100)]
README: Remove incorrect information about PAE builds.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoxenbaked: Fix for new trace format.
Keir Fraser [Thu, 4 Oct 2007 08:38:40 +0000 (09:38 +0100)]
xenbaked: Fix for new trace format.
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
17 years ago[hotplug scripts] Unlock the 'block' lock before bailing.
Keir Fraser [Thu, 4 Oct 2007 08:37:33 +0000 (09:37 +0100)]
[hotplug scripts] Unlock the 'block' lock before bailing.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
17 years agosvm: Enable nested paging only on x86/64.
Keir Fraser [Thu, 4 Oct 2007 08:36:18 +0000 (09:36 +0100)]
svm: Enable nested paging only on x86/64.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agohvm: More changes to reduce size of domain structure.
Keir Fraser [Wed, 3 Oct 2007 15:33:23 +0000 (16:33 +0100)]
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>
17 years agohvm: Do not include full hvm_hw_hpet in 'struct domain'. It is very
Keir Fraser [Wed, 3 Oct 2007 14:47:47 +0000 (15:47 +0100)]
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>
17 years agoxm: Add accel option to xm network-attach.
Keir Fraser [Wed, 3 Oct 2007 13:56:31 +0000 (14:56 +0100)]
xm: Add accel option to xm network-attach.
Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
17 years agosvm: Actually remove disabling of CR4-read-intercept when using NPT.
Keir Fraser [Wed, 3 Oct 2007 13:41:28 +0000 (14:41 +0100)]
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>
17 years agosvm: Can only avoid CR3 reads when NPT is enabled.
Keir Fraser [Wed, 3 Oct 2007 13:33:57 +0000 (14:33 +0100)]
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>
17 years agoMerge with ia64 tree.
Keir Fraser [Wed, 3 Oct 2007 13:07:30 +0000 (14:07 +0100)]
Merge with ia64 tree.

17 years agoxend: Check access to the privcmd interface before doing the call to
Keir Fraser [Wed, 3 Oct 2007 13:06:06 +0000 (14:06 +0100)]
xend: Check access to the privcmd interface before doing the call to
fetch the currently enforced policy. Assign 'INACCESSIBLE' to the
policy if it cannot be retrieved due to the user not being
privileged.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
17 years agoExtend 'xm dumppolicy' to support Xen-API
Keir Fraser [Wed, 3 Oct 2007 13:04:51 +0000 (14:04 +0100)]
Extend 'xm dumppolicy' to support Xen-API

I am extending 'xm dumppolicy' to be used via the Xen-API. For this
there are two new functions in the ACM policy class:
 - get the currently enforced policy including statistical data from
   the hypervisor
- get the ACM 'ssidref' of a Domain. Since this may be a ACM-specific
  variable or type (int) I put it into the ACM class.

I extended the Xen-API documentation with the two new functions.

Signed-off-by: Stefan Berger <Stefanb@us.ibm.com>
17 years agomerge with xen-unstable.hg (staging)
Alex Williamson [Tue, 2 Oct 2007 17:31:55 +0000 (11:31 -0600)]
merge with xen-unstable.hg (staging)

17 years ago[IA64] micro-optimize and comments in vmx_ivt.S
Alex Williamson [Tue, 2 Oct 2007 16:07:35 +0000 (10:07 -0600)]
[IA64] micro-optimize and comments in vmx_ivt.S

Comments added + micro-optimizations.
In PHY_D mode, alt tlb misses can call vmx_hpw_miss.

Signed-off-by: Tristan Gingold <tgingold@free.fr>
17 years agox86/64: Fix build.
Keir Fraser [Tue, 2 Oct 2007 16:07:18 +0000 (17:07 +0100)]
x86/64: Fix build.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years ago[IA64] cleanup in vmx headers
Alex Williamson [Tue, 2 Oct 2007 16:04:56 +0000 (10:04 -0600)]
[IA64] cleanup in vmx headers

Reduce size of arch_vmx_struct (flags is now 1 byte).
Remove unused macro.
Add VMX_MMU_MODE macro.

Signed-off-by: Tristan Gingold <tgingold@free.fr>
17 years ago[IA64] Cleanup: remove useless #ifndef and indentation.
Alex Williamson [Tue, 2 Oct 2007 15:59:27 +0000 (09:59 -0600)]
[IA64] Cleanup: remove useless #ifndef and indentation.

Signed-off-by: Tristan Gingold <tgingold@free.fr>
17 years agovtd: Dynamically allocate IRQ-tracking structures, only for those
Keir Fraser [Tue, 2 Oct 2007 15:59:07 +0000 (16:59 +0100)]
vtd: Dynamically allocate IRQ-tracking structures, only for those
domains that actually have PCI-passthru devices. Greatly reduces size
of 'struct domain'.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years ago[IA64] Remove warnings.
Alex Williamson [Tue, 2 Oct 2007 15:58:09 +0000 (09:58 -0600)]
[IA64] Remove warnings.

Signed-off-by: Tristan Gingold <tgingold@free.fr>
17 years ago[IA64] xenitp improvements
Alex Williamson [Tue, 2 Oct 2007 15:31:45 +0000 (09:31 -0600)]
[IA64] xenitp improvements

Remove all the casts by using char * instead of unsigned char *.
The go command now accept a number.
The disass command can now accept a range.
Number of TRs is not hard-coded.
'-' (minus) can now be used in expressions.
'$iip' and '$b0' can be used in expressions.

Signed-off-by: Tristan Gingold <tgingold@free.fr>
17 years agox86/32: Re-factor mapcache data structure into per-domain and per-vcpu
Keir Fraser [Tue, 2 Oct 2007 15:28:58 +0000 (16:28 +0100)]
x86/32: Re-factor mapcache data structure into per-domain and per-vcpu
components. Greatly reduces size of 'struct domain'.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years ago[IA64] xenitp: Display symbolic names of cr.
Alex Williamson [Tue, 2 Oct 2007 15:20:41 +0000 (09:20 -0600)]
[IA64] xenitp: Display symbolic names of cr.

Signed-off-by: Tristan Gingold <tgingold@free.fr>
17 years ago[IA64] Fix + more cr regs for vcpu_get_context
Alex Williamson [Tue, 2 Oct 2007 15:18:38 +0000 (09:18 -0600)]
[IA64] Fix + more cr regs for vcpu_get_context

Do not hard code number of TRs in vcpucontext.
Correctly fill rr7 and add more cr registers for get_vcpu_context.

Signed-off-by: Tristan Gingold <tgingold@free.fr>
17 years agoxentop: Flush batch output on SIGTERM or SIGINT.
Keir Fraser [Tue, 2 Oct 2007 12:19:25 +0000 (13:19 +0100)]
xentop: Flush batch output on SIGTERM or SIGINT.
Signed-off-by: INAKOSHI Hiroya <inakoshi.hiroya@jp.fujitsu.com>
17 years agohvm svm: Fix #MC intercept routine for AMD SVM.
Keir Fraser [Tue, 2 Oct 2007 09:53:14 +0000 (10:53 +0100)]
hvm svm: Fix #MC intercept routine for AMD SVM.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
17 years agoAdd XENPF_getidletime.
Keir Fraser [Tue, 2 Oct 2007 09:46:23 +0000 (10:46 +0100)]
Add XENPF_getidletime.
Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoClean up and fix XEN_SYSCTL_getcpuinfo error path.
Keir Fraser [Tue, 2 Oct 2007 09:45:53 +0000 (10:45 +0100)]
Clean up and fix XEN_SYSCTL_getcpuinfo error path.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoxend: Fix name/uuid uniqueness checks.
Keir Fraser [Tue, 2 Oct 2007 09:01:10 +0000 (10:01 +0100)]
xend: Fix name/uuid uniqueness checks.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
17 years agoRevert 15642:207582c8d88b532783da5c6f5839336187556f0a.
Keir Fraser [Tue, 2 Oct 2007 08:59:39 +0000 (09:59 +0100)]
Revert 15642:207582c8d88b532783da5c6f5839336187556f0a.

This patch is now bogus since 15168:a717cb2fac90 is reverted
by 15973:8817a53c030f.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
17 years agoFix external-device-migrate infinite loop.
Keir Fraser [Tue, 2 Oct 2007 08:56:53 +0000 (09:56 +0100)]
Fix external-device-migrate infinite loop.

For some (yet) unknown reason extern-device-migrate is called
twice, once with a missing domname argument.

The following invocation loops forever:
 external-device-migrate -domname
because "shift 2" never shifts ($# < 2) and $# is always 1.

From: Pascal Bouchareine <pascal@gandi.net>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoxenctx: Print EFLAGS for i386 and x86/64.
Keir Fraser [Tue, 2 Oct 2007 08:41:10 +0000 (09:41 +0100)]
xenctx: Print EFLAGS for i386 and x86/64.
From: Peter Johnston <pjohnston@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agohvm: Fix HVMOP_flush_tlbs to flush paging-mode state.
Keir Fraser [Tue, 2 Oct 2007 08:35:37 +0000 (09:35 +0100)]
hvm: Fix HVMOP_flush_tlbs to flush paging-mode state.
From: Peter Johnston <pjohnston@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoxentrace: Fix xentrace_format for new file format.
Keir Fraser [Tue, 2 Oct 2007 08:31:40 +0000 (09:31 +0100)]
xentrace: Fix xentrace_format for new file format.
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
17 years agoxentrace: Fix man page (remove xentrace_cpuinfo(1)).
Keir Fraser [Tue, 2 Oct 2007 08:30:36 +0000 (09:30 +0100)]
xentrace: Fix man page (remove xentrace_cpuinfo(1)).
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
17 years agoFix ioemu compile on Solaris
Keir Fraser [Tue, 2 Oct 2007 08:29:23 +0000 (09:29 +0100)]
Fix ioemu compile on Solaris
Solaris doesn't have RLIMIT_RSS at least; don't try to set rlimits.
Signed-off-by: John Levon <john.levon@sun.com>
17 years agoFix non-portabilities in libflask.
Keir Fraser [Tue, 2 Oct 2007 08:29:00 +0000 (09:29 +0100)]
Fix non-portabilities in libflask.
Signed-off-by: John Levon <john.levon@sun.com>
17 years agoxend: Fix refactoring done in CS 15938 in security.py.
Keir Fraser [Tue, 2 Oct 2007 08:27:22 +0000 (09:27 +0100)]
xend: Fix refactoring done in CS 15938 in security.py.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
17 years agoxm-test: Fix bugzilla #1051.
Keir Fraser [Tue, 2 Oct 2007 08:26:18 +0000 (09:26 +0100)]
xm-test: Fix bugzilla #1051.

This is a patch to fix xm-test's network errors
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1051

From: Lukasz Szymanski <Lukasz.Szymanski@unisys.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agomerge with xen-unstable.hg
Alex Williamson [Mon, 1 Oct 2007 19:59:37 +0000 (13:59 -0600)]
merge with xen-unstable.hg

17 years ago[IA64] xenitp: correctly size vcpu_ctx array
Alex Williamson [Mon, 1 Oct 2007 15:59:24 +0000 (09:59 -0600)]
[IA64] xenitp: correctly size vcpu_ctx array

vcpu_ctx[] array size should be MAX_VIRT_CPUS instead of 1.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] Fix wrong insertion of TLB entry in region 0
Alex Williamson [Mon, 1 Oct 2007 15:57:50 +0000 (09:57 -0600)]
[IA64] Fix wrong insertion of TLB entry in region 0

On PV domain with metaphysical mode, emulation of itc.d in region 0
doesn't work well and inserts an wrong TC entry.
Because set_one_rr() doesn't set the machine region register.
i.e. metaphyisical_rr0 is used instead of guest's rr[0].

This bug causes Dom0/U crash when an application uses region 0.
Actually I met the crash when I was building open GFW (java uses
region 0).

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
17 years ago[IA64] xenctx: fix rse arithmetic
Alex Williamson [Mon, 1 Oct 2007 15:53:48 +0000 (09:53 -0600)]
[IA64] xenctx: fix rse arithmetic

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] Replace mode_flags by mmu_mode
Alex Williamson [Mon, 1 Oct 2007 15:52:14 +0000 (09:52 -0600)]
[IA64] Replace mode_flags by mmu_mode

Replace mode_flags by mmu_mode and put it into arch_vmx structure.
Cleanup in vmx_phy_mode.c to prepare for half-physical mode (dt=0,it=1)

Signed-off-by: Tristan Gingold <tgingold@free.fr>
17 years agox86: Rename math_state_restore() to more logical
Keir Fraser [Mon, 1 Oct 2007 14:38:58 +0000 (15:38 +0100)]
x86: Rename math_state_restore() to more logical
do_device_not_available(), following naming convection for all other C
exception handlers.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agox86: Clean up arch_set_info_guest() by having HVM VCPUs bail early.
Keir Fraser [Mon, 1 Oct 2007 14:28:18 +0000 (15:28 +0100)]
x86: Clean up arch_set_info_guest() by having HVM VCPUs bail early.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agohvm: Avoid need for ugly setcpucontext() in HVM domain builder by
Keir Fraser [Mon, 1 Oct 2007 14:12:05 +0000 (15:12 +0100)]
hvm: Avoid need for ugly setcpucontext() in HVM domain builder by
pre-setting the vcpu0 to runnable inside Xen, and have the builder
insert a JMP instruction to reach the hvmloader entry point from
address 0x0.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agohvm: Re-jig event delivery logic to better integrate TPR management.
Keir Fraser [Mon, 1 Oct 2007 13:11:15 +0000 (14:11 +0100)]
hvm: Re-jig event delivery logic to better integrate TPR management.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agolibxenctrl: Fix lock_pages()/unlock_pages() region-size calculation.
Keir Fraser [Mon, 1 Oct 2007 12:18:19 +0000 (13:18 +0100)]
libxenctrl: Fix lock_pages()/unlock_pages() region-size calculation.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years agox86: Fix time going backwards on CPU frequency change.
Keir Fraser [Mon, 1 Oct 2007 08:32:25 +0000 (09:32 +0100)]
x86: Fix time going backwards on CPU frequency change.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agox86: Fix debug build.
Keir Fraser [Mon, 1 Oct 2007 08:32:04 +0000 (09:32 +0100)]
x86: Fix debug build.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoxm: Print xend config via 'xm info --config'.
Keir Fraser [Mon, 1 Oct 2007 05:39:00 +0000 (06:39 +0100)]
xm: Print xend config via 'xm info --config'.
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
17 years agoxsm:acm: Fix nul dereference bug (take 2).
Keir Fraser [Mon, 1 Oct 2007 05:36:25 +0000 (06:36 +0100)]
xsm:acm: Fix nul dereference bug (take 2).
Signed-off-by: George Coker <gscoker@alpha.ncsc.mil>
17 years agoRevert 15975:96f46954c7f1.
Keir Fraser [Mon, 1 Oct 2007 05:35:40 +0000 (06:35 +0100)]
Revert 15975:96f46954c7f1.

17 years agovt-d: Allocate iommu pages from domheap rather than xenheap.
Keir Fraser [Mon, 1 Oct 2007 05:34:40 +0000 (06:34 +0100)]
vt-d: Allocate iommu pages from domheap rather than xenheap.

xenheap size is 9M on x86/32 xen, it's not enough to setup 1:1 mapping
page table for dom0. It causes dom0 cannot boot successfully. Instead
of xenheap, this patch setup 1:1 mapping page tabel in domheap, and
use map_domain_page() to get temporary mappings when need them.

Signed-off-by: Weidong Han <weidong.han@intel.com>
17 years agohvm: Clean up EFER handling. Check CR0/CR4/EFER on HVM restore.
Keir Fraser [Fri, 28 Sep 2007 15:00:44 +0000 (16:00 +0100)]
hvm: Clean up EFER handling. Check CR0/CR4/EFER on HVM restore.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoxsm:acm: fix a null dereference bug.
Keir Fraser [Fri, 28 Sep 2007 14:05:11 +0000 (15:05 +0100)]
xsm:acm: fix a null dereference bug.
Signed-off-by: George Coker <gscoker@alpha.ncsc.mil>
17 years agohvm: Enable HAP by default (NPT on AMD SVM systems).
Keir Fraser [Fri, 28 Sep 2007 14:03:50 +0000 (15:03 +0100)]
hvm: Enable HAP by default (NPT on AMD SVM systems).
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years ago[IA64] Kexec: Implement elf_core_save_regs()
Alex Williamson [Thu, 27 Sep 2007 22:29:43 +0000 (16:29 -0600)]
[IA64] Kexec: Implement elf_core_save_regs()

Implement elf_core_save_regs() by porting (un #ifdefing)
ia64_elf_core_copy_regs() from Linux.

This ommits the calls to ia64_get_user_rbs_end() and ia64_sync_user_rbs()
in do_copy_task_regs(). Supplying them would seem to involve a reasonably
involved ammount of porting. I'm really not sure that its neccessary.

Signed-off-by: Simon Horman <horms@verge.net.au>
17 years ago[IA64] Kexec: Zap VHPT in relocate_kernel
Alex Williamson [Thu, 27 Sep 2007 22:26:34 +0000 (16:26 -0600)]
[IA64] Kexec: Zap VHPT in relocate_kernel

On XEN do_ia64_purge_tlb unpins the VHPT entry, so it seems
logical that relocate_kernel should do the same thing.
It seems to work, but is it correct?

Signed-off-by: Simon Horman <horms@verge.net.au>