Commit Graph
11816 Commits
Author SHA1 Message Date
Ewan Mellor 70c562ec15 Import Xend part of xen-unstable changeset
11922:1e6b0a8a0822a22d313d9058fa0dc10c7a319821.

[IA64][HVM] Add buffer IO mechanism for Xen/VTi domain. Current
implementation can accelerate Windows guest's dense IO operations
at boot time.

Signed-off-by: Zhang xiantao <xiantao.zhang@intel.com>
2006-10-25 15:29:08 +01:00
Ewan Mellor 59b7cdb9fa Print the time to xend-debug.log, when starting or restarting Xend.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-25 15:01:51 +01:00
Tim Deegan 67e2961733 [XEND] Be more generous with the default shadow allocation.
Allow enough shadow memory to avoid thrashing the shadow pages,
rather than just enough for safety.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-10-25 11:44:58 +01:00
kfraser@localhost.localdomain c0b4bd476a [XEND] Open xend-debug.log in append mode.
Signed-off-by: John Levon <john.levon@sun.com>
2006-10-25 10:27:03 +01:00
kfraser@localhost.localdomain 570d0a2acd [XM] Print qualified path to config file on domain creation.
From: Glauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-23 12:43:32 +01:00
Ewan Mellor c70026c446 Allow domain config file to specify credit-scheduler parameters.
Imported from xen-unstable 11864:babae8ac84b95ff4fbc1cfe4ac27c59ceaba7e38,
with conflict resolution by Ewan Mellor.

Signed-off-by: Masami Watanabe <masami.watanabe@jp.fujitsu.com>
2006-10-28 18:08:43 +01:00
Ewan Mellor 54aa7f4832 Import the xen-unstable changeset
11863:7633398447846679342b197a79bc375b996d9026, with conflict resolution by
Ewan Mellor.

[XM] Allow empty resource strings (e.g., when creating an empty CDROM
device). Also clean up error/acces-denied path.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-23 12:23:57 +01:00
kfraser@localhost.localdomain 2a46b1b066 [ACM] Don't use uninitialised struct value if hypercall fails.
From: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-23 09:57:24 +01:00
kfraser@localhost.localdomain eb6f936011 [XEND] Remove lazy import of signal module.
Signed-off-by: Jeremy Katz <katzj@redhat.com>
2006-10-20 11:00:08 +01:00
Ewan Mellor 8f988fdcc8 Import the Xend parts of xen-unstable changeset
11840:02506a7443155611d6bbf03e49fbf193e96d24db.

[HVM] Implement password authentication of VNC connections.

The specification is as mentioned at
http://lists.xensource.com/archives/html/xen-devel/2006-09/msg00666.html
(However, password came to describe plain text)

The difference is follows.
- protocol_authtype() without the necessity was deleted.
- The check on the protocol version was added.
- And, some small modification.

Signed-off-by: Masami Watanabe <masami.watanabe@jp.fujitsu.com>
2006-11-01 10:30:02 +00:00
Ewan Mellor a81b06e66a Import the Xend portion of xen-unstable changeset
11839:328606e0705f0341bebda14cdd17962e463868e8.

Use the name of the title of the system to boot into (instead of the
kernel version) to determine where to make the entry into the grub
configuration file.

Signed-off-by: Reiner Sailer <sailer@us.ibm.com>
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-20 09:32:16 +01:00
Ewan Mellor f652cfbe00 Raise an exception if blkdev_name_to_number fails, to improve the error message.
Fix came from Glauber de Oliveira Costa, and is one half of xen-unstable
11831:f5321161c649fe4f07027250c4a1f3c4b5fc2ed9.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-28 17:58:00 +01:00
kfraser@localhost.localdomain 6b24e654ee [XM] Fix 'xm help' when called on a command-name prefix.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-10-05 16:17:06 +01:00
Ewan Mellor 56906a3ab2 [XEND] Fix pygrub when run server-side on a domain with blktap disks.
Equivalent fix to xen-unstable 11706:bf0deb09facd847db87ab59ed377db6eb0f5a3ad.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-28 17:45:43 +01:00
Ewan Mellor 83e445d75e Import the Xend portion of xen-unstable changeset 11704:a95dfbc8dca8ecddcb9be51d78f446b0fa461892.
[HVM/vncserver] Implement a 'vnclisten' option to limit the interface
that the VNC server from qemu listens on.

Defaults to only listen on 127.0.0.1

The old behaviour (listen on all interfaces) can be restored, by
- changing the system-wide default in /etc/xen/xend-config.sxp by adding:
(vnc-listen '0.0.0.0')
- changing individual domain config files by adding:
vnclisten="0.0.0.0"

Also allows specifying the hostname associated with an interface to limit
to that interface.

Signed-off-by:  Daniel P. Berrange <berrange@redhat.com>
2006-10-05 14:53:29 +01:00
kaf24@firebug.cl.cam.ac.uk 87779442e9 [XEND] If 'vncused' is set, it won't specify an explicit display num to QEMU.
In the current xen-unstable.hg tree tough, XenD will always pass an
explicit '-vnc <display num>' parameter to qemu-dm, regardless of
whether 'vncunused' is set. So the 'vncunused' bit only takes effect
if the explicitly passed display already has something bound to it.

Consider what happens when the host machine has been up for a while -
the Domain ID's start getting very high. This plays havoc with
firewalls - for example an admin may know that only 10 domains will
ever be running at any time, so they should be able to simply open up
ports 5900 -> 5910.

