]> xenbits.xensource.com Git - xen.git/log
xen.git
17 years agox86, hvm: Clean up handling of APIC INIT and SIPI messages.
Keir Fraser [Tue, 15 Apr 2008 14:47:53 +0000 (15:47 +0100)]
x86, hvm: Clean up handling of APIC INIT and SIPI messages.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agox86, hvm: If an MMIO handler returns X86EMUL_RETRY we must still
Keir Fraser [Tue, 15 Apr 2008 14:45:42 +0000 (15:45 +0100)]
x86, hvm: If an MMIO handler returns X86EMUL_RETRY we must still
complete the dummy I/O request-response cycle.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agox86: per-domain p2m structure must be initialised to all-zeroes when
Keir Fraser [Tue, 15 Apr 2008 14:44:40 +0000 (15:44 +0100)]
x86: per-domain p2m structure must be initialised to all-zeroes when
it is allocated.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoTasklet bug fixes.
Keir Fraser [Tue, 15 Apr 2008 14:03:40 +0000 (15:03 +0100)]
Tasklet bug fixes.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agodomctl: Do not return XEN_DOMINF_blocked if no VCPUs are online.
Keir Fraser [Tue, 15 Apr 2008 14:03:08 +0000 (15:03 +0100)]
domctl: Do not return XEN_DOMINF_blocked if no VCPUs are online.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agox86, hvm: I/O emulation handlers return X86EMUL_* return codes.
Keir Fraser [Tue, 15 Apr 2008 12:28:02 +0000 (13:28 +0100)]
x86, hvm: I/O emulation handlers return X86EMUL_* return codes.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoxend/acm: Fixes to labelling of resources.
Keir Fraser [Tue, 15 Apr 2008 09:24:55 +0000 (10:24 +0100)]
xend/acm: Fixes to labelling of resources.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
17 years ago[IA64] Remove duplicate tasklet code
Keir Fraser [Tue, 15 Apr 2008 09:21:35 +0000 (10:21 +0100)]
[IA64] Remove duplicate tasklet code

Make use of the newly added common code.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years ago[IA64] Fix pci.h include overlap
Keir Fraser [Tue, 15 Apr 2008 09:21:17 +0000 (10:21 +0100)]
[IA64] Fix pci.h include overlap

The new upstream xen/pci.h has a name conflict with our modified
linux/pci.h and shows up earlier in the include search path.  Since
our usage of linux/pci.h is limited, rename to linux/linux-pci.h to
avoid duplicate names and cleanup the few users.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years agoChange tasklet implementation so that tasklet_kill() does not have to
Keir Fraser [Tue, 15 Apr 2008 09:19:58 +0000 (10:19 +0100)]
Change tasklet implementation so that tasklet_kill() does not have to
busy-wait for softirq work to start. This reduces the possibility of
deadlocks, but the implementation is now less efficient. For the
current few users of tasklets this does not matter.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoRename 'big lock' to 'domain lock'.
Keir Fraser [Mon, 14 Apr 2008 15:07:54 +0000 (16:07 +0100)]
Rename 'big lock' to 'domain lock'.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agohvmloader: Small cleanups.
Keir Fraser [Mon, 14 Apr 2008 13:10:11 +0000 (14:10 +0100)]
hvmloader: Small cleanups.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agosvm: Fix an assertion.
Keir Fraser [Fri, 11 Apr 2008 16:29:26 +0000 (17:29 +0100)]
svm: Fix an assertion.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agohvm: Add HVM_PARAM_DM_DOMAIN to let ioreq events go to a stub domain
Keir Fraser [Fri, 11 Apr 2008 16:19:07 +0000 (17:19 +0100)]
hvm: Add HVM_PARAM_DM_DOMAIN to let ioreq events go to a stub domain
instead of dom0.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoTurn some simple softirqs into tasklets.
Keir Fraser [Fri, 11 Apr 2008 14:55:42 +0000 (15:55 +0100)]
Turn some simple softirqs into tasklets.

