Commit Graph
2337 Commits
Author SHA1 Message Date
kfraser@localhost.localdomain 5410c03342 xend: Fix xm pause/unpause for inactive managed domains.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-07-10 10:15:01 +01:00
kfraser@localhost.localdomain 503e2ed481 xend: Count CPUs rather than relying on a static
nodes/sockets/cores/threads relationship.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-07-10 10:13:16 +01:00
kfraser@localhost.localdomain a75c57c971 xm: Improve help message for vif creation.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-07-10 10:11:14 +01:00
kfraser@localhost.localdomain 13adac8e15 xend: Missing last line from Xen_API security patch.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-07-09 19:28:54 +01:00
kfraser@localhost.localdomain 476959a14a Add accel option to vif xend config.
Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
2007-07-09 18:10:48 +01:00
kfraser@localhost.localdomain 184e1b098b [Xen-API] Extension of the Xen-API for managing Xen Security Policies
This patch implements extensions for managing security policies in
xend. The XSPolicy and ACMPolicy classes provide the interface for the
Xen-API and implement functionality for setting, updating and
activating of a Xen security policy as well as labeling of virtual
machines and resources such as block devices. Labeling of network
devices will follow.

The acmpolicy class implements a compiler for translating an XML
policy into their binary format and provides functionality for
comparing a current policy against a new one when changing/updating a
policy.

The xspolicyadmin class administers the policy of the system.

Some of the xend-internal code deals with transforming the labeling
information from the S-Expression format into the new Xen-API
format. This is similar to much of the other code that is already
there.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-07-09 14:51:44 +01:00
kfraser@localhost.localdomain ba302f5c07 Fix xm save command for a inactive managed domain.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-07-09 09:41:45 +01:00
kfraser@localhost.localdomain ddc75a75d9 Better error message for 'xm sysrq' on inactive domain.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-07-09 09:38:35 +01:00
kfraser@localhost.localdomain c4d1247d00 hvm: Add global default keymap setting
Add global default keymap setting to be used when a VM does not have
a keymap configuration set.

Signed-off-by: Pat Campbell <plc@novell.com>
2007-07-06 16:16:57 +01:00
kfraser@localhost.localdomain be259653f3 Extended the physinfo sysctl to export NUMA cpu_to_node topology info.
Print this in 'xm info'.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-07-06 16:12:07 +01:00
kfraser@localhost.localdomain fefb7c8d3b xend: Fix xm block/network-attach command for inactive managed domain
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-07-06 14:41:05 +01:00
kfraser@localhost.localdomain 4c9048d9dc xend: Fix op_domain_sched_credit_set() in SrvDomain.py
This patch adds "cap" into op_domain_sched_credit_set().
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-07-06 14:39:21 +01:00
kfraser@localhost.localdomain 365e87562a Improve xm sched-credit command for inactive managed domains
Allows to change the scheduler parameters of inactive managed domains.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-07-06 14:34:54 +01:00
kfraser@localhost.localdomain 2fc4a5a032 xend: Save modified scheduler params of managed guests to config.sxp.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-07-03 10:21:21 +01:00
Ian Campbell 4cb346f848 Fix 15435:ab95b9764b20.
The changeset did not consider about ":cdrom" and "ioemu:"
of a disk definition.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-07-02 08:42:13 +01:00
Keir Fraser 0cf4932910 xm: Fix xm block-detach error message duplication.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-07-01 22:25:27 +01:00
Keir Fraser e0ccefb2fb xm: Fix a typo for xm network-detach.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-07-01 22:23:16 +01:00
Keir Fraser c32cff27ba xend: Pass information to user when failing migrate due to PCI dev.
When failing a migration / save due to the domain owning a PCI device
make sure that we tell the user what went wrong!

Signed-off-by: Mark Williamson <mark.williamson@cl.cam.ac.uk>
2007-07-01 22:10:38 +01:00
Keir Fraser 450f5b5b9e xend: Don't allow migrate with assigned PCI devs.
This can potentially cause a whole machine crash, which I think has
been seen in the wild.  The case in the wild was caused by xendomains
auto-resuming domains on reboot, so it wasn't even operator error.

There's no sane way to migrate or suspend domains with PCI devs,
so I disallow it completely.

