Commit Graph
11433 Commits
Author SHA1 Message Date
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
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
kaf24@firebug.cl.cam.ac.uk e026a54ad6 [LINUX] xenoprof: use alloc_vm_area instead of get_vm_area. The former
is exported to modules.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-01 16:11:51 +01:00
Steven Hand aa9a5f7239 More hvm common-code cleanups.
Signed-off-by: Steven Hand <steven@xensource.com>
2006-09-01 13:52:04 +01:00
Steven Hand 8ed0449887 Fix typo.
With this patch, a checked build of Windows Server 2003 can be installed
and run on top of a VMX domain.

Signed-off-by: Eddie Dong <eddie.dong@intel.com>
Signed-off-by: Qing He <qing.he@intel.com>
2006-09-01 12:16:21 +01:00
Steven Hand 55b3732db6 Fix build w/ perfc after cset 11394:96a4379be74a
Signed-off-by: Steven Hand <steven@xensource.com>
2006-09-01 12:07:39 +01:00
kaf24@firebug.cl.cam.ac.uk 6fd2fc155a [XEN] Improve Xen information in register dumps.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-01 01:25:15 +01:00
kaf24@firebug.cl.cam.ac.uk 9f5c2cdc38 [XEN] Include CR2 and CR4 in register dumps.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-09-01 01:07:45 +01:00
kaf24@firebug.cl.cam.ac.uk 8b7ee4cecb [XENBUS] Make frontend drivers shutdown cleanly.
This patch makes frontend drivers being shutdown when devices_shutdown()
is called and walks down the device tree.  Most of it is handled by the
xenbus core, which got a new function for the bus->shutdown callback.

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
2006-09-01 00:42:14 +01:00
kaf24@firebug.cl.cam.ac.uk 5182367c40 [XENBUS] Introduce new "online" node for backend drivers.
Driver changes:  Make backend drivers check it when entering Closed
state, only unregister devices when the "online" node is either "0" or
not present.  The later maintains backward compatibility.

Tools changes:  Update "online" node when creating and hot-unplugging
devices.

Background: When kexec'ing a new kernel, the old kernel's frontend
driver will shutdown, but the backend device should *NOT* disappear
due to that, so the new kernel instance can reconnect.

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
2006-09-01 00:33:19 +01:00
kaf24@firebug.cl.cam.ac.uk e957a7cb4a Add xenbus_strstate() helper function for more readable debug output.
From: Gerd Hoffmann <kraxel@suse.de>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-01 00:20:42 +01:00
kaf24@firebug.cl.cam.ac.uk 47ed30083c [HVM] Add a mmio decode for 0F BA /4 for HVM guest.
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
2006-08-31 23:59:11 +01:00
kaf24@firebug.cl.cam.ac.uk 2089ee9eab [HVM][VMX] Add CR8 virtualization. Needed for x86/64 Windows boot.
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
2006-08-31 23:58:23 +01:00
kaf24@firebug.cl.cam.ac.uk 34713594dc [HVM][VMX] Report MCE/MCA features in CPUID.
Required for x86/64 Windows guest.
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
2006-08-31 23:56:45 +01:00
kaf24@firebug.cl.cam.ac.uk 1bf84e45f8 [HVM][SVM] Remove redundant do_softirq in the VMEXIT_INTR handler.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
2006-08-31 23:47:04 +01:00
kaf24@firebug.cl.cam.ac.uk 1a4d425438 [XEN] Clean up BASE_DISALLOW_MASK and fix for x86/64.
Original patch from Xiaohui Xin <xiaohui.xin@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-31 23:44:41 +01:00
kaf24@firebug.cl.cam.ac.uk 1a251c6632 [XEN] Use vcpu_info pointer in vcpu structure.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-08-31 22:53:46 +01:00
kaf24@firebug.cl.cam.ac.uk 60d146799b [XEN] Remove unused IS_INVALID_M2P_ENTRY macro.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-08-31 22:29:23 +01:00
kaf24@firebug.cl.cam.ac.uk 194fd7d7ec [XEN] interfaces: Remove explicit alignment/padding from domctl/sysctl hypercalls.
Generation of 32-on-64 compat shims is being semi-automated for all
other hypercalls. It seems sensible to teat all hypercalls uniformly
and do the same for the control-stack management interfaces too.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-31 19:53:27 +01:00
kaf24@firebug.cl.cam.ac.uk 39cda1cf3f [TOOLS] xenctrl.h defines __XEN_TOOLS__ if it's not already.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-31 18:54:50 +01:00
kaf24@firebug.cl.cam.ac.uk 5bfcf44bb8 [LINUX] Remove vm_map_xen_pages(), clean up __direct_remap_page_range.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-31 18:23:28 +01:00
tdeegan@york.uk.xensource.com d34bad56fc [XEN] Fix shadow linear-mapping recopy code for SMP PAE HVM on 64bit Xen.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-08-31 14:46:28 +01:00
Anil Madhavapeddy 80cc11a16f [MINIOS] Declare a __XEN_INTERFACE_VERSION__ to fix the build 2006-08-31 12:07:46 +01:00
kaf24@firebug.cl.cam.ac.uk 1a1adcfe49 [LINUX] /proc/iomem should not be initialised from pseudophysical e820 map.
This is because it should only contain real I/O memory address ranges,
otherwise we can get false conflicts between a real I/O range and a
'pseudophysical' RAM range, causing drivers to fail to work in a domU.
Also prevent kernel code/data being requested as iomem resources --
they are not contiguous in 'io memory' space so this would not make
sense.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-31 03:05:40 +01:00
kaf24@firebug.cl.cam.ac.uk 8a1ca3b97e Merge with xenppc-unstable-merge.hg. 2006-08-30 22:36:18 +01:00
kaf24@firebug.cl.cam.ac.uk 1b4f247ac5 Merge with xen-ia64-unstable.hg 2006-08-30 21:38:34 +01:00
Hollis Blanchard bbf0ef9494 [POWERPC] merge with xen-unstable.hg 2006-08-30 14:09:31 -05:00
kaf24@firebug.cl.cam.ac.uk 02980865d0 [NET] front: move register_netdev() + sysfs attribute registering from create_netdev() into the new open_netdev() function.
open_netdev is called as very last thing in netdev_probe.

This closes at least one initialization race: uninitialized
mac address is visible for a short time in
/sys/class/net/${if}/address

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
2006-08-30 18:40:40 +01:00
kaf24@firebug.cl.cam.ac.uk d96c9af4a3 [XEN] Add a start_pfn field in xen_domctl_getmemlist.
This is used by ia64 because it directly reads the P2M table.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-08-30 18:19:04 +01:00
kaf24@firebug.cl.cam.ac.uk c5332c3621 Revert powerpc build break after dom0_ops split.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2006-08-30 18:08:19 +01:00