TRACE_SOFTIRQ does not appear to be necessary at all.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoSupport tasklets in Xen as a more dynamic alternative to softirqs.
Keir Fraser [Fri, 11 Apr 2008 14:37:48 +0000 (15:37 +0100)]
Support tasklets in Xen as a more dynamic alternative to softirqs.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agox86: Emulate accesses to PCI window registers cf8/cfc to synchronise
Keir Fraser [Fri, 11 Apr 2008 12:19:55 +0000 (13:19 +0100)]
x86: Emulate accesses to PCI window registers cf8/cfc to synchronise
with accesses by teh hypervisor itself. All users of cf8/cfc go
through new access functions which take the appropriate spinlock.

Based on a patch by Haitao Shan <haitao.shan@intel.com>

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agotools: Make xend set time offset for all kinds of domains, so that
Keir Fraser [Fri, 11 Apr 2008 08:14:03 +0000 (09:14 +0100)]
tools: Make xend set time offset for all kinds of domains, so that
ioemu doesn't need to do it.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years agoVT-d: DMAR device scope parse fixup
Keir Fraser [Fri, 11 Apr 2008 08:12:56 +0000 (09:12 +0100)]
VT-d: DMAR device scope parse fixup

Previously applied sanity check fixup is incorrect.

Signed-off-by: Espen Skoglund <espen.skoglund@netronome.com>
17 years agox86/64 compat: Replace hypervisor BUG_ON() with a cleaner hypercall failure.
Keir Fraser [Fri, 11 Apr 2008 08:10:58 +0000 (09:10 +0100)]
x86/64 compat: Replace hypervisor BUG_ON() with a cleaner hypercall failure.

While trying to run a 32-bit PV domU on a 64-bit hypervisor, I
triggered an assert in the hypervisor.  The assert dealt with the
maximum number of grants that a domU can have.  I made the hypervisor
a bit more graceful by returning an error rather than asserting.

Signed-off-by: Michael Abd-El-Malek <mabdelmalek@cmu.edu>
17 years agolibxenguest: Fix a typo.
Keir Fraser [Fri, 11 Apr 2008 08:07:58 +0000 (09:07 +0100)]
libxenguest: Fix a typo.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
17 years agox86: disable PIT irq after S3 resume
Keir Fraser [Fri, 11 Apr 2008 08:06:11 +0000 (09:06 +0100)]
x86: disable PIT irq after S3 resume

Signed-off-by: Yu Ke <ke.yu@intel.com>
17 years agohvm: Fix a typo in p2m.c.
Keir Fraser [Thu, 10 Apr 2008 15:17:28 +0000 (16:17 +0100)]
hvm: Fix a typo in p2m.c.

Spotted by Xiao Wang <sirouni@yahoo.com.cn>

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agox86, hvm: Fix up MTRR setup for extra magic page (IDENT_PT).
Keir Fraser [Thu, 10 Apr 2008 10:17:50 +0000 (11:17 +0100)]
x86, hvm: Fix up MTRR setup for extra magic page (IDENT_PT).
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agox86: Conditionally disable PIT 100HZ timer interrupt
Keir Fraser [Thu, 10 Apr 2008 10:11:25 +0000 (11:11 +0100)]
x86: Conditionally disable PIT 100HZ timer interrupt

100HZ PIT timer interrupt set a 10ms upper limit for C state
residency, which makes Xen not power friendly. This patch disable PIT
timer interrupt in the conditions:
 - CPU has APIC support, and
 - PIT is not used as platform time source

Signed-off-by: Yu Ke <ke.yu@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agox86: Remove jiffies usage.
Keir Fraser [Thu, 10 Apr 2008 09:12:04 +0000 (10:12 +0100)]
x86: Remove jiffies usage.

Jiffies will be obsolete in x86 after PIT timer interupt is disabled,
so this patch replace jiffies usage with NOW() API.

