aboutsummaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Log an error when enabling shadow mode fails for live relocation.kfraser@localhost.localdomain2007-09-181-7/+12
| | | | Signed-off-by: Doug Merrill <dpmerrill@novell.com>
* xm: Extend width of ID in 'xm list --label' to 5 digitskfraser@localhost.localdomain2007-09-181-2/+2
| | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* [VTPM] VTPM manager -- Fix parameter checkkfraser@localhost.localdomain2007-09-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | If vtpm_managed is started with the same vtpm instance, the following error occurs. ++++++++++++ Loading NVM. Sending LoadNVM command INFO[VTSP]: Unbinding 256 bytes of data. ERROR in VTSP_Unbind at vtsp.c:719 code: TPM_BAD_PARAMETER. ERROR in envelope_decrypt at securestorage.c:156 code:TPM_BAD_PARAMETER. ERROR[VTPM]: Failed to envelope decrypt data .ERROR in VTPM_Handle_Load_NVM at securestorage.c:284 code: TPM_BAD_PARAMETER. ERROR[VTPM]: Failed to load NVM .INFO[VTPM]: [VTPM Listener]: VTPM Listener waiting for messages. Reading LoadNVM header ++++++++++++ Signed-off-by: Kouichi YASAKI <yasaki.kouichi@jp.fujitsu.com>
* [VTPM] Fix vTPM function in HVM domainkfraser@localhost.localdomain2007-09-181-3/+29
| | | | | | | In Windows on HVM domain, GetPubkey function and Seal function become an error. Signed-off-by: Kouichi YASAKI <yasaki.kouichi@jp.fujitsu.com>
* PCI passthru: tools changes (generic and vt-d)kfraser@localhost.localdomain2007-09-1411-12/+732
| | | | | | | | | | | | | I have added CONFIG_PASSTHROUGH in ioemu/Makefile.target and ioemu/hw/pc.c in attached vtd_tools2.patch. This should turn off libpci usage by default until user specifically enables it. This can be safely check-in without breaking builds for people who do not care about pass-through devices. I will try to think of a better way to enable this. Signed-off-by: Allen Kay <allen.m.kay@intel.com> Signed-off-by: Guy Zana <guy@neocleus.com>
* qemu-dm: fix block-raw io debug printkfraser@localhost.localdomain2007-09-141-5/+5
| | | | Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
* Fix xm dump-core command for paused domain.kfraser@localhost.localdomain2007-09-142-6/+13
| | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* Fix 'xm reboot'kfraser@localhost.localdomain2007-09-141-1/+1
| | | | Signed-off-by: Jim Fehlig <jfehlig@novell.com>
* Fix two memory leaks in xend.kfraser@localhost.localdomain2007-09-142-0/+2
| | | | Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
* [xm-test] Set "console=xvc0" for xm-test guests on Intel architecture platforms.James Bulpin2007-09-111-1/+6
| | | | | | | Tests have been failing because the console for the test ramdisk wasn't using xvc0 so testcases were not able to interact with it. Signed-off-by: James Bulpin <james@xensource.com>
* [QEMU] Enhance raw io reliabilitykfraser@localhost.localdomain2007-09-111-2/+92
| | | | | | | | | For raw block device only : log any I/O error and perform automatic read retry for CDrom (improves MediaCheck with old installers). Signed-off-by: Ben Guthro <bguthro@virtualiron.com> Signed-off-by: Josh Nicholas <jnicholas@virtualiron.com>
* qemu: Backport qemu vnc/event-loop fix from upstream.kfraser@localhost.localdomain2007-09-111-6/+22
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* hvmloader: ACPI DSDT dynamically indicates presence of COM1/COM2 portskfraser@localhost.localdomain2007-09-113-431/+509
| | | | | according to qemu emulation. Signed-off-by: Keir Fraser <keir@xensource.com>
* Fix memory leak in xendkfraser@localhost.localdomain2007-09-111-0/+1
| | | | | | | | | | | | | | I found that xend's memory usage grows considerably when running a script such as while true; do xm new foo ; sleep 2s; xm delete foo ; sleep 2s; done XendAPIStore maintains a list of class instances and in the case of new/create operation, an associated VMMetrics object is stashed in the list but never removed on delete/shutdown. This patch removes the instance by invoking XendBase.destroy() method. Signed-off-by: Jim Fehlig <jfehlig@novell.com>
* Add 'type vnc' to vfb device sexpr for HVM guestkfraser@localhost.localdomain2007-09-111-0/+1
| | | | | | | | | | | | | | | | | | | | This patch adds 'type vnc' to vfb device sexpr for HVM guests. PV guests already contain this entry in sexpr, e.g. (device (vfb (vncunused 1) ... (type vnc) ... ) ) Some tools, such as libvirt, look for device/vfb/type in sexpr before publishing VNC port. More importantly, this patch provides consistency in vfb device sexpr between HVM and PV guests. Signed-off-by: Jim Fehlig <jfehlig@novell.com>
* Xend: "shadow_memory" setting in xm config is in MiB, not bytes.Tim Deegan2007-09-113-2/+3
| | | | Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* xenstore: Remove incorrect comment.kfraser@localhost.localdomain2007-09-112-2/+0
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* merge with xen-unstable.hg (staging)Alex Williamson2007-09-101-1/+1
|\
| * [libxen] Compilation fix.kfraser@localhost.localdomain2007-09-101-1/+1
| | | | | | | | | | | | | | On a clean system where no prior dev. version of libxen was installed, the compilation fails due to a wrong include. This fixes it. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* | [IA64] Use xc_map_foreign_pages() in copy_from_GFW_to_nvram()Alex Williamson2007-09-101-2/+3
| | | | | | | | | | | | use xc_map_foreign_pages() where possible Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | merge with xen-unstable.hg (staging)Alex Williamson2007-09-0714-32/+77
|\|
| * xc_map_foreign_pages(), a convenient alternative to xc_map_foreign_batch()kfraser@localhost.localdomain2007-09-075-10/+45
| | | | | | | | | | | | | | | | | | xc_map_foreign_batch() can succeed partially. It is awkward to use when you're only interested in complete success. Provide new xc_map_foreign_pages() convenience function for that kind of use. Also convert two obvious calls to use it. Signed-off-by: Markus Armbruster <armbru@redhat.com>
| * Fix error message and wait time for xm block-detach command.kfraser@localhost.localdomain2007-09-073-11/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Wait time When xm requests a block device detach to xend, xm makes two requests. At first, xm requests the block device detach by device class 'vbd'. Next, xm requests the block device detaching by device class 'tap'. As a result, the wait time is 200 seconds because each of the block device detaching requests causes time-out. - Misleading error message Because the last request is by device class 'tap' to xend, the keyword "(tap)" is included in the error message. This patch fixes the number of times of the block device detaching request to one time. At first, xm makes inquiries about device class of a detaching target device to xend. Then xm requires the block device detaching by xend returned device class. The wait time becomes 100 seconds because the block device detaching request is one time. And the error message is also fixed. Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
| * xend: Fix error message for xm trigger command.kfraser@localhost.localdomain2007-09-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When I tested xm trigger command with a wrong argument, I saw the following error message. # xm trigger vm1 xyz Error: __init__() takes exactly 2 arguments (3 given) Usage: xm trigger <Domain> <nmi|reset|init> [<VCPU>] Send a trigger to a domain. This patch fixes the error message as follows. # xm trigger vm1 xyz Error: Invalid trigger: xyz Usage: xm trigger <Domain> <nmi|reset|init> [<VCPU>] Send a trigger to a domain. The type of "TRIGGER_TYPE" is dictionary. domain_send_trigger() refers to the keys of "TRIGGER_TYPE" without using keys() currently. This patch adds keys() there. Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
| * xend: waitForDevices() on xm reboot.kfraser@localhost.localdomain2007-09-071-0/+1
| | | | | | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
| * Fix xenstored's dup2() usage.kfraser@localhost.localdomain2007-09-071-4/+4
| | | | | | | | | | | | | | The dup2() calls had their arguments reversed. Also remove the unnecessary close() calls. Signed-off-by: John Levon <john.levon@sun.com>
| * Check for libxml2 if security tools are to be built, and adapt thekfraser@localhost.localdomain2007-09-074-5/+5
| | | | | | | | | | | | python setup.py command line parameters to also work under SuSE. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* | [IA64] Foreign p2m: make xc_ia64_get_pfn_list() staticAlex Williamson2007-09-062-5/+1
| | | | | | | | | | | | Now xc_ia64_get_pfn_list() isn't used anymore. Make it static. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | [IA64] Foreign p2m: rewrite save/restore with foreign p2mAlex Williamson2007-09-063-116/+311
| | | | | | | | Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | [IA64] Foreign p2m: xc_core: ia64 xc_core_arch_gpfn_may_present()Alex Williamson2007-09-062-15/+64
| | | | | | | | | | | | | | Prevent warning message when xm dump-core Using foreign p2m exposure, we can avoid to map the page which isn't allocated. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | [IA64] Foreign p2m: libxc sideAlex Williamson2007-09-062-7/+184
| | | | | | | | Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | [IA64] Foreign p2m: Fix vti domain builder.Alex Williamson2007-09-061-1/+3
| | | | | | | | | | | | It should set arch_domain::convmem_end. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | merge with xen-unstable.hg (staging)Alex Williamson2007-09-0677-373/+1276
|\|
| * Fix domain restore after memory auto-balloon changes.kfraser@localhost.localdomain2007-09-061-6/+5
| | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * Fix xm-test python import after XSM security changes.kfraser@localhost.localdomain2007-09-065-5/+8
| | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * [XSM] correctly rename, relocate and patch the security.py filekfraser@localhost.localdomain2007-09-062-1318/+53
| | | | | | | | | | | | | | | | | | | | This patch corrects an error in the original XSM tools patch. The original patch did not rename, relocate and patch the security.py file from changeset 15730:256160ff19b7. This patch addresses this issue as well as any updates made to security.py in xen-staging during the merge of XSM. Signed-off-by: George Coker <gscoker@alpha.ncsc.mil>
| * Delete flask tools build target and add to .hgignore.kfraser@localhost.localdomain2007-09-061-0/+0
| | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * Build libflask unconditionally since the python low-level toolsIan Campbell2007-09-031-2/+0
| | | | | | | | | | | | | | | | | | require it and it does't seem to pull in any major dependencies. The alternative would have been to hack tools/python/setup.py to conditionally compile the flask stuff. Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
| * xend: Always build lowlevel security modules, as there are somekfraser@localhost.localdomain2007-08-311-6/+1
| | | | | | | | | | dependencies on these from with xend proper. Signed-off-by: Keir Fraser <keir@xensource.com>
| * libxenctrl: xc_destroy_domain() handles EAGAIN.kfraser@localhost.localdomain2007-08-311-1/+5
| | | | | | | | Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
| * xend: Correct indexing in xc_cpu_to_node_t map.kfraser@localhost.localdomain2007-08-311-1/+1
| | | | | | | | Signed-off-by: Beth Kon <eak@us.ibm.com>
| * xend: Add blktap disk type checkkfraser@localhost.localdomain2007-08-312-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Print the following error when you give a wrong disk type to xm commands: # xm create /xen/vm1.conf disk='tap:xxx:/xen/root-vm1.img,hda1,w' Using config file "/xen/vm1.conf". Error: tap:xxx not a valid disk type # xm block-attach vm2 tap:yyy:/xen/second.img hdb1 w Error: tap:yyy not a valid disk type Usage: xm block-attach <Domain> <BackDev> <FrontDev> <Mode> [BackDomain] Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
| * Add line termination to 'echo' usage in network-bridge script.kfraser@localhost.localdomain2007-08-311-1/+2
| | | | | | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
| * Fix handling of auto-generated file xsm.py.kfraser@localhost.localdomain2007-08-312-11/+2
| | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * Cleanups after XSM checkin.kfraser@localhost.localdomain2007-08-315-7/+11
| | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com> --HG-- rename : xen/include/public/acm.h => xen/include/public/xsm/acm.h rename : xen/include/public/acm_ops.h => xen/include/public/xsm/acm_ops.h rename : xen/include/acm/acm_core.h => xen/include/xsm/acm/acm_core.h rename : xen/include/acm/acm_endian.h => xen/include/xsm/acm/acm_endian.h rename : xen/include/acm/acm_hooks.h => xen/include/xsm/acm/acm_hooks.h
| * Xen Security Modules: ACM.kfraser@localhost.localdomain2007-08-313-1/+10
| | | | | | | | Signed-off-by: George Coker <gscoker@alpha.ncsc.mil>
| * Xen Security Modules: Tools.kfraser@localhost.localdomain2007-08-3140-60/+2052
| | | | | | | | Signed-off-by: George Coker <gscoker@alpha.ncsc.mil>
| * Fix blktap script for versions of readlink command that do not handlekfraser@localhost.localdomain2007-08-311-1/+7
| | | | | | | | | | | | regular files. Signed-off-by: Ben Guthro <bguthro@virtualiron.com> Signed-off-by: Josh Nicholas <jnicholas@virtualiron.com>
| * qemu: Allow more IDE power management.kfraser@localhost.localdomain2007-08-301-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Made the QEMU IDE disk tolerate more power-mgmt commands, specifically: WIN_SETFEATURE(EN_AAM) - enable automatic acoustic mgmt WIN_SETFEATURE(DIS_AAM) - disable automatic acoustic mgmt WIN_SETFEATURE(DIS_APM) - disable automatic power mgmt WIN_STANDBY WIN_SETIDLE1 WIN_SLEEPNOW1 WIN_STANDBY2 WIN_SETIDLE2 WIN_SLEEPNOW2 WIN_STANDBYNOW2 These are all essentially no-ops, like existing support for EN_RLA (enable read lookahead) and WIN_STANDBYNOW1. This fixes a crash in the SLES9-SP3 64bit kernel when the powersaved was started (with ACPI or ACM). This guest really only needs EN_AAM, DIS_APM, and WIN_SETIDLE1 support, but the others seemed sensible to include. I've excluded EN_APM since I'm unsure of what that's agreeing to do. It's probably ok to include. Signed-off-by: Ben Guthro <bguthro@virtualiron.com> Signed-off-by: David Lively <dlively@virtualiron.com>
| * blktap: Fix double-free in tapdisk cleanup.kfraser@localhost.localdomain2007-08-301-4/+0
| | | | | | | | | | Signed-off-by: Ben Guthro <bguthro@virtualiron.com> Signed-off-by: Josh Nicholas <jnicholas@virtualiron.com>