Signed-off-by: Mark Williamson <mark.williamson@cl.cam.ac.uk>
2007-07-01 22:10:13 +01:00
Ian Campbell 1dd1b5a9f6 Add a duplication definition check for devices.
This patch adds a duplication definition check for devices.
It checks the following definitions.
 - vbd : uname and device name
 - vif : mac

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-06-29 14:38:18 +01:00
Keir Fraser 9659b6cb45 xend: Fix irq-permissions setting during domain creation.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-06-28 20:35:50 +01:00
kfraser@localhost.localdomain d40dbdf39f tools: Adjust tools' path calculation.
I'm suggesting this change to make another tiny step towards the
ability to run the tools e.g. out of the build tree (so that multiple
different Xen versions can co-exist without the requirement to
re-install the respective version with each boot).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-06-20 17:07:15 +01:00
kfraser@localhost.localdomain 7d698de822 Fix xm vcpu-set command for managed domains, to take effect immediately.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-06-20 14:43:41 +01:00
kfraser@localhost.localdomain a705b24a9d hvm: Ensure ioemu sees media-change events even when media filename
remains constant my writing a dummy blank string first.
Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com>
2007-06-20 14:41:27 +01:00
Keir Fraser dd34063f08 xend: Revert 15252:31ee1768e911 ("Make device detach wait for detach to complete").
Has a bad interaction with 12520 in destroyDevice(), where devid is
not an integer as expected.

I'm not sure which of these changesets is really the bogus one, but
this one went in later so it loses. :-)

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-06-16 11:18:44 +01:00
Alex Williamson b51cbb0e12 merge with xen-unstable.hg 2007-06-15 13:33:11 -06:00
Keir Fraser b19760e244 xend: Replace tabs with 8 whitespaces in DevController.py
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-06-15 10:01:32 +01:00
Keir Fraser 70c1fbfecd Update Solaris balloon ioctl value
The balloon ioctl value should use a 32-bit value instead of a 16-bit
value to distinguish itself from other ioctls.

Signed-off-by: Ryan Scott <ryan.scott@sun.com>
2007-06-15 09:18:42 +01:00
kfraser@localhost.localdomain eee0df9243 xenapi: Implement VM.set_VCPUs_at_startup and VM.set_VCPUs_max XenAPI
methods in xend.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2007-06-13 11:28:13 +01:00
kfraser@localhost.localdomain 2258445464 xenapi: Implement XenAPI method VBD.set_mode in python.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2007-06-13 11:27:47 +01:00
Alex Williamson 8a25d0a58c Merge with xen-unstable.hg (staging) 2007-06-12 20:41:08 -06:00
kfraser@localhost.localdomain e8299fcc5b Fix xm vcpu-pin command for keyword 'all'.
The keyword 'all' was supported as the 2nd argument of xm vcpu-pin
command since changeset 11619.  However, we cannot use the keyword
'all' since changeset 14481.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-06-12 11:29:27 +01:00
Alex Williamson 6fe1b92429 merge with xen-unstable.hg (staging) 2007-06-11 13:46:42 -06:00
Tim Deegan bc47ea384b [TOOLS] sync qemu and python view of save filenames after 15241:b0109d3dc3dd
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-06-11 11:37:10 +01:00
kfraser@localhost.localdomain 60d7c11db9 xend: Fix duplicate random MAC generation.
Ensure that HVMImageHandler and NetifController see the same random
MAC address.

Signed-off-by: David Edmondson <dme@sun.com>
2007-06-11 10:22:32 +01:00
kfraser@localhost.localdomain fbaf0773bb xend: Make device detach wait for detach to complete.
*-detach will wait till device is detached or time'ed out.
XendConfig will be updated, if detached.

Signed-off-by: Max Zhen <max.zhen@sun.com>
2007-06-11 10:21:11 +01:00
kfraser@localhost.localdomain 1606c2497d xend: Do not give up auto-ballooning if ballooning is proceeding okay.
Under a loaded system, don't give up ballooning dom0 unless it's not
responding at all.

Signed-off-by: Ryan Scott <ryan.scott@sun.com>
2007-06-11 10:16:54 +01:00
kfraser@localhost.localdomain 34eef35280 xend: Fix xm block-detach regression introduced by c/s 15157.
Prior to this c/s, user was able to specify device name or id, e.g.
 xm block-detach dom xvdb
 xm block-detach dom 15728