Signed-off-by: Yu Ke <ke.yu@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agovmx: Enable live-migration with EPT
Keir Fraser [Thu, 10 Apr 2008 09:00:41 +0000 (10:00 +0100)]
vmx: Enable live-migration with EPT

Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Xiaohui Xin <Xiaohui.xin@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoVT-d: Allocates page table pgd, root_entry, iremap and qinval from
Keir Fraser [Thu, 10 Apr 2008 08:22:38 +0000 (09:22 +0100)]
VT-d: Allocates page table pgd, root_entry, iremap and qinval from
domheap rather than xenheap, and get rid of structure page_info in
iommu.c.

Signed-off-by: Weidong Han <weidong.han@intel.com>
17 years agoVT-d: Share VT-d code between x86 and IA64
Keir Fraser [Thu, 10 Apr 2008 08:20:07 +0000 (09:20 +0100)]
VT-d: Share VT-d code between x86 and IA64

Declare arch-dependent functions in vtd.h, and implement them for x86.

Signed-off-by: Weidong Han <weidong.han@intel.com>
17 years agohvmloader: Fix build with gcc 4.1 and later.
Keir Fraser [Thu, 10 Apr 2008 08:12:44 +0000 (09:12 +0100)]
hvmloader: Fix build with gcc 4.1 and later.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agolibxc: Move xg_memalign() into a proper source file, so that it
Keir Fraser [Wed, 9 Apr 2008 16:49:25 +0000 (17:49 +0100)]
libxc: Move xg_memalign() into a proper source file, so that it
definitely does not leak out of tools/libxc. Return to the
ioemu/osdep.c way of checking for posix_memalign() as this works on
Solaris.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agolibxc: Leave portability of xg_memalign() as in original patch, rather
Keir Fraser [Wed, 9 Apr 2008 15:54:44 +0000 (16:54 +0100)]
libxc: Leave portability of xg_memalign() as in original patch, rather
than following ioemu/osdep.c. This unbreaks build of readnotes.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agox86 hvm: Make sure that we correctly tear down the vlapic periodic
Keir Fraser [Wed, 9 Apr 2008 15:32:51 +0000 (16:32 +0100)]
x86 hvm: Make sure that we correctly tear down the vlapic periodic
timer when the vlapic is destroyed or reset.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
17 years agosave/restore: Use page-aligned allocations for hypercall args that are
Keir Fraser [Wed, 9 Apr 2008 15:31:16 +0000 (16:31 +0100)]
save/restore: Use page-aligned allocations for hypercall args that are
mlock()ed across other hypercall invocations, to avoid aliasing with
other hypercall arguments, causing spurious unlocking.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
17 years agox86 libxc: Fix mlock sizes in libxc around vcpu context hypercalls
Keir Fraser [Wed, 9 Apr 2008 15:24:46 +0000 (16:24 +0100)]
x86 libxc: Fix mlock sizes in libxc around vcpu context hypercalls
backing off to the old behaviour if we fail.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
17 years agolsevtchn: Simple tool to list event channel states for a domain.
Keir Fraser [Wed, 9 Apr 2008 15:11:34 +0000 (16:11 +0100)]
lsevtchn: Simple tool to list event channel states for a domain.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
17 years agox86: Suppress scary console message from sh_remove_shadows()
Keir Fraser [Wed, 9 Apr 2008 15:04:10 +0000 (16:04 +0100)]
x86: Suppress scary console message from sh_remove_shadows()
except in cases where the guest's behaviour is unrecoverable.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
17 years agoioemu: Fix rtl8139 emulation so that reboot works correctly in 64-bit
Keir Fraser [Wed, 9 Apr 2008 15:03:40 +0000 (16:03 +0100)]
ioemu: Fix rtl8139 emulation so that reboot works correctly in 64-bit
Windows VMs. Return an error if the guest OS tries to transmit a
packet with the transmitter disabled, so that it doesn't spin forever
waiting for it to complete.

