Commit Graph
11465 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk 60ddf8d64d Fix unmodified drivers for PV-on-HVM on IA64.
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
2006-09-13 14:34:34 +01:00
kaf24@firebug.cl.cam.ac.uk da52271d2b [XEN][X86_64] Allocate multiple L2 page directories for
the read-only M2P table mapping, if required.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-09-13 14:30:06 +01:00
kaf24@firebug.cl.cam.ac.uk deb051deec Better PIC code production: Using #pragma GCC visibility, *all*
data references benefit, not just the ones to objects defined in the
same translation unit. However, as this now is a header file change,
detection logic cannot be used as nicely, so I guess we want to keep the
previous change and add this one on top.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-09-13 14:24:42 +01:00
kaf24@firebug.cl.cam.ac.uk 94170dd0f6 [HVM] Add broadcast destination for physical destination mode in
VLAPIC.
Based on a patch from Xiaohui Xin <xiaohui.xin@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-13 14:12:28 +01:00
kaf24@firebug.cl.cam.ac.uk d4b644873d Add new operation XENOPROF_get_buffer in xenoprof hypercall. Also
remove buffer related arguments from XENOPROF_init operation. This
is the first step to allow dynamic mapping/unmapping of xenoprof
buffers to
enable profiling a domain in passive mode and then switch to active
mode (or vice-versa). Currently a domain can only be profiled in a
single mode. Also passive domains cannot have oprofile builtin the
kernel or passive profiling will fail.

Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
2006-09-13 14:05:33 +01:00
kaf24@firebug.cl.cam.ac.uk 80f2588d2b [CONSOLED] Shouldn't call domain_create_ring() for a domU which is shutting down.
There is a race condition between domain_create_ring() and the removal
of the domU entry from xenstore. If the removal of the domU entry from xenstore
comes later than the first xs_gather() call in domain_create_ring(), it will go
on and bind the evtchn port to the dying domU, which will cause below error
message: (XEN) (file=event_channel.c, line=144) EVTCHNOP failure: domain 0, error -22, line 144

Signed-off-by: Max Zhen <max.zhen@sun.com>
2006-09-13 14:01:23 +01:00
kaf24@firebug.cl.cam.ac.uk 9f019b36fd [TOOLS] Enhance Python version check for v2.5.
From: Charles Coffing <ccoffing@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-13 13:54:59 +01:00
kaf24@firebug.cl.cam.ac.uk c6fed51d96 [XEN] Define -fvisibility=hidden in CFLAGS to reduce -fpic cost
when compiling for x86/64.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-13 13:52:03 +01:00
awilliam@xenbuild.aw 84804f40f9 merge with xen-unstable.hg 2006-09-12 11:43:22 -06:00
awilliam@xenbuild.aw b63e1dbb4d [IA64] swiotlb clash fix
Do not define dma_supported to platform_dma_supported when building
the Xen kernel. This happend to work for DIG builds because the
swiotlb.c version of dma_supported compiles to identical code as
arch/i386/kernel/pci-dma-xen.c so the linker didn't complain.

Signed-off-by: Jes Sorensen <jes@sgi.com>
2006-09-12 11:42:27 -06:00
awilliam@xenbuild.aw b80d869beb [IA64] machvec cleanups
Move the DIG specific platform_dma_foo defines to where they belong.

Signed-off-by: Jes Sorensen <jes@sgi.com>
2006-09-12 11:36:39 -06:00
awilliam@xenbuild.aw 2e32ced759 [IA64] Add xen boot option "dom0_vcpus_pin"
This patch adds the xen boot option to pin Domain-0 VCPUs.