Now, 'xm block-detach dom xvdb' silently fails.  xend.log does contain
the following

[2007-06-07 11:39:18 xend.XendDomainInfo 3775] DEBUG
(XendDomainInfo:519) devName=vbd/51712
[2007-06-07 11:39:18 xend.XendDomainInfo 3775] DEBUG
(XendDomainInfo:527) Could not find the device xvdb

This patch restores the previous behavior but retains the bugfix
introduced by c/s 15571.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2007-06-11 10:14:54 +01:00
Steven Hand c056297fe7 Avoid using /tmp for qemu state files since an unprivileged user
in dom0 could potentially exploit the fact.

Thanks to Dan Berrange <berrange@redhat.com>

Signed-off-by: Steven Hand
2007-06-08 17:37:58 +01:00
kfraser@localhost.localdomain 31cc2c0efd tools: Fix xm mem-max command.
When I tested xm mem-max and xm list, I saw the following error
message by xm list.  Because xm mem-max always changes
"memory_static_max", I think that the cause of the error message
is it.  This patch fixes it.

# xm list --long PVdomain.1 | grep mem
    (maxmem 1024)
    (memory 1024)
    (shadow_memory 0)
# xm mem-max PVdomain.1 512
Error: (22, 'Invalid argument')
Usage: xm mem-max <Domain> <Mem>

Set the maximum amount reservation for a domain.
# xm list --long PVdomain.1 | grep mem
Error: memory_dynamic_max must be less than or equal to
memory_static_max


Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-06-08 11:21:21 +01:00
kfraser@localhost.localdomain fbb49d2b0d Synchronise xend-config file comments w.r.t. networking.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-06-05 17:05:13 +01:00
kfraser@localhost.localdomain 7e8362e834 [ACM] Python-to-C Interface for new ACM hypercalls.
Provide an interface for using recently-added Xen functionality from
python.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-06-05 15:51:59 +01:00
kfraser@localhost.localdomain 4cd3453855 xend: Don't destroy domains on shutdown timeout.
Do not destroy domains on shutdown timeout: the administrator needs to
be able to decide what to do if a domain does not shut down.

Signed-off-by: John Levon <john.levon@sun.com>
2007-05-30 10:06:23 +01:00
kfraser@localhost.localdomain f91feaa0fd Revert 15164:d93e560c1d50afcf39c99a4211c20c8b9ce63c38 2007-05-25 13:41:01 +01:00
kfraser@localhost.localdomain 8eda7551e9 xend: Fix PAM authentication method for some versions of PyPAM.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-05-25 13:02:08 +01:00
kfraser@localhost.localdomain 4117d5c1db xend: Fix checkname so that it detects duplicate domains.
Signed-off-by: Mats Petersson <mats.petersson@amd.com>
2007-05-25 10:53:07 +01:00
kfraser@localhost.localdomain 2320487314 [XEND/XM] Improve error reporting in 'xm restore'.
From: Mats Petersson <Mats.Petersson@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-05-25 10:23:16 +01:00
kfraser@localhost.localdomain 55c81d635c xend: Increase shutdown timeout.
30 seconds is not a very long time for a busy domain to cleanly
shutdown all its services, which may be arbitrary in
complexity. Increase the timeout to 5 minutes.

Signed-off-by: John Levon <john.levon@sun.com>
2007-05-25 10:16:00 +01:00
kfraser@localhost.localdomain 7e0cff453f Do not destroy domains that timeout when shutting down.
Instead of violently destroying a domain that is not responding to a
shutdown request, rename the domain to indicate the problem and leave
it alone; this allows the admin to make corrective actions (which may
or may not include destroying the domain).

Signed-off-by: John Levon <john.levon@sun.com>
2007-05-25 10:15:37 +01:00
kfraser@localhost.localdomain 3023191026 xm: Extend width of ID in 'xm list' to 5 digits.
The Domain ID is currently expected to fit in 3 digits.

When doing extensive testing on SAVE/RESTORE I can easily get ID's
into the 4-digit range, which makes some of the formatting to get out
of sync. Extend the width to 5 digits (and change some %-ns to %ns, as
the ID for example is right justified, %-ns is left-justified, which
didn't look too good).

Signed-off-by: Mats Petersson <mats.petersson@amd.com>
2007-05-24 15:45:43 +01:00