Commit Graph
3490 Commits
Author SHA1 Message Date
jchesterfield@dhcp92.uk.xensource.com 0da81aa1d4 Added blktap support. Includes kernel driver (enabled as CONFIG_XEN_BLKDEV_TAP=y) and userspace tools. The userspace deamon (blktapctrl) is enabled by default when xend is activated. For further information on using and configuring blktap see tools/blktap/README. 2006-07-13 10:13:26 +01:00
chris@kneesaa.uk.xensource.com 96c551880a Update xend to support vnc configuration for qemu 0.8.1 based ioemu.
Also add vncdisplay= option which allows setting the display number
instead of using the default display number (= domid).

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-07-12 19:16:14 +01:00
chris@kneesaa.uk.xensource.com 472b6cb977 Update xend to support network configuration for qemu 0.8.1 based ioemu.
Remove the ne2000 option, the network device type can now be selected
on a per-device basis by adding a model= property to the device's entry
in the vif list.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-07-12 19:16:12 +01:00
chris@kneesaa.uk.xensource.com 8f4b90220c Add qemu 0.8.1 based ioemu.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-07-12 19:16:10 +01:00
chris@kneesaa.uk.xensource.com ef52abce73 Remove qemu 0.6.1 based ioemu.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-07-12 19:16:07 +01:00
kfraser@localhost.localdomain 2fdede6154 Revert c/s 10651: "prevent double uuid use". Breaks localhost
migration, since old and new domains can coexist at same time
with same uuid.

Possibly this patch could be accepted if xend were to be able to
deal with localhost migration (and save/restore, which can also
occasionally race).

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-07-12 16:34:39 +01:00
chris@kneesaa.uk.xensource.com 7160c43efa Make ioemu dir configurable and change prefix to /usr (works with old and new ioemu).
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-07-12 10:33:37 +01:00
chris@kneesaa.uk.xensource.com 1aa6701ce1 [VMXASSIST] Include all rodata sections into text section.
Some versions of ld put non-matched sections into random locations otherwise.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-07-10 18:35:07 +01:00
kfraser@localhost.localdomain 27e92b03cf Shared libs have traditionally been installed as executables due to
some
long ago accidents of implementation in historical Unixes.  And there
are various tools which "expect" it (... and this is why they get
created as executable by default by ld).  

Switching to INSTALL_LIB here although I think the whole "define all
the
ways you're going to use install" in this makefile a _smidge_ overkill

Signed-off-by: Jeremy Katz <katzj@redhat.com>
2006-07-10 17:38:41 +01:00
kfraser@localhost.localdomain b3685ce3b8 Move the content of the script file vtpm-addtodb into the
vtpm-common.sh
script. The newly created function 'vtpm_add_and_activate' also
assigns
the instance number to the xenstore entry to activate the backend. 
Renaming of isLocalAddress function to vtpm_isLocalAddress.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-07-10 17:36:41 +01:00
kfraser@localhost.localdomain a30dab89d4 [XM][ACM] Add xm subcommands to work with security resource labels.
This patch adds new xm subcommands to support working with resource
labels.  The new subcommands are 'xm resources', 'xm rmlabel', 'xm
getlabel' and 'xm dry-run'.  In addition, the 'xm addlabel' subcommand
now uses an updated syntax to support labeling both domains and
resources.  See the xm man page for details on each subcommand.

Beyond the new subcommands, this patch allows users to immediately see
when security checks will fail by pushing some basic security checking
into the beginning of 'xm create' and 'xm block-attach'.  ACM security
attributes for block devices are added to XenStore in order to support
the final security enforcement, which will be performed in the kernel
and included in a separate patch.

Signed-off-by: Bryan D. Payne <bdpayne@us.ibm.com>
Signed-off-by: Reiner Sailer <sailer@us.ibm.com>
2006-07-10 17:18:07 +01:00
kfraser@localhost.localdomain 16b671d72b Domain ID/index mapping in xenmon.
This patch addresses the problem of xenbaked/xenmon not dealing with
large domain ID's. Xen Domain ID's increase monotonically as domains
are created; The ID's are not (often) recycled. Xenbaked was using the 
domain
ID's as indices to arrays of data, and this scheme blows up as soon as
a domain ID exceeds the array size. Code has been changed in xenbaked
and xenmon to isolate domain id's from array indices, so everything is
indirect. Users should not notice any difference in behavior.