Signed-off-by: Steven Smith <Steven.Smith@eu.citrix.com>
17 years agoxenstore: Place return statement in the correct place to fix the build.
Keir Fraser [Wed, 9 Apr 2008 15:02:49 +0000 (16:02 +0100)]
xenstore: Place return statement in the correct place to fix the build.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoxenstore: fix canonicalize for metanodes
Keir Fraser [Wed, 9 Apr 2008 14:59:54 +0000 (15:59 +0100)]
xenstore: fix canonicalize for metanodes

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
17 years agohvm: Clean out save/restore debug tracing.
Keir Fraser [Wed, 9 Apr 2008 14:57:31 +0000 (15:57 +0100)]
hvm: Clean out save/restore debug tracing.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agohvm: Allocate memory for hvm domains in batches.
Keir Fraser [Wed, 9 Apr 2008 14:25:16 +0000 (15:25 +0100)]
hvm: Allocate memory for hvm domains in batches.

Without this change, dom0 is unresponsive while the hvm domain's
physmap is populated in xen.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
17 years agosave/restore: Batch contiguous page-sized writes together during domain save.
Keir Fraser [Wed, 9 Apr 2008 14:19:09 +0000 (15:19 +0100)]
save/restore: Batch contiguous page-sized writes together during domain save.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
17 years agox86, vmx: Enable VPID (Virtual Processor Identification)
Keir Fraser [Wed, 9 Apr 2008 13:34:49 +0000 (14:34 +0100)]
x86, vmx: Enable VPID (Virtual Processor Identification)

Allows TLB entries to be retained across VM entry and VM exit, and Xen
can now identify distinct address spaces through a new
virtual-processor ID (VPID) field of the VMCS.

Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Xiaohui Xin <Xiaohui.xin@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoRevert 17409:a8ce3e934abd5d99 as it breaks the build.
Keir Fraser [Wed, 9 Apr 2008 13:10:32 +0000 (14:10 +0100)]
Revert 17409:a8ce3e934abd5d99 as it breaks the build.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoInstall missing ia64 hvm public headers.
Keir Fraser [Wed, 9 Apr 2008 12:53:38 +0000 (13:53 +0100)]
Install missing ia64 hvm public headers.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
17 years agohvmloader: Build with -Werror.
Keir Fraser [Wed, 9 Apr 2008 12:52:52 +0000 (13:52 +0100)]
hvmloader: Build with -Werror.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agohvmloader: Fix parsing Etherboot roms to avoid an infinite loop.
Keir Fraser [Wed, 9 Apr 2008 12:52:34 +0000 (13:52 +0100)]
hvmloader: Fix parsing Etherboot roms to avoid an infinite loop.

Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoShare VT-d code between x86 and IA64
Keir Fraser [Wed, 9 Apr 2008 12:35:44 +0000 (13:35 +0100)]
Share VT-d code between x86 and IA64

Declare arch-dependent functions in vtd.h, and implement them for x86.

Signed-off-by: Weidong Han <weidong.han@intel.com>
17 years agoxenstore: fix Solaris compile with newer GCC versions
Keir Fraser [Wed, 9 Apr 2008 12:32:21 +0000 (13:32 +0100)]
xenstore: fix Solaris compile with newer GCC versions
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoxenstore: merge xenstore-ls into the multicall binary.
Keir Fraser [Wed, 9 Apr 2008 12:31:19 +0000 (13:31 +0100)]
xenstore: merge xenstore-ls into the multicall binary.

This is done separately from moving the other utilities into the
mutlicall since ls is slightly different and was already separate.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
17 years agoxenstore: make the xenstore clients a single multicall binary
Keir Fraser [Wed, 9 Apr 2008 12:30:37 +0000 (13:30 +0100)]
xenstore: make the xenstore clients a single multicall binary
rather than multiply compiled source.

This saves a bunch of space when statically compiling.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
17 years agoxenstore: support building the xenstore clients statically.
Keir Fraser [Wed, 9 Apr 2008 12:27:33 +0000 (13:27 +0100)]
xenstore: support building the xenstore clients statically.

This removes threading from libxenstore.a (but not libxenstore.so)
since pthreads is incompatible with static linking and none of the
command line clients require threads anyway.