The correct behaviour should be:

   - If 'vncdisplay' is set, use that explicit display
   - If 'vncunused' is set non-zero, allocate first port about 5900
   - Allocate fixed port based on domain-ID

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2006-10-04 09:42:41 +01:00
Alastair Tse b4c2b3ae59 [XM] Fix rmlabel filename assignment
The patch fixes a bug in the rmlabel tool.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-03 11:24:48 +01:00
Alastair Tse 2763180650 [XM] Fix missing security check in block-attach
This patch fixes an indentation error in main.py. The effect of this
bug is that block-attach does not check labels if the ACM is
active. This bug slipped in with change set 11572_:_ ad22c711ccb7
<http://xenbits.xensource.com/xen-unstable.hg?cs=ad22c711ccb7>.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>
2006-10-03 10:48:07 +01:00
Ewan Mellor c702ebb631 These are the proposed changes to XenD that adapt vTPM handling to the
document and the implementation in the library. It's implementation is
now similar to VIF and VBD. The implementation passes the first 2 tests
in the vTPM- related tests in the xm-test suite.

Minor conflict resolution by Ewan Mellor.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-28 17:12:04 +01:00
Ewan Mellor 65488fbb18 uint64_t replaced with int64_t everywhere.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-28 13:30:21 +01:00
Ewan Mellor d9f69f287c The structure fields should be exactly as documented, including case matching.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-28 12:15:40 +01:00
Ewan Mellor 370c459ec5 Implement new VTPM model.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-28 12:14:47 +01:00
Ewan Mellor e9a8f0e261 The get_by_name_label functions return a set, not a singleton, because names
are not guaranteed to be unique.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-28 12:04:08 +01:00
Ewan Mellor 55923ae058 Fix marshalling to and from record_opts.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-28 12:00:02 +01:00
Ewan Mellor 88e408ccda Fix freeing of records, when the given pointer is NULL.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-28 11:54:05 +01:00
Ewan Mellor 07b95037c7 Fix the handling of sets in the interface -- expecting a pointer to X to serve
as a list of them was too hopeful -- that's what the set structures are for.

Based upon a patch by Jim Fehlig.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-28 11:50:35 +01:00
Ewan Mellor 4d00dc893b The on-wire names for the fields should be exactly as documented, including
case.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-28 11:41:55 +01:00
Ewan Mellor eb95231af8 Tidy.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-28 11:21:35 +01:00
Ewan Mellor 98fce5e002 Tidy.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-28 11:20:47 +01:00
Ewan Mellor 3de924f62e Remove VTPM-related values, now obsolete.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-27 09:52:49 +01:00
Ewan Mellor efbc4c6ce8 Remove the get_all method from most classes -- we'd like people to be able to
get all VMs, for example, but for VBDs et al it doesn't really make sense.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 18:17:56 +01:00
Ewan Mellor 11e5828508 Replace the datamodel graph eps with a dot file.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 16:03:52 +01:00
Ewan Mellor 160e3425fc Fix VTPM bindings -- ints in the model are uint64_t at the C binding level.
VM's, being referenced from the VTPM, have a backreferring set.  Remove the
implementation of the old, dead VTPM-related fields on VM.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 16:02:49 +01:00
Ewan Mellor 75fc47c34f Implement new PIF-based network model, and match movement of I/O-statistics.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 15:59:51 +01:00
Ewan Mellor 90a38027f4 Implement VDI.resize message.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 15:57:29 +01:00
Ewan Mellor 6e30095293 Implement HostCPU.{vendor,speed,modelname}.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 15:56:44 +01:00
Ewan Mellor 4809ab6f09 Implement new VMX feature flag.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 15:53:31 +01:00
Ewan Mellor 01b62fa670 Added HostCPU.{vendor,speed,modelname}.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 15:49:57 +01:00
Ewan Mellor 4fec63fde6 Added VMX feature flag.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 15:48:44 +01:00
Ewan Mellor 3b180b47fe New PIF class.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 15:47:46 +01:00
Ewan Mellor f25b797cb0 Remove get_record_internal -- it's not needed at the binding level.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 15:46:46 +01:00
Ewan Mellor 44aa0e316d Rename VTPM.type to VTPM.driver, to match the libxen bindings.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 15:43:32 +01:00
Ewan Mellor 0461886435 Fix network model by moving Network.NIC and Network.VLAN onto a new PIF class.
Also, merge network and disk bandwidth into a single io/ namespace.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 15:35:18 +01:00
Ewan Mellor 4b440ab478 Rename get_by_label to get_by_name_label everywhere -- this was always the
intended name.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 15:03:47 +01:00
Ewan Mellor c300a22e13 Added VDI.resize method.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 14:40:22 +01:00
Ewan Mellor d6a74db4b0 Make all Ref Sets DynamicRO -- they are implied by the existence of an instance
elsewhere, and cannot be modified directly.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 14:39:34 +01:00
Ewan Mellor 0cc6b0be8f Datamodel changes adding some basic vTPM extensions to the API that
make its handling similar to that of VBD etc.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-25 20:44:01 +01:00
Ewan Mellor 7145dab4ea Fix preamble -- get_by_short_name is now called get_by_name_label.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-25 20:40:49 +01:00
Ewan Mellor f41edb0843 Import Xen Management API Draft, 0.4.3, from
http://wiki.xensource.com/xenwiki/XenApi

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-25 20:34:26 +01:00
Ewan Mellor 947025bc2f C bindings adding some basic vTPM extensions to the API that
make its handling similar to that of VBD etc.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-25 17:30:17 +01:00