Commit Graph
21271 Commits
Author SHA1 Message Date
Keir Fraser 283fec5d9a x86: fix off-by-one error in the cache flush portion of flush_area_local().
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2010-05-04 12:39:29 +01:00
Keir Fraser 82fa47405a blktap: Fix old QCow tapdisk image handling
When I tried to use QCow image, I found that only each second boot is
successful. As I discovered, this is caused by wrong handling old qcow
tapdisk images. Extended header flag is not stored correctly so the
blktap tries to change endian fo L1 table on each startup.

From: Miroslav Rezanina <mrezanin@redhat.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-05-04 12:38:19 +01:00
Keir Fraser 15fb9e3a4e libxl: make set_memory_target work on domains with no videoram
If a domain has no videoram (say, dom0), then treat the size as 0 and
continue, rather than just failing.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
2010-05-04 12:36:30 +01:00
Keir Fraser 9b07822c1a p2m_alloc_table: use p2m_alloc_ptp
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
2010-05-04 12:33:14 +01:00
Keir Fraser d640a290f2 vmx, tboot: Check the correct in/outside-SMX flag when init'ing VMX.
Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-05-04 12:29:05 +01:00
Keir Fraser d475c41771 xend: fix bug in option parsing
If you enable legacy tcp xmlrpc in xend's config but omit to enable
ssl then a backtrace is generated when starting xend.

Signed-off-by: Arnd Hannemann <hannemann@nets.rwth-aachen.de>
2010-05-04 12:23:54 +01:00
Keir Fraser 963050b0a7 x86: add CMCI software injection interface
This small patch now add CMCI software injection interface.
So that CMCI error could be triggered by software on CPUs
which support CMCI.

Signed-off-by: Yunhong Jiang<yunhong.jiang@intel.com>
Signed-off-by: Liping Ke <liping.ke@intel.com>
2010-05-04 12:22:25 +01:00
Keir Fraser 9fdb81c40a xl: Make xl usage summary legible
The xl usage summary is illegible with its double spacing and huge gap
between the command and its description.  Tighten it up.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
2010-05-04 12:19:50 +01:00
Keir Fraser b857d5d8d1 pv_ops: Switch kernel from xen/master to xen/stable-2.6.31.x
This is functionally identical to xen/master at the moment, but more
meaningful.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
2010-05-04 12:17:19 +01:00
Keir Fraser 2096682555 Make sure git clone gets the right kernel branch
When cloning kernel repo:
  1. make remote called "xen" rather than the default "origin"
  2. directly checkout the desired branch, rather than the default
  then the desired one

Git 1.5 doesn't support -b on git clone, and seems to do something odd
with the checkout branch argument, so avoid using the newer
commandline options.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
2010-05-04 12:16:37 +01:00
Keir Fraser 7203b89c15 mini-os: Revert 21106:b20f897d6010 "Fix xenbus initialisation"
Jeremy Fitzhardinge (jeremy@goop.org) reports that this fixes HVM+stubdom.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-05-04 12:15:28 +01:00
Keir Fraser 335c738c44 Change the global suspend event channel lock file to a per-domain lock file
This allows multiple guests to be migrated or protected by Remus
simultaneously.