It is now possible to build these utilities statically with a uclibc
toolchain which is useful for small userspace utility domains.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
17 years agox86, vmx: Enable EPT (Extended PageTable) support on new Intel processors.
Keir Fraser [Wed, 9 Apr 2008 10:30:32 +0000 (11:30 +0100)]
x86, vmx: Enable EPT (Extended PageTable) support on new Intel processors.

We use the EPT page table as P2M (guest physical to machine
mapping), removing the linear page table when EPT is used for the
domain (see the new file p2m-ept.c). We did this by adding three
operations in the p2m_domain. If VT-d is enabled, the EPT page table
will be used as the VT-d page table as well (i.e. shared).

Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Xiaohui Xin <Xiaohui.xin@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoioemu: Add tapdisk-ioemu tool
Keir Fraser [Tue, 8 Apr 2008 10:41:27 +0000 (11:41 +0100)]
ioemu: Add tapdisk-ioemu tool

Currently, tap:ioemu can only be used for domains which have a device
model running. This isn't the case for all domains. The most important
of the missing domains is Dom0 which needs acces e.g. to extract the
kernel from the domain's image.

tapdisk-ioemu is a tool compiled from ioemu source plus a small
wrapper which handles tap:ioemu access for domains without device
model (currently Dom0). You must start tapdisk-ioemu manually before
trying to attach a tap:ioemu disk to Dom0 at the moment. A patch to
blktapctrl will follow to automatically start tapdisk-ioemu when
needed.

Signed-off-by: Kevin Wolf <kwolf@suse.de>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoxm: Fix xm shutdown for xendomains.
Keir Fraser [Tue, 8 Apr 2008 08:57:37 +0000 (09:57 +0100)]
xm: Fix xm shutdown for xendomains.

If xm shutdown command is passed the domain ID, it should still wait
for the shutdown completion of the domain if passed option --wait.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
17 years agox86_64: Be more careful in emulating 32-bit call gates.
Keir Fraser [Tue, 8 Apr 2008 08:46:57 +0000 (09:46 +0100)]
x86_64: Be more careful in emulating 32-bit call gates.

An assertion could legitimately fire.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoxencomm: add support for log dirty mode
Keir Fraser [Mon, 7 Apr 2008 14:02:47 +0000 (15:02 +0100)]
xencomm: add support for log dirty mode

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
17 years agoSplit the meaning of "dom0-min-mem = 0" to a new option.
Keir Fraser [Mon, 7 Apr 2008 14:01:26 +0000 (15:01 +0100)]
Split the meaning of "dom0-min-mem = 0" to a new option.

I have written a patch to split the current meaning of
"dom0-min-mem = 0" to a new option "enable-dom0-ballooning".

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoxend: Don't allow dom0 memory to be ballooned below dom0-min-mem
Keir Fraser [Sat, 5 Apr 2008 21:25:30 +0000 (22:25 +0100)]
xend: Don't allow dom0 memory to be ballooned below dom0-min-mem
configuration parameter.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
17 years agoioemu: drop duplicate memory reservation
Keir Fraser [Sat, 5 Apr 2008 21:21:42 +0000 (22:21 +0100)]
ioemu: drop duplicate memory reservation

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years agostubdom: trivial warning fixup
Keir Fraser [Sat, 5 Apr 2008 21:21:01 +0000 (22:21 +0100)]
stubdom: trivial warning fixup

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years agostubdom: add asynchronous disk flush support
Keir Fraser [Sat, 5 Apr 2008 21:20:25 +0000 (22:20 +0100)]
stubdom: add asynchronous disk flush support

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years agostubdom: Fix quotes in stub domain creation
Keir Fraser [Sat, 5 Apr 2008 21:19:02 +0000 (22:19 +0100)]
stubdom: Fix quotes in stub domain creation
by using the same as in debug mode.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years agoia64: Fix the build by using generic cpu_to_node() abstraction in a
Keir Fraser [Sat, 5 Apr 2008 21:18:21 +0000 (22:18 +0100)]
ia64: Fix the build by using generic cpu_to_node() abstraction in a
common header file.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
17 years agox86: Avoid use of domain_crash_synchronous() in C code.
Keir Fraser [Fri, 4 Apr 2008 15:25:52 +0000 (16:25 +0100)]
x86: Avoid use of domain_crash_synchronous() in C code.