From: Rob Gardner <rob.gardner@hp.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-07-10 16:09:20 +01:00
kfraser@localhost.localdomain 1a1f70afb8 [XEND] Currently a domain's maxmem value is being set with the memory value
even if the user specifies maxmem in config.  This patch uses maxmem
value to set maxmem instead of memory.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
2006-07-10 15:57:56 +01:00
kfraser@localhost.localdomain 6b900ffb50 [VTPM_Tools] Support for (non-local) Migration added. Local migration
works provided that the hotplug scripts deliver the "suspend" before
the "resume," but this is not always true.
Signed-off-by: Vinnie Scarlata <vincent.r.scarlata@intel.com>
2006-07-10 15:38:49 +01:00
kfraser@localhost.localdomain 1e4f24bfe2 [XEND] Fix a couple of error-message typos.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-07-10 15:18:53 +01:00
kfraser@localhost.localdomain b2dc3a1d39 [XEND] Improve xm pause/unpause error reporting.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-07-10 15:18:12 +01:00
kfraser@localhost.localdomain c98d70f46a [XEND] Prevent uuid double use.
A check_uuid() in this patch checks on uuid of the
VM configuration definition. If specified uuid is
already used with the others VM, the xm create command 
does not create the VM. The xm create command error occurs.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-07-10 15:10:00 +01:00
kfraser@localhost.localdomain 971ec7119c [XEN] getpagframeinfo field name mfn -> gmfn.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-07-05 17:37:08 +01:00
kfraser@localhost.localdomain 8f33ca9931 [XEN] Hypercall-init dom0_op takes GMFN, not MFN.
Signed-off-by: Steven Smith <sos22@cl.cam.ac.uk>
2006-07-05 17:16:10 +01:00
kfraser@localhost.localdomain 78c851da09 [XENMON] This patch removes the magic number "31" for readability.
The number "31" means the idle domain ID.

In detail:
- display the idle domain ID with "Idle" instead of "31" 
- write to the file "log-idle.log" instead of "log-dom31.log".

Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
2006-07-05 11:31:33 +01:00
kfraser@localhost.localdomain 412dc9c9ff [XENTOP] Fix Field attributes and width.
It miss that set the FIELD attribute and width for VBD
information in xentop.c.

Signed-off-by  Satoshi UCHIDA <s-uchida@ap.jp.nec.com>
2006-07-05 11:24:09 +01:00
kfraser@dhcp93.uk.xensource.com 6f8425d69d [HVM] Disable pmtimer in qemu acpi device model. Needs fixing
to not burn ~25% of a 3GHz CPU.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-07-03 16:07:20 +01:00
kaf24@firebug.cl.cam.ac.uk d2f56f3181 Merge with xen-ia64-unstable.hg 2006-07-03 08:35:12 +01:00
kaf24@firebug.cl.cam.ac.uk dbc8a9969c [LIBXC] Fix the 64-bit build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-07-01 09:37:24 +01:00
kaf24@firebug.cl.cam.ac.uk 6b4c5ff3c8 Provide more specific and helpful error messages during ELF loading.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2006-06-30 22:19:08 +01:00
kaf24@firebug.cl.cam.ac.uk f4c633d8ec Allow 32-bit libxc to load 64-bit ELF files.
- use 64-bit integral types for addresses in struct domain_start_info
- use stroull() to parse 64-bit values
- remove redundant _p(a) definition and add a comment
- printf format changes for the new types

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2006-06-30 22:18:01 +01:00
chris@kneesaa.uk.xensource.com 5c561080e2 Remove use of unlikely -- it's not defined on all systems.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-06-30 14:15:12 +01:00
kfraser@dhcp93.uk.xensource.com 7550e5d3f9 Revert 10521, 10526 and 10527. This completes reversion of ACM modifications to xm.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-30 13:33:20 +01:00
kaf24@firebug.cl.cam.ac.uk 6303b0e103 [TPM] Adds a script for virtual TPM support.
It also removes a consistency check from the vtpm-common script file.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-06-30 10:16:12 +01:00
kaf24@firebug.cl.cam.ac.uk bcdd7e25a6 [XM] Remove unused imports.
From: Kazuo Moriwaka <moriwaka@gmail.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-30 09:51:02 +01:00
kaf24@firebug.cl.cam.ac.uk 00626c0522 [XENTOP]Add VBD information.
Display VBD information at xentop.
By put 'x' key, display each VBD information in detail.