Signed-off-by: Shriram Rajagopalan <rshriram@cs.ubc.ca>
Acked-by: Brendan Cully <brendan@cs.ubc.ca>
2010-05-04 12:12:28 +01:00
Keir Fraser 1edbc90d99 xm: catch TypeError if xenconsole is nonexistent
Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
2010-05-04 12:10:54 +01:00
Keir Fraser ba6ae3d1ef xl: Add option '-c' for 'xl create'
* -c Connect to the console after the domain is created.

Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
2010-05-04 12:09:48 +01:00
Keir Fraser 73aeac4a30 xl: Add support of specifying '[vars]' in 'xl create'.
Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
2010-05-04 12:03:20 +01:00
Keir Fraser b2372dcbc5 xl: Add some return-code sanity checks to 'xl info'.
Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
2010-05-04 11:56:26 +01:00
Keir Fraser 61cddd709e xl: fix XL_LOG_ERRNOVAL output
Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
2010-05-04 11:49:46 +01:00
Keir Fraser 9136a919b1 xl: Add basic bash completion for xl command.
Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
2010-05-04 11:48:10 +01:00
Keir Fraser 817ad21add xl: Remove unused variable verbose in info function
Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
2010-05-04 11:46:24 +01:00
Keir Fraser 3f7c998a0d xl: Add help for 'xl info' command
Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
2010-05-04 11:44:19 +01:00
Keir Fraser ba1da95d66 libxl: Build with -Werror
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-05-04 11:38:24 +01:00
Keir Fraser a14ec1a1e5 xl: Add command description to command table
Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
2010-05-04 11:37:06 +01:00
Keir Fraser 0618421fbd xl: Use command table to store command name and implementation
Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
2010-05-04 11:28:06 +01:00
Keir Fraser 52efdec3ea xl: Move xl command implementation to a seperate file
Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
2010-05-04 11:23:17 +01:00
Keir Fraser 3747e06272 xl: Add subcommand "xl sched-credit"
Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
2010-05-04 11:09:32 +01:00
Keir Fraser a40d47a79b Update QEMU_TAG to 01626771cf2e9285fbfddcbded2820fc77745e4b 2010-05-04 11:07:06 +01:00
Keir Fraser 61cf67606a Remus: use IFB for net buffer on newer kernels
IMQ does not work with ebtables on 2.6.31, and IFB is not a
third-party patch.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
2010-05-04 09:36:05 +01:00
Keir Fraser c7a94e935c Remus: add file locking and modprobe utility functions
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
2010-05-04 09:35:42 +01:00
Keir Fraser ad195de617 Remus: include device name in vif objects
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
2010-05-04 09:35:18 +01:00
Keir Fraser 4bab5e8047 Remus: fix VM stringification
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
2010-05-04 09:34:50 +01:00
Keir Fraser a47cb321e9 Remus: move device handling into its own module
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
2010-05-04 09:34:23 +01:00
Keir Fraser aeef67a43b Remus: remove obsolete code
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
2010-05-04 09:31:13 +01:00
Keir Fraser c6a0974ed9 Remus: python netlink fixes
Fix deprecation warning in Qdisc class under python 2.6.
Fix rtattr length and padding (rta_len is unaligned).
Null-terminate qdisc name in rtnl messages.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
2010-05-04 09:30:53 +01:00
Keir Fraser 147e14cc8e libxl: Expose build-time install paths inside libxl.
Use this to construct the fully-qualified path to xenconsole.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-04-29 19:38:52 +01:00
Keir Fraser 7720401043 x86, shadow: propagate pat caching on the shadow l1
PAT caching was only propagated if has_arch_pdevs(),
causing the hvm_get_mem_pinned_cacheattr() to be ignored
in the non passthrough case.
l1_disallow_mask() needs to be relaxed.

Signed-off-by: Jean Guyader <jean.guyader@citrix.com>
2010-04-26 12:13:23 +01:00
Keir Fraser c1cfb1a358 Support Linux's advanced crashkernel= syntax
Quoting the original Linux patch's description:

"This patch adds a extended crashkernel syntax that makes the value of
 reserved system RAM dependent on the system RAM itself:

    crashkernel=3D<range1>:<size1>[,<range2>:<size2>,...][@offset]
    range=3Dstart-[end]

 For example:

    crashkernel=3D512M-2G:64M,2G-:128M

 The motivation comes from distributors that configure their
 crashkernel command line automatically with some configuration tool
 (YaST, you know ;)). Of course that tool knows the value of System
 RAM, but if the user removes RAM, then the system becomes unbootable
 or at least unusable and error handling is very difficult."

For x86, other than Linux we pass the actual amount of RAM rather than
the highest page's address (to cope with sparse physical address
maps).

