Commit Graph
14959 Commits
Author SHA1 Message Date
Tom Wilkie fc0ab3e65a [XM-TEST] Add test for new network functions
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-26 16:15:08 +01:00
Tom Wilkie 21cdf90f7a [XM-TEST] Move network_utils.py to lib directory
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-26 15:48:09 +01:00
Tom Wilkie 1975a60f78 Add network-del and network-show commands to xm
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-26 15:40:35 +01:00
Tom Wilkie 15ef31e0c5 Add network.destroy() to XenAPI
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-26 15:39:30 +01:00
kfraser@localhost.localdomain faae093917 domain builder: Fix sanity check for gzip size.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-26 15:42:49 +01:00
kfraser@localhost.localdomain 3ad25facec acm: Remove unecessary compat shim from do_acm_op().
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-26 15:36:09 +01:00
kfraser@localhost.localdomain f00713a392 acm: Fix 32-bit build with acm enabled.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-04-26 15:25:09 +01:00
kfraser@localhost.localdomain 03023435b5 blktap: Segments can span multiple clusters with tap:qcow.
In blktap's qcow we need split up read/write requests if the requests
span multiple clusters. However, with our MAX_AIO_REQUESTS define we
assume that there is only ever a single aio request per tapdisk
request and under heavy i/o we can run out of room causing us to
cancel requests.

Dynamically allocate (based on cluster_bits) the various io request
queues the driver maintains.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2007-04-26 11:29:41 +01:00
kfraser@localhost.localdomain af92b4bbdf hvm ioemu: Fix SCSI initialisation after c/s 14942.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-26 11:18:42 +01:00
kfraser@localhost.localdomain fbc4f61a87 xen x86/64 compat: Fix size of accesses to trap_bounce.cs in asm.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-26 10:51:49 +01:00
kfraser@localhost.localdomain e101034b6c Remove non-ASCII chars in man page.
Signed-off-by: Charles Coffing <ccoffing@novell.com>
2007-04-26 09:52:34 +01:00
kfraser@localhost.localdomain 8482630322 xend: Tidy bootloader device constant.
In XendDomainInfo, BOOTLOADER_LOOPBACK_DEVICE is defined to be
'/dev/xvdp'.  However, there is still one place in this file that has
'/dev/xvdp' hard-coded.

Signed-off-by: Charles Coffing <ccoffing@novell.com>
2007-04-26 09:51:39 +01:00
Keir Fraser 89c074e401 hvm vmx: Mark bootstrap-initialised variables as read-mostly.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-25 22:56:09 +01:00
Keir Fraser a7d5cfd622 hvm vmx: Another small fix for CPUs with no TPR_SHADOW support.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-25 22:29:39 +01:00
Keir Fraser 259e50f593 xen: Fix maximum_gpfn() hypercall to always return max_gpfn not nr_gpfns.
Fix callers to convert this to nr_gpfns (aka p2m_size) if that's what
they actually need.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-25 22:22:31 +01:00
Keir Fraser 6a9e6c9dc3 hvm vmx: Only use TPR_SHADOW feature if supported.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-25 22:06:13 +01:00
kfraser@localhost.localdomain 135a488c83 hvm ioemu: Do not initialise the LSI SCSI interface if no SCSI discs
are attached to the guest.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-25 18:12:03 +01:00
Tom Wilkie 369e63f97c [XEND] No need to refresh bridges under new model...
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-25 16:18:34 +01:00
Tom Wilkie ebfb34834f [XEND] Fully implement XenAPI network and PIF classes.
Now support creation of Networks and PIFs.  Auto discover current network settings.

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-25 16:17:51 +01:00
Tom Wilkie 1176bb2c6c [XEND] Remove autoplug class signatures, have it all handled in the class now
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-25 16:16:21 +01:00
Tom Wilkie 0207b91bee [XEND] Make existing autoplug classes implement new XendBase
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-25 16:14:20 +01:00
Tom Wilkie de8d95c660 [XM] Fix network-attach when a bridge is specified, add network-new command to create new XenAPI network
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-25 16:12:41 +01:00
Tom Wilkie edb909c878 [XEND] Add more exceptions and error messages
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-25 16:11:20 +01:00
Tom Wilkie 2ecc034a6a Use new instance store to resolve network uuid to bridge name
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-25 15:42:34 +01:00
Tom Wilkie 876a24c0c8 Change how XendStateStore store XML for persistance.
Make it explicity store empty dicts and list.

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-25 15:39:48 +01:00
Tom Wilkie e9b41a4385 Add new base class and instance store for new autoplugged api classes
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-25 15:38:04 +01:00
Tom Wilkie 9ad27d5eda If bridge name hasn't been recorded in XendConfig then try and work it out using Brctl.
This is needed when a VIF is created without specifying a bridge.

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-25 13:55:18 +01:00
Tom Wilkie 1f79e130d5 Translate network uuid to bridge name and store it in XendConfig when createing a new vif.
Fixes a bug where a new vif gets added to the wrong bridge.

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-25 13:44:37 +01:00
kfraser@localhost.localdomain 429a365771 xen: Fix up use of trap_bounce structure.
Fixes suggested by Jan Beulich.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-25 13:50:20 +01:00
Steven Smith 2752e8f063 hvm save/restore: Use a GUEST_HANDLE_64 rather than an ordinary GUEST_HANDLE
when getting the HVM context so as 32 bit dom0s on a 64 bit hypervisor
do the right thing.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2007-04-25 12:04:55 +01:00
kfraser@localhost.localdomain 6663bba3a2 libxc: Fix xc_translate_foreign_address() to parse non-pae pagetables
correctly.
From: Chris Morrow <cmorrow@yottayotta.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-25 09:49:18 +01:00
kfraser@localhost.localdomain 9693ccfdf1 linux x86/64: Fix supervisor_mode_kernel test to read a single byte.
Spotted by Jan Beulich.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-25 09:46:43 +01:00
kfraser@localhost.localdomain efe6d12251 xend: Fix race in vfb/vkbd device setup.
1. XendDomainInfo._createDevices() gets a list of devices to be
    created from XendConfig.ordered_device_refs().
    On a simple guest, this has 4 devices, vfb, vbd, vif, vkbd - in
    that order.

 2. It iterates over those devices, creating the appropriate
    DevController subclass instance, and then calling createDevice()
    on that object.

 3. When createDevice() is called on the vfb  device, it spawns
    xen-vncfb daemon.

 4. During startup xen-vncfb writes into the backend paths
            /local/domain/0/backend/vfb/0
     And
            /local/domain/0/backend/vkbd/0

 5. When createDevice() is called on the vkbd device in XenD, if the
    2nd xenstore path write from step 4 has occurred, then you'll hit
    the 'Device 0 (vkbd) is already connected' error. If the 2nd path
    write didn't complete yet then everything is fine.