Signed-off-by: Satoshi UCHIDA <s-uchida@ap.jp.nec.com>
2006-06-30 09:25:42 +01:00
kaf24@firebug.cl.cam.ac.uk 4d1d8594df [XENSTAT]Add VBD information structure.
Import VBD information from sysfs.

Signed-off-by: Satoshi UCHIDA <s-uchida@ap.jp.nec.com>
2006-06-30 09:20:22 +01:00
kaf24@firebug.cl.cam.ac.uk 5a9188548d Revert 10534 (xm subcommands for ACM). Doesn't work when ACM disabled.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-29 14:38:39 +01:00
kaf24@firebug.cl.cam.ac.uk b4e4e56cb1 [XM] When two or more domain parameters are given, the xm reboot
command doesn't give a command error. This problem is also 
included in the xm shutdown command. 

This patch checks on domain parameter. If two or more domain 
parameters are given, the command error occurs.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-06-29 14:25:35 +01:00
kaf24@firebug.cl.cam.ac.uk 0e349a1b9b [XM] Fix argument check of the xm reboot command.
Maximum argument of the xm reboot command is three. 

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-06-29 14:25:07 +01:00
shand@kneesaa.uk.xensource.com b687b766ae Fail save if we have an out-of-sync P2M/M2P (since otherwise the restore
will fail later). 

A better fix would be to tolerate temporary out-of-sync situations so we 
can make a nicer fix to the kunmap_atomic() iossue (c/f -unstable csets 
10529 & 10533) but this requires some more thought. 

Signed-off-by: Steven Hand <steven@xensource.com>
2006-06-29 11:31:10 +01:00
emellor@leeni.uk.xensource.com ee590e6084 Replace changesets 10521, 10526, and 10527 with this new version that does not
use xml.marshal.

  This patch adds new xm subcommands to support working with resource
  labels.  The new subcommands are 'xm resources', 'xm rmlabel', 'xm
  getlabel' and 'xm dry-run'.  In addition, the 'xm addlabel' subcommand
  now uses an updated syntax to support labeling both domains and
  resources.  See the xm man page for details on each subcommand.

  Beyond the new subcommands, this patch allows users to immediately see
  when security checks will fail by pushing some basic security checking
  into the beginning of 'xm create' and 'xm block-attach'.  ACM security
  attributes for block devices are added to XenStore in order to support
  the final security enforcement, which will be performed in the kernel
  and included in a separate patch.

Signed-off-by: Bryan D. Payne <bdpayne@us.ibm.com>
Signed-off-by: Reiner Sailer <sailer@us.ibm.com>
2006-06-29 11:13:11 +01:00
kaf24@firebug.cl.cam.ac.uk b7207e32e4 Use address types in elf parser that match elf headers.
Necessary if a long is a different size to addresses in elf
file being parsed.
From: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-28 20:46:01 +01:00
emellor@leeni.uk.xensource.com d199f1a927 More commented-out code, pending a solution to the xml.marshall.generic
problem.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-06-28 17:42:05 +01:00
emellor@leeni.uk.xensource.com efaa2aa3e3 Comment out the load of the resource label file, pending a solution to the
problem that we now require xml.marshal.generic.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-06-28 17:36:38 +01:00
kaf24@firebug.cl.cam.ac.uk d36b2acb2b [TPM] Add 3 more test cases to the xm testsuite that extend the
state of a PCR register and test that the value remains the same during
a suspend/resume cycle and during live and non-live local migration. 
The patch adapts existing tests to the changes in the driver (moving of
the sysfs entry). Some problems with existing tests are fixed.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-06-28 16:22:38 +01:00
emellor@leeni.uk.xensource.com bc6220c199 This patch adds new xm subcommands to support working with resource
labels.  The new subcommands are 'xm resources', 'xm rmlabel', 'xm
getlabel' and 'xm dry-run'.  In addition, the 'xm addlabel' subcommand
now uses an updated syntax to support labeling both domains and
resources.  See the xm man page for details on each subcommand.

