aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix parsing of cpus in the guest configuration file.3.0.4-branchedEwan Mellor2006-12-191-0/+1
| | | | | Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com> Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
* [XENOPROF] Fix buffer sharing with auto-translate guests.kfraser@localhost.localdomain2006-12-191-1/+1
| | | | Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
* Merge with xen-ia64-unstable.hgkfraser@localhost.localdomain2006-12-192-6/+6
|\
| * [XEN] Revert 12977:af39d20b2b728941421ef18e5c5b1012852eec80Ian Campbell2006-12-181-2/+2
| | | | | | | | | | | | This changeset broke the ELF note layout on x86_64. Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
| * [XEN] Only print progress dots when scrubbing actual memory.kfraser@localhost.localdomain2006-12-181-4/+4
| | | | | | | | Signed-off-by: Jes Sorensen <jes@sgi.com>
* | merge with xen-unstable.hgawilliam@xenbuild2.aw2006-12-1817-94/+341
|\|
| * Fix _login to pass arguments to the server unconditionally, rather thanEwan Mellor2006-12-181-4/+4
| | | | | | | | | | | | requiring precisely two on the client-side. Signed-off-by: Ewan Mellor <ewan@xensource.com>
| * Fix the parsing of the image sexpr to use PV_kernel et al, rather than the oldEwan Mellor2006-12-181-18/+31
| | | | | | | | | | | | | | | | | | kernel_ variables. This fixes reboot of PV guests. Also, give XendConfig its own logger, to allow us to tweak the log level for that module independently. Signed-off-by: Ewan Mellor <ewan@xensource.com>
| * Write the xfb configuration details to the store, rather than storing them inEwan Mellor2006-12-181-12/+18
| | | | | | | | | | | | memory. This ensures that the VM can be rebooted after a xend restart. Signed-off-by: Ewan Mellor <ewan@xensource.com>
| * Minor tidyup.Ewan Mellor2006-12-171-1/+1
| | | | | | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
| * Fix printing of usage when OptionError is thrown.Ewan Mellor2006-12-171-1/+1
| | | | | | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
| * Only try to label resources if ACM is enabled.Ewan Mellor2006-12-161-0/+2
| | | | | | | | Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
| * An error occurs if the first detach was successful and the 2nd one isEwan Mellor2006-12-161-1/+5
| | | | | | | | | | | | | | | | | | not (of course). Return if the 1st detach is successful, try the 2nd one if it was not successful. Throw an error if the 2nd one fails. This should also fix problems I am currently seeing in the xm-test suite. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
| * Improve XendCheckpoint's forkHelper error handling.Brendan Cully2006-12-131-4/+3
| | | | | | | | | | | | | | | | | | When inputHandler raises an exception, close stdin and stdout in the child before attempting to close stderr, which is held open by a separate thread. Without this patch, exceptions raised by device migration caused xend to hang on child.childerr.close(). Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
| * Persist all the Xen-API data values for VMs.Ewan Mellor2006-12-164-14/+34
| | | | | | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
| * Write the new version of the persisted config to a tempfile and then rename it,Ewan Mellor2006-12-151-7/+12
| | | | | | | | | | | | to avoid corrupting the file on failure. Signed-off-by: Ewan Mellor <ewan@xensource.com>
| * Allow the XenAPI Session object to have login_with_password called as aEwan Mellor2006-12-152-3/+7
| | | | | | | | | | | | | | methodname, to re-login through the same object (say when the server is restarted). Signed-off-by: Ewan Mellor <ewan@xensource.com>
| * VNC pasword authentication support for the paravirt framebuffer server.kfraser@localhost.localdomain2006-12-154-10/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The rules for configuring the password are equivalent of those used for HVM, but the actual guest config option is a little different as a result of the recent refactoring of the PVFB config file syntax. - If the 'vfb' option in the guest config has a 'vncpasswd' parameter specified - If the passwd is not zero length, use that - Else run with no authentication (important as it enables override of next rule) - Else-if the xend-config.sxp has a password specified use that - Else run with no authentication Example configuration: - To set an explicit guest password: vfb = [ "type=vnc,vncunused=1,vnclisten=0.0.0.0,vncpasswd=123456"] - To disable authentication, overriding any XenD configured default password vfb = [ "type=vnc,vncunused=1,vnclisten=0.0.0.0,vncpasswd="] - To run with default XenD configured password (if any) vfb = [ "type=vnc,vncunused=1,vnclisten=0.0.0.0"] Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
| * Fix pointer encoding in vncfb (middle and right button were swapped).kfraser@localhost.localdomain2006-12-151-2/+9
| | | | | | | | Signed-off-by: Markus Armbruster <armbru@redhat.com>
| * [XENFB] xenfb_update_screen() calls zap_page_range() while holding spinlock ↵kfraser@localhost.localdomain2006-12-151-13/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mm_lock. Changeset 13018:c98ca86138a7422cdf9b15d87c95619b7277bb6a merely sweeps the bug under the carpet: it silences zap_page_range()'s cries for help by keeping interrupts enabled. That doesn't fix the bug, and it's also wrong: if a critical region gets interrupted, and the interrupt printk()s, xenfb_refresh() gets executed and promptly deadlocks. This patch fixes the locking, but leaves open a race between xenfb_update_screen() and do_no_page(). See the source code for a detailed explanation of how it works, and where it fails. Signed-off-by: Markus Armbruster <armbru@redhat.com>
| * Add CONFIG_X86_{32,64} Makefile variables.kfraser@localhost.localdomain2006-12-152-0/+2
| | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * Use portable recursive mutex in qemue mapcache.Steven Hand2006-12-151-7/+28
| | | | | | | | Signed-off-by: Steven Hand <steven@xensource.com>
* | [IA64] evtchn_callback fix and cleanawilliam@xenbuild2.aw2006-12-188-298/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since we had changed to use event callback to deliver interrupts, 1. The pending_interruption is changed to pending_event. 2. get_ivr, set_tpr, get_trp and set_eoi are not used or only used in the initialization phase. There is no need to write this code in assembly. This code is deleted. 3. hyper_ssm_i needs to be rewritten to jump to entchn_callback_handler instead of iva+0x3000 interrupt handler. I will do this later. Signed-off-by: Anthony Xu <anthony.xu@intel.com>
* | [IA64] Mask out reserved bits to avoid Reserved Register/Field faults.awilliam@xenbuild2.aw2006-12-182-0/+6
| | | | | | | | Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
* | [IA64] Reflect general exceptionsawilliam@xenbuild2.aw2006-12-182-0/+5
| | | | | | | | | | | | | | General exceptions in the domU with isr.code > 0x20 are now reflected to the domU. Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
* | [IA64] remove global zero initializersawilliam@xenbuild2.aw2006-12-151-3/+3
|/ | | | | | | No need to init global variables to zero as it will place them in the data segment rather than the bss segment. Signed-off-by: Jes Sorensen <jes@sgi.com>
* [TOOLS] USe -mno-direct-seg-refs when building on i386.kfraser@localhost.localdomain2006-12-151-0/+4
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* Fix mem-set, mem-max, and vcpu-set commands when used against inactive domains.Ewan Mellor2006-12-153-23/+47
| | | | Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Use new -p flag to qcow-create.Ewan Mellor2006-12-151-1/+1
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Clean-up hvm/shadow interaction around cr3 updates.Steven Hand2006-12-157-26/+43
| | | | Signed-off-by: Steven Hand <steven@xensource.com>
* Fix more enum demarshalling.Ewan Mellor2006-12-154-14/+0
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Added a test for xen_vm_get_power_state.Ewan Mellor2006-12-151-9/+49
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Fix VM.get_power_state API. On the xend side an integer representation of ↵jfehlig@jfehlig2.provo.novell.com2006-12-133-4/+1
| | | | | | | | the power state was being returned instead of a string representation as specified by the XenAPI spec. On the c-bindings side the marshalling code converts the string representation to an enum value. A subsequent attempt to convert the enum from a string to an enum was causing a seg fault. Signed-off-by: Jim Fehlig <jfehlig@novell.com>
* [XM] Fix network-attach help message.kfraser@localhost.localdomain2006-12-151-2/+3
| | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* Fix check_udev in the case where udev is missing -- test's -a does not shortcut.Ewan Mellor2006-12-151-1/+2
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Revert Makefile changes from 13023:70155087efe89 -- they break make dist.Ewan Mellor2006-12-151-5/+1
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* [NET]: Fix segmentation of linear packetskfraser@localhost.localdomain2006-12-153-5/+31
| | | | | | | | | | | | | | | | skb_segment fails to segment linear packets correctly because it tries to write all linear parts of the original skb into each segment. This will always panic as each segment only contains enough space for one MSS. This was not detected earlier because linear packets should be rare for GSO. In fact it still remains to be seen what exactly created the linear packets that triggered this bug. Basically the only time this should happen is if someone enables GSO emulation on an interface that does not support SG. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
* [XEN] Clean up list.h for Xen formatting rules and add hlist macroskfraser@localhost.localdomain2006-12-151-85/+248
| | | | | | from Linux kernel. Based on a patch from Alex Williamson <alex.williamson@hp.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* Remove unused function from check script.kfraser@localhost.localdomain2006-12-151-6/+0
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* Replace the error message when invalid xm commands are given.Ewan Mellor2006-12-151-0/+1
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Fix exit status for failed commands, and tidy up the usage display.Ewan Mellor2006-12-151-20/+11
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Fix 64-bit build with a PRIu64.Ewan Mellor2006-12-151-1/+1
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Updated test to match new booting arrangement.Ewan Mellor2006-12-141-7/+7
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Fix exception handling in xend start-of-day.Steven Hand2006-12-141-2/+2
| | | | Signed-off-by: Steven Hand <steven@xensource.com>
* Add sparseness flag to qcow-create.Julian Chesterfield2006-12-142-50/+141
| | | | | | | | For environments where space must be guaranteed in advance use the -p flag to remove sparseness from the qcow file. Signed-off-by: Julian Chesterfield <julian@xensource.com>
* Remove the boot-type implementation -- now replaced by the HVM and PV bootEwan Mellor2006-12-143-207/+0
| | | | | | configuration. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Implement new booting parameters for Xen-API, and backwards compatibility forEwan Mellor2006-12-147-417/+385
| | | | | | | | | the old bootloader settings. We now have two mutually exclusive config groups HVM and PV, with HVM/boot and PV/{bootloader,kernel,ramdisk,args,bootloader_args}. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Stub implementations of VM.auto_power_on, VM.consoles.Ewan Mellor2006-12-143-0/+9
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Remove a number of unused configuration dictionaries -- these have allEwan Mellor2006-12-141-59/+0
| | | | | | moved into XendConfig now. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Fix calls to destroyDevice that are missing a force flag.Ewan Mellor2006-12-141-3/+3
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>