We continue to use it in asm where it is a greater convenience and
where also it is much more clearly correct.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agox86: Fix the build.
Keir Fraser [Fri, 4 Apr 2008 15:25:03 +0000 (16:25 +0100)]
x86: Fix the build.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoioemu: advertise write cache feature
Keir Fraser [Fri, 4 Apr 2008 14:43:01 +0000 (15:43 +0100)]
ioemu: advertise write cache feature

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years agotools: Use PATH_MAX for pathname char arrays.
Keir Fraser [Fri, 4 Apr 2008 13:49:37 +0000 (14:49 +0100)]
tools: Use PATH_MAX for pathname char arrays.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoAMD IOMMU: Defer IO pagetable construction until device assignment
Keir Fraser [Fri, 4 Apr 2008 12:54:05 +0000 (13:54 +0100)]
AMD IOMMU: Defer IO pagetable construction until device assignment

During HVM domain creation, I/O page tables are filled by coping p2m
entries from p2m table, which is a useless step for non-passthru
domain. This patch defers I/O page table construction until the moment
of device assignment. In case that pci devices are never assigned or
hot plugged, the unnecessary duplication will be avoided.

Signed-off-by: Wei Wang <wei.wang2@amd.com>
17 years agox86: fold GDT and LDT page types
Keir Fraser [Fri, 4 Apr 2008 12:10:34 +0000 (13:10 +0100)]
x86: fold GDT and LDT page types

...it's an unecessary distinction

Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agox86: Adjust ACPI PM1a/b event/control information retrieval
Keir Fraser [Fri, 4 Apr 2008 12:03:57 +0000 (13:03 +0100)]
x86: Adjust ACPI PM1a/b event/control information retrieval

Restore the fallback to v1 fields which got removed as a side effect
of c/s 17249. Additionally, use the correct width from the tables
rather than hardcoded values. Also make the copying code more compact
by using a macro, and print the results earlier to have better
indication whether subsequent failures lead to the information
retrieved getting invalidated.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agoRemove dead file. Missed in previous changeset.
Keir Fraser [Fri, 4 Apr 2008 12:00:26 +0000 (13:00 +0100)]
Remove dead file. Missed in previous changeset.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoacm: Modify the default ACM boot policy so that unlabeled domains can always start
Keir Fraser [Fri, 4 Apr 2008 11:59:28 +0000 (12:59 +0100)]
acm: Modify the default ACM boot policy so that unlabeled domains can always start

I am modifying the xen- and xend-internal default policy so that
unlabeled domains can always start. A more restrictive security policy
can then be set on top of that policy.

Signed-off-by: Stefan Beger <stefanb@us.ibm.com>
17 years agoxen: Allow NUMA node to be specific to alloc_domheap_pages() via a new
Keir Fraser [Fri, 4 Apr 2008 09:48:01 +0000 (10:48 +0100)]
xen: Allow NUMA node to be specific to alloc_domheap_pages() via a new
MEMF_node() sub-flag type.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agoxm: When dumping core of an errant domain do not unpause after the
Keir Fraser [Fri, 4 Apr 2008 09:18:45 +0000 (10:18 +0100)]
xm: When dumping core of an errant domain do not unpause after the
dump. This could allow the domain to e.g., access disks after
fail-over.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
17 years agoxend: Add "dumpcore_in_progress" flag to xenstore information
Keir Fraser [Thu, 3 Apr 2008 10:37:23 +0000 (11:37 +0100)]
xend: Add "dumpcore_in_progress" flag to xenstore information

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
17 years agodocs: Fix typos.
Keir Fraser [Thu, 3 Apr 2008 10:34:21 +0000 (11:34 +0100)]
docs: Fix typos.
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
17 years agoxend, acm: Assign an unlabeled resource the __UNLABELED__ label
Keir Fraser [Thu, 3 Apr 2008 10:33:10 +0000 (11:33 +0100)]
xend, acm: Assign an unlabeled resource the __UNLABELED__ label