Beyond the new subcommands, this patch allows users to immediately see
when security checks will fail by pushing some basic security checking
into the beginning of 'xm create' and 'xm block-attach'.  ACM security
attributes for block devices are added to XenStore in order to support
the final security enforcement, which will be performed in the kernel
and included in a separate patch.

Signed-off-by: Bryan D. Payne <bdpayne@us.ibm.com>
Signed-off-by: Reiner Sailer <sailer@us.ibm.com>
2006-06-28 16:05:27 +01:00
awilliam@xenbuild.aw 5c8c8991da merge with xen-unstable.hg 2006-06-28 07:52:21 -06:00
kaf24@firebug.cl.cam.ac.uk f5ea9f8ba8 [HVM][Firmware] Make the creation of MP tables more dynamic
Currently the ROMBIOS includes static MP tables for only four
configurations: 1-way, 2-way, 4-way, and 8-way.

This patch makes the creation of MP tables more dynamic by creating them
from within HVMLOADER based upon the VCPU number provided by the HVM
information table.

Note: Some of the information included used to create the MP tables is
still hard coded and based upon values used in the original ROMBIOS MP
tables.  Data such as the CPU family/model/stepping information should
probably be made to match the information provided to the guest when
executing a CPUID.

Signed-off-by: Travis Betak <travis.betak@amd.com>
2006-06-28 13:59:29 +01:00
kaf24@firebug.cl.cam.ac.uk 38dbb81c1f [XEND] Have the parent id logged in the log file, this is very useful when
debugging xend as it has multiple processes, and it can be hard to
work out which one is doing what without this information.

Signed-Off-By: Horms <horms@verge.net.au>
2006-06-28 13:35:22 +01:00
kaf24@firebug.cl.cam.ac.uk 73e44d2f08 [XENTOP] Fix CPU percentage display in batch mode.
From: shaocyou <shaocyou@jp.fujitsu.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-28 10:24:05 +01:00
kaf24@firebug.cl.cam.ac.uk d3ecb7e352 [XENTOP] Adds batch mode processing option (output to stdout)
to the xentop utility. It also adds the ability to specify the
number of iterations xentop should produce before exiting.

a) xentop -b

will output to stdout.

b) xentop -i <number>

will iterate <number> times and exit (option "n" is already used by
xentop. Hence the choice of "i"). This option can be used for both the
curses and batch modes.

From: Hariprasad Nellitheertha <mlisthari@gmail.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-28 10:22:13 +01:00
kfraser@dhcp93.uk.xensource.com 8c01122785 [TOOLS] Remove plan9 loader code. Latest plan9 port uses linux builder.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-27 14:38:58 +01:00
kaf24@firebug.cl.cam.ac.uk ecb13a587e [BALLOON] Make the domain0 ballooning logic in xend aware of pages that are on the page scrub list.
This fixes the case where crashing/restarting a domain can cause dom0 to balloon more than
necessary.

I changed the physinfo dictionary in Python to be in KiB, rather than
MiB, to avoid accumulating ugly rounding errors.  I tried to avoid
changing units anywhere else.

Signed-off-by: Charles Coffing <ccoffing@novell.com>
2006-06-27 12:03:46 +01:00
kaf24@firebug.cl.cam.ac.uk 956c0afa80 [BUILD] Add distclean build target to xen directory: cleans out tags.
Signed-off-by: Horms <horms@verge.net.au>
2006-06-27 11:50:57 +01:00