Signed-off-by: Kouya SHIMURA <kouya@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-09-12 11:29:02 -06:00
atse@norwich.uk.xensource.com 82f6d80e3a [XEND] Return an Internal Server Error via the Xend HTTP server.
This allows domain creation failures can be detected when done via HTTP.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2006-09-12 16:33:33 +01:00
Steven Hand f1b7d71605 This patch fixes return codes for the acm-related Xen management scripts
(error conditions) and addresses minor issues that 'pycheck' complains
about. It is tested with xm-test and by manually running the xm
commands. It also handles the return case (reported by Masaki Kanno)
that was missed in the originally patch.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>
2006-09-12 11:09:22 +01:00
kaf24@firebug.cl.cam.ac.uk 84ef1509a4 [XEN] Revert changeset 11438. Needs fixing for PAE.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-11 01:55:03 +01:00
awilliam@xenbuild.aw 296b9322bc [IA64][XEND] Fix getRequiredShadowMemory parameters
Parameter count changed in xen-unstable.hg 11417:65a41e3206ac

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-09-10 15:34:14 -06:00
awilliam@xenbuild.aw fc81946a2c merge with xen-unstable.hg 2006-09-10 14:52:57 -06:00
awilliam@xenbuild.aw 4a1c3c7197 [IA64] Add VTI related perfc
This patch intends to add VTI-related and fw_hypercall counters.

Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
Signed-off-by: Hiroya INAKOSHI <inakoshi.hiroya@jp.fujitsu.com>
2006-09-10 14:31:54 -06:00
awilliam@xenbuild.aw dff14d2746 [IA64] Cleanup for PV-on-HVM for IPF
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
2006-09-10 14:26:27 -06:00
Ian Campbell d37211bc5e [LINUX] Move .bss declaration after .data.* in x86_64 linker script.
Older binutils (prior to 2.16) have a problem with the linker script resulting
from the change introducing explicit segment maps. Namely does the
respective linker not properly handle @nobits sections (i.e. .bss) sitting
between @progbits ones (i.e. .data.*). The .bss section must therefore
be moved past all initialized sections (as is already the case on i386).
Replacement patch attached.

From: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-09-09 20:48:16 +01:00
kfraser@ubuntu.eng.hq.xensource.com ff27f51568 [XEN] Remove backpointer info from page type info. No longer used.
Replace with a flag for PAE final L2, needed for detecting PAE L2's
which contain Xen mappings.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-08 16:45:39 -07:00
kfraser@ubuntu.eng.hq.xensource.com 5e1a83e8f5 Build fix. 2006-09-08 15:46:54 -07:00
kfraser@ubuntu.eng.hq.xensource.com 160a8ad575 [LINUX] console: ensure virtual console is disabled if mfn/evtchn
not provided.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-08 14:49:00 -07:00
kaf24@firebug.cl.cam.ac.uk cda30a2a6c [HVM] pv drivers: Allocate hypercall area as an executable region.
We have to use __vmalloc() and __PAGE_KERNEL because vmalloc_exec()
and PAGE_KERNEL_EXEC are not exported to modules.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-08 19:15:11 +01:00
Tim Deegan 06b8f9d3ab [XEND] balloon enough memory to enable shadow mode before live migration.a
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-09-08 18:55:53 +01:00
ssmith@weybridge.uk.xensource.com e7e0c88d8c [XEN] gnttab: Initialise maptrack->flags
__gnttab_unmap_grant_ref verifies the validity of the handle by
checking it against maptrack_limit and making sure that the flags
field at the given handle is non-zero.

This means that the flags of an unused handle should be zero in
order to prevent unused handles from getting past this check.

However, we don't seem to set it to zero to begin with when we
allocate the maptrack table.  This could potentially lead to the
corruption of the other domain's internal state, and/or the hypervisor's
internal state.

This patch makes sure that it is zeroed.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-09-06 13:16:02 +01:00
jchesterfield@dhcp92.uk.xensource.com c2a28ee6ac [BLKTAP] Fix in xend to properly destroy blktap devices when deviceClass=='tap'
Submitted by Andres Lagar Cavilla
2006-09-06 11:42:29 +01:00
kfraser@ubuntu.eng.hq.xensource.com 7c0fc730a3 [XEN] gnttab: Read domid/flags atomically.
This more neatly matches how the two adjacent fields in
the grant-table entry are accessed by the cmpxchg()
function.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-09-05 18:36:23 -07:00
kfraser@ubuntu.eng.hq.xensource.com a97227a56d [XEN] Fix bitops inline asm to specify that memory is clobbered.
Necessary because the modified word may not be the one directly
addressed by the memory parameter (since the parameter actually
points at an array, not a scalar value).

