aboutsummaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* xend: Avoid use of 'k' specifier to Py_BuildValue(). ItsKeir Fraser2007-03-181-3/+3
| | | | | | implementation is broken until Python v2.4.3. Instead cast the C value to long long and use the 'L' specifier. Signed-off-by: Keir Fraser <keir@xensource.com>
* xend: Fix Py_BuildValue() invocation (don't use I specifier).Keir Fraser2007-03-181-16/+26
| | | | | Various error-handlign cleanup and fix a reference leakage. Signed-off-by: Keir Fraser <keir@xensource.com>
* Re-raise log level for XendConfig (accidentally changed it to DEBUG previously).Ewan Mellor2007-03-181-1/+1
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Fix the signedness of a number of values demarshalled by xc.domain_getinfo,Ewan Mellor2007-03-181-17/+19
| | | | | | in particular mem_kb and maxmem_kb. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Support xm create through the Xen-API.Ewan Mellor2007-03-177-68/+939
| | | | Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
* Fix xm list's printing of the memory target, when in legacy mode.Ewan Mellor2007-03-171-1/+1
| | | | Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
* Replace VDI.location with a more generic VDI.other_config map. RemoveEwan Mellor2007-03-1711-70/+130
| | | | | | | | VDI.sector_size. Xend work by Tom Wilkie <tom.wilkie@gmail.com>. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Work around bug in Python's inspect module -- catch an IndexError exceptionEwan Mellor2007-03-171-0/+12
| | | | | | if the source-code lookup fails. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Xen and tools now require gcc 3.4+ on x86.Keir Fraser2007-03-171-0/+5
| | | | | | | | | | | | | | | - gcc-3.2 cannot handle some multi-line assertions in the Xen sources. Noone noticed. - gcc-3.3 has problems with alignment constraints inside typedefs. gcc 3.4.0 is now three years old so I hope that everyone has an up-to-date compiler, or can obtain a more up-to-date package for their distribution. If not we may need to fall back to supporting gcc-3.3.x as well. Also clean up the way we do version checks, using the power of awk. Signed-off-by: Keir Fraser <keir@xensource.com>
* hvmloader: More simplification of highmem bios relocation code.Keir Fraser2007-03-162-66/+48
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* General hvmloader cleanups and write memory fields of CMOS withKeir Fraser2007-03-166-118/+141
| | | | | correct values. Signed-off-by: Keir Fraser <keir@xensource.com>
* Fix build when bcc is not installed.Keir Fraser2007-03-161-1/+1
|
* [TAPDISK] unlock sector on error caseJake Wires2007-03-161-0/+1
| | | | Signed-off-by: Jake Wires <jwires@xensource.com>
* rombios: Simplify memory-size bios calls and derive all results fromkfraser@localhost.localdomain2007-03-161-162/+70
| | | | | the e820 map. Signed-off-by: Keir Fraser <keir@xensource.com>
* libxc: Explicitly reserve space for special pages in HVM memmap.kfraser@localhost.localdomain2007-03-161-0/+6
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* Fix VM_metrics.get_vcpus_utilisation.Ewan Mellor2007-03-161-1/+1
| | | | | | Fix is due to Ingard Mevåg <ingard.mevag@stud.iu.hio.no>. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* [QEMU] fix typo in 14405Tim Deegan2007-03-161-1/+1
| | | | Signe-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* hvm ioemu: Add support for IOREQ_TYPE_XCHG in qemu-dm.kfraser@localhost.localdomain2007-03-161-0/+15
| | | | | From: Trolle Selander <trolle.selander@gmail.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* [HVM][QEMU] Save/restore: enable HVM live migrationTim Deegan2007-03-168-15/+314
| | | | | by getting page-dirtying bitmaps from qemu-dm as well as from xen. Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* Fix the python type dismatch exception when HVM restoreTim Deegan2007-03-161-2/+2
| | | | Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
* Implement xm list through the Xen-API.Ewan Mellor2007-03-151-37/+99
| | | | Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
* Raise the VM_BAD_POWER_STATE error with VM.send_sysrq if the domain is notEwan Mellor2007-03-151-2/+7
| | | | | | running. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Added a new Xen-API call VM.send_sysrq, and use that to implement xm sysrqEwan Mellor2007-03-152-1/+11
| | | | | | through Xen-API. Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
* Allow the xm configuration file location to be overridden with anEwan Mellor2007-03-151-4/+6
| | | | | | environment variable. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Replace tab with 4 whitespaces in xm/shutdown.py.kfraser@localhost.localdomain2007-03-151-13/+13
| | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* hvmloader: Simplify 32bit-bios relocator.kfraser@localhost.localdomain2007-03-151-7/+6
| | | | Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* TCGBIOS fixes and cleanups.kfraser@localhost.localdomain2007-03-153-59/+36
| | | | | | | | | | | | - Add a missing break into the switch statement - Simplify the code that switches from protected mode into real mode by letting it spill eax; this also fixes the case where the stack is above 0xffff. - reformat the source for 80 columns - remove some comments that were relevant when the TCG extensions were direct part of the real-mode Bochs BIOS Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* Implement xm domid and xm console using the Xen-API, and fix xm domname.Ewan Mellor2007-03-141-6/+12
| | | | Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
* Added the clear flag to host.dmesg, and added host.get_log. Use these toEwan Mellor2007-03-142-8/+33
| | | | | | | implement xm dmesg and xm log using the Xen-API. Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com> Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Fix error logging when we get a 500 response.Ewan Mellor2007-03-141-1/+1
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Improve the performance of the Xend trace facility, and exclude XendMonitorEwan Mellor2007-03-141-3/+6
| | | | | | and XendLogging from those classes that are traced. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Trap bad return values from Xen-API method handlers, and return an internalEwan Mellor2007-03-141-0/+12
| | | | | | error. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Match recent removal of VM.VCPUs_policy.Ewan Mellor2007-03-143-53/+0
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Fix typo in xm-test.Ewan Mellor2007-03-141-1/+1
| | | | Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
* Fix typo.Ewan Mellor2007-03-141-1/+1
| | | | Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
* Added VM_metrics.get_all.Ewan Mellor2007-03-142-0/+8
| | | | Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
* Added Xen-API features needed to implement xm info: host.sched_policyEwan Mellor2007-03-144-47/+156
| | | | | | | | | | | (replacing VM.VCPUs_policy, which never made sense), and host.cpu_configuration. Add other details into either host.software_version or host.other_config as appropriate. Implement xm info and the scheduler-detection check using this. Signed-off-by: Ewan Mellor <ewan@xensource.com> Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
* Implement VM_metrics Xen-API class.Ewan Mellor2007-03-143-13/+117
| | | | | Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com> Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Added Xen-API support to xm shutdown.Ewan Mellor2007-03-141-7/+30
| | | | Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
* hvm: Firmware build requires dev86 (bcc) >= 0.16.14.kfraser@localhost.localdomain2007-03-141-3/+3
| | | | | Earlier versions (at least 0.16.0) generate incorrect code. Signed-off-by: Keir Fraser <keir@xensource.com>
* Implement VM.{add_to,remove_from}_VCPUs_params.Ewan Mellor2007-03-131-2/+19
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* In xm shell, add a space to the function names when tab-completing.Ewan Mellor2007-03-131-1/+1
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* [XEND] Mark save record fd close-on-exec after calling xc_restoreTim Deegan2007-03-141-0/+10
| | | | | so that qemu doesn't end up with an open fd on it Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* hvm: Add a revision 1 FADT in ACPI, and link the original revision-4kfraser@localhost.localdomain2007-03-142-1/+67
| | | | | | | | | | FADT only to XSDT. It avoids a buffer overflow in the initialization of Window 2000 ACPI HAL (pre ACPI 2.0 OS), and thus enables the installation and boot. This compatibility practice is also used in hardware, please refer to: http://www.acpi.info/presentations/S01USMOBS169_OS%20new.ppt Signed-off-by: Qing He <qing.he@intel.com>
* AMD HVM: Fix enter-realmode stub to initialise 32-bit GPRs.kfraser@localhost.localdomain2007-03-141-5/+11
| | | | | | | This fixes booting Ubuntu live ISO, which assumes the upper half of %esp is zero on entry. Signed-off-by: Keir Fraser <keir@xensource.com>
* add usb device save/restore in qemuTim Deegan2007-03-146-0/+162
| | | | Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
* [HVM] Save/restore: more state propagation in xendTim Deegan2007-03-134-9/+10
| | | | Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* xm: Allow vcpu-pin to specify 'all' for CPU list.kfraser@localhost.localdomain2007-03-131-2/+5
| | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* hvmloader: Avoid compile warnings char vs. unsigned char.kfraser@localhost.localdomain2007-03-132-16/+18
| | | | | Avoid 'magic number' hardcoded string lengths. Signed-off-by: Keir Fraser <keir@xensource.com>
* [XM-TEST] vTPM test changeskfraser@localhost.localdomain2007-03-132-2/+3
| | | | | | | | Remove an uninitialized variable. For some reason the 'ps aux' command does not see the process anymore (since some time on the weekend). Need to add 'COLUMNS=n'. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>