Assign an unlabeled resource the __UNLABELED__ label rather than
failing the lookup in the dictionary and catching the exception.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
17 years agoxend, acm: Prevent labeling of vlans with the same color
Keir Fraser [Thu, 3 Apr 2008 10:32:20 +0000 (11:32 +0100)]
xend, acm: Prevent labeling of vlans with the same color

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
17 years agoVT-d: Enable queued invalidation on all vt-d engines before enabling
Keir Fraser [Thu, 3 Apr 2008 10:24:20 +0000 (11:24 +0100)]
VT-d: Enable queued invalidation on all vt-d engines before enabling
interrupt remapping.

Signed-off-by: Allen Kay <allen.m.kay@intel.com>
17 years agoVT-d: Make ACPI DMAR parsing more robust
Keir Fraser [Thu, 3 Apr 2008 10:19:50 +0000 (11:19 +0100)]
VT-d: Make ACPI DMAR parsing more robust

Parsing ACPI related VT-d tables may cause infinite loop due to u8
value wraparound.  Also add sanity check on table length entry.

Signed-off-by: Espen Skoglund <espen.skoglund@netronome.com>
17 years agostubdom: warn about disabled features
Keir Fraser [Wed, 2 Apr 2008 14:46:52 +0000 (15:46 +0100)]
stubdom: warn about disabled features

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years agominios: Fix xfree() bug.
Keir Fraser [Wed, 2 Apr 2008 14:32:13 +0000 (15:32 +0100)]
minios: Fix xfree() bug.

It has to check first if the memory to free is so big as to be freed
directly by free_pages. mini-os domains crash without this patch if
vfb is misconfigured.

Signed-off-by: INAKOSHI Hiroya <inakoshi.hiroya@jp.fujitsu.com>
17 years agoioemu: advertise write cache as enabled only when it actually is.
Keir Fraser [Wed, 2 Apr 2008 14:30:26 +0000 (15:30 +0100)]
ioemu: advertise write cache as enabled only when it actually is.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years agohvmloader: Parse Etherboot option ROMs the conventional way.
Keir Fraser [Wed, 2 Apr 2008 12:46:57 +0000 (13:46 +0100)]
hvmloader: Parse Etherboot option ROMs the conventional way.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agox86 firmware: Consolidate firmware common build rules.
Keir Fraser [Wed, 2 Apr 2008 09:42:27 +0000 (10:42 +0100)]
x86 firmware: Consolidate firmware common build rules.

Also avoid overriding global optimisation default (-O1, -O2, etc.)

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agohvmloader: Fix parallel build.
Keir Fraser [Wed, 2 Apr 2008 09:28:56 +0000 (10:28 +0100)]
hvmloader: Fix parallel build.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agodocs: Add missing backslash.
Keir Fraser [Wed, 2 Apr 2008 08:59:25 +0000 (09:59 +0100)]
docs: Add missing backslash.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
17 years agomerge with xen-unstable.hg
Alex Williamson [Tue, 1 Apr 2008 17:29:03 +0000 (11:29 -0600)]
merge with xen-unstable.hg

17 years agoAdd new physinfo sysctl field to changelog.
Keir Fraser [Tue, 1 Apr 2008 17:06:20 +0000 (18:06 +0100)]
Add new physinfo sysctl field to changelog.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years agotools: Obtain platform capabilities via physinfo sysctl.
Keir Fraser [Tue, 1 Apr 2008 17:04:19 +0000 (18:04 +0100)]
tools: Obtain platform capabilities via physinfo sysctl.
Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years ago[IA64] Cleanup vcpu.h
Alex Williamson [Tue, 1 Apr 2008 16:30:57 +0000 (10:30 -0600)]
[IA64] Cleanup vcpu.h