This still needs to be hooked up for ia64.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2010-04-26 12:12:12 +01:00
Keir Fraser efaca454ab x86: make pxm_to_node() return sane values when disabling NUMA internally
Otherwise, pass-through code may call memory allocation functions with
invalid node IDs, causing the allocations to fail.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2010-04-26 12:11:30 +01:00
Keir Fraser 6b19626a0e xl: Add option '-p' for command 'xl create'
Add option '-p' for command 'xl create', and update
the help info.
* -p Leave the domain paused after it is created.

Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
2010-04-26 06:52:44 +01:00
Keir Fraser bd8daf6035 xl: Fix segment fault of 'xl list'
If libxl_list_domain() returns NULL, segment fault occurs now.

Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
2010-04-26 06:52:13 +01:00
Keir Fraser 422376d6e2 cpupools, xend: Add missing file sxputils.py
Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
2010-04-26 06:50:39 +01:00
Keir Fraser 8149e93337 cpupools, xend: Add missing file XendCPUPool.py
Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
2010-04-23 15:04:26 +01:00
Keir Fraser 6cf942ffa2 Add debug-key 'D' to dump EPT p2m table.
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
2010-04-23 08:40:58 +01:00
Keir Fraser f7167a003c xl: support oos domain parameter
Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
Acked-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
2010-04-23 08:39:29 +01:00
Keir Fraser bb315e2384 cpupools: optimise domain creation if pool movement is a no-op
Signed-off by: Juergen Gross <juergen.gross@ts.fujitsu.com>
2010-04-23 08:38:35 +01:00
Keir Fraser 261d19559d Revert 21224:a7947fd90328 "xend: earlier remove the backend of tapdisk device"
Consensus is that this is not the correct fix.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-04-23 08:37:19 +01:00
Keir Fraser b5e0c9e2a3 console: Make initial static console buffer __initdata.
The previous scheme --- freeing an area of BSS --- did not interact
nicely with device passthrough as IOMMU will not have any Xen BSS area
in guest device pagetables. Hence if the freed BSS space gets
allocated to a guest, DMAs to guest's own memory can fail.

The simple solution here is to always free the static buffer at end of
boot (initmem is specially handled for IOMMUs) and require a
dynamically-allocated buffer always to be created.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-04-22 17:43:56 +01:00
Keir Fraser 3dc27ee385 xend: earlier remove the backend of tapdisk device in
xenstore to release the resource allocated in backend driver
lies in dom0'kernel

Blktapctl thread will use qemu-dm connection instead of tapdisk-ioemu
in the case of FV VM. We found the resource like memory allocated for
this Guest can't be free for backend driver couldn't be closed in qemu-dm.

This patch would  remove the backend of tapdisk device earlier in
xenstore to triger qemu-dm to notify the backend driver to release the
resource allocated.
I have tested this patch at the case of
1, save && restore
2, destory && shutdown
3, snapshot

Signed-off-by: James ( Song Wei ) <jsong@novell.com>
2010-04-22 09:44:29 +01:00
Keir Fraser 77af399e7f xend: don't drop device config on domain start failure
If domain creation in xend fails before devices are configured, e.g.
insufficient memory, device config is dropped from xend's managed
domain config.

Once xend is restarted, the domain's devices are lost.

This patch fixes a bug in XendConfig where only the device
controller was consulted for device configuration.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2010-04-22 09:42:37 +01:00
Keir Fraser af277a631b HAP 1GB: Add corner case handling for 1GB super page.
- Without the check, guest memory allocation will never reach the
   boundary of a 1GB super page.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
2010-04-22 09:41:36 +01:00
Keir Fraser 2cb79e82a0 xl: add "xl info" command
The info subcommand was missing from the xl tool. Use the new libxl
wrapper functions to create a clone of "xm info". The splitting into
several smaller functions is enspired by the implementation in
XendNode.py.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Acked-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
2010-04-22 09:39:58 +01:00