Commit Graph
2314 Commits
Author SHA1 Message Date
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
kfraser@localhost.localdomain 2df50e48b8 xend: Give "xm start" a -c parameter for connecting to the console
From: Chris Lalancette <clalance@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-05-24 15:36:13 +01:00
kfraser@localhost.localdomain be422ace19 xend: Fix for removing devices at save/destroy domain.
The function XendDomainInfo:_releaseDevices() is called during the
save/destroy phase of a domain. It made some attempt to clean up the
devices, but wasn't complete, leaving dangling devices in the
xenstore. Not a big problem with normal use of Xen, but a buildup over
a large number of save/destroy instances, it would make the xenstore
database grow quite large, which in turn meant swap-thrashing in Dom0.

This patch makes use of the destroyDevices() function in
XendDomainInfo. This function needed some re-writing to make it work
correctly - I think it had some old code (not sure how old, as xm
annotate says that it's changeset 12071, but that, I think, is when it
was split out from XendDomain.py, rather than when it was created).

I have tested this over a few hundred save/restore cycles [two domains
constantly saved/restored with a short sleep to let them process some
work] combined with a loop of "xenstore-ls|wc". The output of the
latter is pretty much constant (it obviously varies a bit depending on
when in the save/restore cycle it hits). Previously, it would increase
by some 10 lines or so per save/restore cycle.

Signed-off-by: Mats Petersson <mats.petersson@amd.com>
2007-05-24 15:21:29 +01:00
kfraser@localhost.localdomain 1c77b7cb9f xend: Tear down domain if device hotplug fails during startup
If creating an unmanaged guest (eg xm create), if device hotplug fails
during the startup of the guest, then the guest will be torn down
again. If creating and starting a managed guest (eg xm new && xm
start), then if device hotplug fails, the still born guest gets left
in 'paused' state. This confuses users no end, who go an unpause and
then get all upset when it shortly crashes (due to lack of disk or
network devices).

The attached patch fixes XenDomain.py's domain_start() method so that
if waitForDevices() fails, then the entire domain is torn down. This
is the same approach used in xm create.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2007-05-24 14:05:58 +01:00
kfraser@localhost.localdomain 565f279e07 xend: Fix CPU affinity reset across save/restore.
Fixes bug #936.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-05-24 14:02:09 +01:00
kfraser@localhost.localdomain 8cc22ae8d1 xend: Fix scheduler parameters of rebooted domain
When I changed the scheduler parameters of a domain with
xm sched-credit, the information of xm sched-credit was changed.
But as for the information of xm list, the values of the domain
configuration definition were kept.
And, then I rebooted the domain. The information of xm list was
not changed. But as for the information of xm sched-credit, the
values of the domain configuration definition were returned.

# xm create /xen/PVdomain.1 cpu_cap=150 cpu_weight=512
Using config file "/xen/PVdomain.1".
Started domain PVdomain.1
# xm sched-credit -d PVdomain.1
Name                              ID Weight Cap
PVdomain.1                         1    512  150
# xm sched-credit -d PVdomain.1 -c 75 -w 384
# xm sched-credit -d PVdomain.1
Name                              ID Weight Cap
PVdomain.1                         1    384   75
# xm list --long PVdomain.1 | grep cpu_
    (cpu_weight 512)
    (cpu_cap 150)
    (cpu_time 29.353831745)
# xm reboot PVdomain.1
# xm sched-credit -d PVdomain.1
Name                              ID Weight Cap
PVdomain.1                         2    512  150
# xm list --long PVdomain.1 | grep cpu_
    (cpu_weight 512)
    (cpu_cap 150)
    (cpu_time 5.950247186)