Make VCPU control register access routines static inline for efficiency.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
17 years ago[IA64] Other Intel IPF platforms use COM1
Alex Williamson [Tue, 1 Apr 2008 16:24:41 +0000 (10:24 -0600)]
[IA64] Other Intel IPF platforms use COM1

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
17 years agodocs: Fix HVM user documentation
Keir Fraser [Tue, 1 Apr 2008 16:24:22 +0000 (17:24 +0100)]
docs: Fix HVM user documentation

Summary of changes:

- replaced VMX with HVM
- added AMD as a vendor of HVM capable processors
- removed LibVNCServer as a requirement for HVM builds
- fixed name of HVM example file
- changed default value of acpi, apic and pae options
- added hap option
- removed reference to cdrom option and integrated it into "disk"
- improved examples for disk option
- replaced vncviewer option with vncconsole
- removed obsolete ne2000 option
- replaced enable-audio with soundhw
- fixed dd usage for creating sparse files (count=0)
- remove acpi=0 hint for Windows guests
- removed reference to (obsolete?) -f option for xm create
- made shutdown advice less Linux centric
- removed comment about save/restore and migration not yet ready

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
17 years agoioemu rendering fixes
Keir Fraser [Tue, 1 Apr 2008 16:22:52 +0000 (17:22 +0100)]
ioemu rendering fixes

- no need to call the colourdepth callback in text mode: the buffer
  cannot be shared anyway;

- line size changes are currently undetected: since we added a
  linesize parameter to the resize callback, we also need to detect
  line size changes and call dpy_resize accordingly;

- 8 bit colour depth with the shared framebuffer is broken: in order
  to fix it I disabled the shared buffer in vnc for the 8bit colour
  depth case (it has to be done in software anyway..) and implemented
  paletted colours in both opengl and sdl;

- opengl rendering is broken when there is padding in the framebuffer
  lines: removing unnecessary GL_UNPACK_ALIGNMENT settings so that the
  GL_UNPACK_ROW_LENGTH parameter can work properly.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
17 years agohvmloader: Properly implement some more SMBIOS fields.
Keir Fraser [Tue, 1 Apr 2008 16:21:05 +0000 (17:21 +0100)]
hvmloader: Properly implement some more SMBIOS fields.

In particular:
 - BIOS release date
 - BIOS characteristics
 - BIOS extended characteristics (Targeted Content Distribution is
   required to be specified to pass WHQL).
 - CPU speed

Based on a patch by Kamala Narasimhan <kamala.narasimhan@citrix.com>

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
17 years ago[IA64] Use ppn to store io type.
Alex Williamson [Tue, 1 Apr 2008 15:42:52 +0000 (09:42 -0600)]
[IA64] Use ppn to store io type.

Instead of using 3 extra bits in pte to store the io type, only one bit
is used to mark the page as an IO page and the type is stored in the ppn
field.  This both save 2 bits and allow many more io types.

Move the VTi memory map to arch-ia64/hvm/memmap.h

Signed-off-by: Tristan Gingold <tgingold@free.fr>
17 years agox86: Support loading Linux bzImage v2.08 and up.
Keir Fraser [Tue, 1 Apr 2008 09:09:33 +0000 (10:09 +0100)]
x86: Support loading Linux bzImage v2.08 and up.

The latest -mm kernel (2.6.25-rc3-mm1) contains v2.08 of the Linux
bzImage format which embeds an ELF file in place of the raw payload
allowing it to be extracted and used by the Xen domain builder.

It is expected that this functionality will be put forward for 2.6.26.

Signed-off-by : Ian Campbell <ijc@hellion.org.uk>

17 years agoxend: XSPolicy.can_run xend support
Keir Fraser [Tue, 1 Apr 2008 09:08:03 +0000 (10:08 +0100)]
xend: XSPolicy.can_run xend support

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>