I think the reason it often works once after boot is that loading
xen-vncfb from disk the first time around is just enough of a slow
down to ensure step 5 occurs before the 2nd xenstore write in step 4
has occurred.

The key seems to be to ensure the vkbd device is initialized in
xenstore before the vfb device - this ensures all the xenstored setup
from XenD is complete before the xen-vncfb daemon starts. I'm now able
to create & destroy a domain many times over with this patch & never
hit the error message any more.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2007-04-25 09:44:20 +01:00
kfraser@localhost.localdomain 260c2c91b7 acm: Updating a policy on a running system.
Allow a policy to be updated on a running system and domains to be
relabeled. The updating of a policy is happening in several steps:
relabeling the domains, testing whether the system would be in a valid
state after the relabeling (according to the policy), committing the
changes if state is determined to be valid.

I have followed Keir's suggestion of building a 2nd linked list
parallel to the domain list. That 2nd list holds security information
related to the running domains. Each entry is pointed to by its domain
structure. The list is protected by its own read/write-lock. I have
moved nearly all ACM-related code that was traversing the domain list
previously to traverse this list instead and not hold onto the domain
list lock.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-04-25 09:40:02 +01:00
kfraser@localhost.localdomain 8c706ec28d acm: Changes to XML schema of the policy
This patch changes the XML schema of the ACM policy to require a
version and that every conflict set have a name. Every VM label must
have one Chinese Wall Type and every resource label one Simple Type
Enforcement Type. As a consequence of this some example policies
needed to be changed. Also not offering that many configuration
options for compiling xen anymore to make things simpler.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-04-25 09:31:52 +01:00
kfraser@localhost.localdomain 74fd18ac58 xend: Settle on 0666 pre-umask permissions for xend-debug.log.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-24 23:40:40 +01:00
Keir Fraser 57803ee7ae xend: Suppress logging of "Listing domains in state foo" in xend.log.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2007-04-24 23:12:10 +01:00
Ian Campbell 169b990abc LINUX: Fixes for XENFEAT_supervisor_mode_kernel and XENFEAT_writable_page_tables.
Signed-of-by: Ian Campbell <ian.campbell@xensource.com>
2007-04-24 22:35:16 +01:00
Keir Fraser 6c13b7b80f hvm: Choose correct shared_info format for 32-bit PV drivers on 64-bit Xen.
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-24 22:00:45 +01:00
Keir Fraser 5777c0acc5 acm: Changes to files missed in previous cleanup patch.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-04-24 21:50:00 +01:00
Keir Fraser 9718c31fb7 Remove execute permission from xend-debug.log
The file /var/log/xen/xend-debug.log is currently being created with
executable permission bits set. This is because the os.open() method
defaults to using a mode of 0777 if no third parameter is provided.
The attached patch changes the mode to 0600 to ensure that the file
permissions come out as -rw-------  instead of -rwxr-xr-x

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2007-04-24 21:48:09 +01:00
Keir Fraser 8ff144a439 acm: Move acm_domain_destroy() hook to complete_domain_destroy().
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-24 21:44:41 +01:00
Keir Fraser 50669d99b3 xen ia64: Fix build breakage after ACM cleanup.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-04-24 21:42:08 +01:00
Keir Fraser bf8de73f69 Merge with xen-ia64-unstable.hg 2007-04-24 21:39:23 +01:00
Christian Limpach 5f078a4976 [qemu-dm] Check for null pointer in dma handler function pointer.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-04-24 17:02:10 +01:00
Christian Limpach 18b8dd067a [qemu-dm] Add bounds checks to block device reads/writes.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-04-24 17:02:09 +01:00
Christian Limpach 291c0bd393 [qemu-dm] Add bounds checks for cirrus bitblit memory accesses.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-04-24 17:02:07 +01:00
kfraser@localhost.localdomain 4bac6e2302 acm: Code restructuring on domain create/destroy.
When a domain is created, the function acm_domain_create() in
domain_create() is called that does what previously the pre- and
post_domain_create functions were doing. Similarly there's a function
acm_domain_destroy() in domain_kill() that reverts changes to state
when destroying a domain. There's no more separate initialization
necessary for domain-0, but domain_create takes one more parameter,
the ssidref. It is usually passed through the hypercall when a domain
is created.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-04-24 16:52:15 +01:00
kfraser@localhost.localdomain b13b1bffc1 hvm: Fix ioreq structure size to be 32/64-bit invariant.
This fixes booting HVM guests with 32-bit dom0 on 64-bit Xen.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-24 16:28:37 +01:00
Alex Williamson 0aaca64240 merge with xen-unstable.hg 2007-04-24 09:26:32 -06:00