If the scheduler parameters of the domain were changed with
xm sched-credit, I think that xm list should show the current
values about the scheduler parameters.
And, then if the domain is rebooted, I think that the rebooted
domain should keep the preceding values about the scheduler
parameters.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-05-24 13:45:47 +01:00
kfraser@localhost.localdomain fab51b46ae [ACM] Simpler interface to hypercalls
Implement a simpler interface for the hypercalls to ACM. I put the
parameters to all hypercalls into a union. On top of this I have
implemented a shim layer for enabling ACM hypercalls on PPC.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-05-24 10:18:55 +01:00
kfraser@localhost.localdomain d5cd127e3b ia64: nvram setup.
From: "Zhang, Xing Z" <xing.z.zhang@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-05-24 09:54:03 +01:00
Steven Hand 1a46ed999b This patch fixes the issue with waiting for devices to disconnect during the end
stage of migration in Xend. The problem was cause by a deletion of the VM domain
ID which is used by testDevicecompleComplete ->deviceIDs->backendRoot() to get
the virtual backend device path. The virtual backend device path is used to
check if a device still exists in xenstore.

Signed-off-by: Yung Giang <yung.giang@gmail.com>
2007-05-22 15:32:50 +01:00
Alex Williamson bbe11c9e2e [IA64] memmap: ia64 domVTi memmap info support
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-05-21 14:08:19 -06:00
Tom Wilkie 6bc7665374 Fix default return value for VM_Metrics.get_state
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-05-17 11:42:46 +01:00
Tom Wilkie 61b5419d95 Fix recent XenRT Failure re: xm block-list via XenAPI
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-05-17 11:18:58 +01:00
Ian Campbell 6fc1e1272c [XEND] Write the default ABI to the xenstore entry for each frontend
device.

This allows to run older kernels in a 32on64 mixed environment.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-05-15 19:00:48 +01:00
Ian Campbell f32a69e588 [BUILDER] Propagate the native protocol ABI for a guest out of the
domain builder and in to python code.

This knowledge will be useful to allow us to pre-seed the protocol
field in a VBD entry in xenstore which will allow us to run older
kernels in a 32on64 mixed environment.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-05-15 17:54:48 +01:00
Tom Wilkie b794da2ef6 Add some fields from XenAPI docs to implementation.
Add stefan's patch to swap mtu and mac, so they're correct.

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-05-15 17:01:57 +01:00
kfraser@localhost.localdomain 59f97292fa xenapi: Small fix to the host.get_name_description call
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-05-15 10:49:10 +01:00
Keir Fraser 253a9fcaf4 xend: configuration option 'localtime = 1' is not honored for PV domains.
This patch fixes an oversight when platform_* config options were
collected in a dictionary.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2007-05-12 12:44:20 +01:00
Christian Limpach 8c083820fd [qemu] Use qemu's -vnc option to specify the interface to listen on.
Domain config files still use the original syntax with vnc and vnclisten.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-05-10 15:02:05 +01:00
kfraser@localhost.localdomain 2f7f40357b xend hvm: Fix 'monitor=1' handling in domain config file.
Fix wrong python list assignment for "monitor=1". The old assignment
only works when using qemu-dm.debug in configure file.

Signed-off-by: You YongKang <yongkang.you@intel.com>
Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
2007-05-08 10:21:23 +01:00
kfraser@localhost.localdomain 82cd1fd00e [Xen-API] Fix the rtc/timeoffset entry.
It cannot be 'None' as this is not parseable by the Java xmlrpc
library.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-05-08 10:17:46 +01:00
Keir Fraser 90829b52d7 Fix Xen API's Host.get_record method.
Currently it returns supported_bootloaders as a string.  This patch
returns supported_bootloaders as a 'string set' - per the spec.  The
c-bindings fail to parse response, expecting a set but only finding a
string.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2007-05-05 11:23:55 +01:00
kfraser@localhost.localdomain 0d03dd60a1 xend: Revert changeset 15002. Breaks xend restart in some cases.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-05-03 11:22:58 +01:00
Tom Wilkie ffed4cf8e8 [XEND] Move Vifctl.network('start') earlier in Xend startup so XendNode can find networks when its initialised.
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-05-02 17:14:52 +01:00
Tom Wilkie 7601e982d4 Fix the fix for XendPIF
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-05-02 16:43:45 +01:00