The change to set_bit/__set_bit is reported to fix an issue
on x460 hardware, as reported (and this fix suggested) by
Ryan Harper <ryanh@us.ibm.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-05 18:28:27 -07:00
kfraser@ubuntu.eng.hq.xensource.com ea72eea319 [XEN] Clean up grant-table pinning logic.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-05 12:20:31 -07:00
Ewan Mellor bc93f293ac Fix xm create -F. This can't be very widely used, because it looks like it's
been broken for ages!

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-09-05 17:26:20 +01:00
Ewan Mellor 26f067672a Added vmunused flag to unit test results to match recent change.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-09-05 17:26:18 +01:00
Ewan Mellor 70b20785e0 Add missing import.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-09-05 17:26:17 +01:00
Ewan Mellor bd5b7756c3 This patch adds the argument check of "--ms_per_sample=" option. For
"--ms_per_sample=", a negative value should be invalid.

e.g.
% xenmon.py -n --ms_per_sample=-1
usage: xenmon.py [options]

xenmon.py: error: option --ms_per_sample: invalid negative value: '-1'

Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
2006-09-05 17:06:02 +01:00
Ewan Mellor 8037b37752 This patch improves error message of xm console command.
# xm console Domain-0
Can't specify Domain-0

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-09-05 17:06:01 +01:00
Ewan Mellor 9ad71b6de8 This patch intends for updating "man xm" about xm info description.
For example item:system is removed from xm info.

Signed-off-by: shaocyou <shaocyou@jp.fujitsu.com>
2006-09-05 16:48:21 +01:00
Ewan Mellor 710a9ced48 Fix inverted sense of getRequiredAvailableMemory and
getRequiredInitialReservation on x86 HVM.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-09-05 16:23:11 +01:00
jchesterfield@dhcp92.uk.xensource.com 30acc78a4b [blktap] Fix block device getsize bug in qcow when backing_filename is a block device. 2006-09-05 15:35:42 +01:00
ssmith@weybridge.uk.xensource.com f50af37ef4 Merge. 2006-09-05 14:28:19 +01:00
ssmith@weybridge.uk.xensource.com 9da69e0f6c [XEN] Add more checking when reusing an active grant reference.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Based-on-a-patch-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-09-05 14:27:05 +01:00
Ewan Mellor f470f70290 Fix the memory reservation calculations. Introduce a new architecture-specific
call to determine the initial reservation separately from the amount of
memory to be freed up by ballooning -- when using QEMU, we lose 8 MiB to video
RAM, which must be accounted for when ballooning, but _not_ accounted for
within the domain's memory allocation.

Tidy this code up using the new architecture-specific interface arrangement.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-09-05 14:17:50 +01:00
Ewan Mellor cbf197aa0d The attached patch prevents a domain with an attached vTPM from doing
local migration since this does not seem to work correctly (see tests in
xm test suite). If no vTPM has been attached, the local migration
proceeds as usual.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-09-05 14:17:49 +01:00
Andrew Warfield 60a14c571d Fix spellcheck-avoiding typo: s/not/now.
(Thanks Steven S. and Muli)

Signed-off-by: Andrew Warfield <andy@xensource.com>
2006-09-05 06:14:31 -07:00
ssmith@weybridge.uk.xensource.com d8e158c03f Fix up cset 11228.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-09-05 13:57:30 +01:00
Andrew Warfield b072164dcc Update user manual to use blktap for file-based VBDs.
Signed-off-by: Andrew Warfield <andrew.warfield@xensource.com>
2006-09-04 13:54:36 -07:00
awilliam@xenbuild.aw ed1050d536 [IA64] Bug fix: do not crash if no FPSWA.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-09-04 14:48:03 -06:00
awilliam@xenbuild.aw b1145da668 [IA64] hwclock support
This patch supports the hwclock on Domain-0.
It adds the following EFI runtime service emulations for the 
hwclock support.
 1. SetTime
 2. Get/SetWakeupTime

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-09-04 14:45:20 -06:00
ssmith@weybridge.uk.xensource.com 114411f240 Add support for netif frontends which don't support checksum offload.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-09-04 16:38:24 +01:00
Tim Deegan 9113a62c1b [XEN] Fix mapping of p2m into monitor tables for external-mode guests.
The previous code could map frame zero into the P2M table on PAE hosts.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-09-02 12:11:54 +01:00
Andrew Warfield f1da4c1bac Tapdisk cleanup.
Sign-off-by: Jun Koi <junkoi2004@gmail.com>
2006-09-01 13:24:51 -07:00