Commit Graph
4086 Commits
Author SHA1 Message Date
Ewan Mellor fb2358c250 Merge xen-api.hg changeset 142:d75413e65ba319d577c764be6c13efa5eae6da1c.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-01 10:40:46 +00:00
kfraser@localhost.localdomain 2004d63d13 Stop enforcing -g for some of the tools.
Signed-off-by: John Levon <john.levon@sun.com>
2006-10-31 18:24:57 +00:00
kfraser@localhost.localdomain f0d0046d31 [XEND] Improve error message for unparsed disk modes.
Signed-off-by: John Levon <john.levon@sun.com>
2006-10-31 18:24:44 +00:00
Tim Deegan 9e0d4d34f3 [HVM] Use correct types for guest physical addresses
Guest physical addresses are not guaranteed to fit in either a pointer
or an unsigned long int; use paddr_t for them.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-10-31 16:42:46 +00:00
kfraser@localhost.localdomain 342c7011f6 [HVM] Add support for 'add r8,m8' instruction to memory-mapped I/O.
Signed-off-by: Kevin Tronkowski <ktronkowski@virtualiron.com>
Signed-off-by: Ben Thomas <bthomas@virtualiron.com>
2006-10-31 16:22:39 +00:00
kfraser@localhost.localdomain fc229c860b Clean up recent changes to reboot code. This fixes PV save/restore.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-31 15:54:03 +00:00
kfraser@localhost.localdomain 883236e49a [HVM] ACPI: Clean up table definitions, move under hvmloader/
directory pending tighter integration of table generation
into hvmloader. This patch also includes the TPM TIS SSDT
generator from Stefan Berger at IBM.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-31 12:42:50 +00:00
Steven Smith 111a11e5f5 [HVM][LINUX][TOOLS] Split control/reboot_module into control/feature-reboot
and control/feature-sysrq.  This is more consistent with the other
PV device protocols.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-10-31 10:11:53 +00:00
Steven Smith 65ae4fc8cd [HVM][LINUX][TOOLS] Make xm {shutdown|reboot} do something sensible for HVM
domains with PV drivers loaded.  This patch creates a new PV-on-HVM
module, reboot.ko, which, when loaded, creates control/reboot_module
in the store.  The tools notice this, and disable the watch which would
normally destroy HVM domains which are the target of an xm shutdown
command, allowing the reboot module to shut the domain down cleanly.

Signed-off-by: Tetsu Yamamoto <yamamoto.tetsu@jp.fujitsu.com>

(Checkin comments by Steven Smith <sos22@cam.ac.uk>)
2006-10-31 09:54:49 +00:00
kfraser@localhost.localdomain a75394cc81 [HVM] Fix Qemu-dm serial issues:
1. Retry transmit via a polling timer if a byte cannot be written
    immediately to its destination.
 2. Turn off output processing of raw serial lines.

Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-30 09:45:17 +00:00
Ewan Mellor ad0cc56145 Fix handling of SXP for devices through device_add -- this solves the
Invalid device (uname) problem that breaks just about everything once you've
done xm block-attach.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-29 19:28:26 +00:00
kaf24@localhost.localdomain 9bbcb18fab [QEMU] Add a TIS device model compliant to the 1.2 TPM specification.
It implements all registers necessary to make the Linux TIS driver
work (tpm_tis.c). All of the basic registers supported by this type of
device are implemented. Also the locality selection has been
implemented, but has not been tested. The legacy registers as
described in the specification are not supported.

Current caveat: The device has so far not yet been integrated with the
virtual TPM available in the repository. It will require changes to
the virtual TPM spawned by the vTPM manager to offer an additional message
interface. The TIS interface itself then needs to have an additional
transport implemented. (see vTPMTransmit array).

The relevant specification for the device model can be found here:
https://www.trustedcomputinggroup.org/groups/pc_client/TCG_PCClientTPMSpecification_1-20_1-00_FINAL.pdf

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-27 19:15:48 +01:00
kaf24@localhost.localdomain 72f529665d [QEMU] Helper functions to interface with the xenstore and read device information from it.
- detect what types of devices a domain has or whether a domain has a
   device of a certain type
 - read the content of a variable related to a device, i.e.,
   hotplug-status
 - subscribe to changes of the hotplug status of a device for not
   having to poll the status

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-27 19:13:51 +01:00
kaf24@localhost.localdomain 25884d981b [XEND] Do not delete VNC password from configuration.
Fixes reboot of HVM guest when VNC authentication is in use.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-27 18:15:14 +01:00
kaf24@localhost.localdomain 9033715d28 [XEND] Do not delete VNC password from configuration.
Fixes reboot of HVM guest when VNC authentication is in use.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-27 18:15:14 +01:00
kaf24@localhost.localdomain 94c50cc02b [QEMU] ne2000: Stop memory access beyond buffer
As a program that runs in dom0 which serves users from guests,
the qemu drivers need to be vigilant to the input that comes
from the guests since they may be malicious.

As it is there are multiple ways to get ne2000 to read/write
memory beyond the 48K buffer that it has allocated for each
adapter.

This patch checks the addresses and prevents this from occuring.

The boundary is checked each time since it's changed for every
packet received while the other parameters are only changed
(by the guest) during setup.

Signed-off: Herbert Xu <herbert@gondor.apana.org.au>
2006-10-27 17:50:40 +01:00
Ian Campbell 1459957f98 [TOOLS] Uncompress and allocate memory for gzipped kernel and initrd images on
the fly. We cannot rely on the length contained in the gzip trailer to determine
the length of the decompressed data because images have been observed which have
trailing junk.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-10-26 16:56:16 +01:00
Tim Deegan 53132173d5 [HVM] Fix qemu's test for whether physcal addresses are RAM.
HVM guests have a memory hole below 4GB, so can't just check whether
addresses are < the amount of RAM allocated.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-10-26 15:08:20 +01:00
kfraser@localhost.localdomain d2db408106 Merge with xen-isa64-unstable.hg 2006-10-26 11:26:05 +01:00
Ewan Mellor 6c87dab0c4 Fix ramdisk Makefile so that downloading from xm-test.xensource.com actually
works.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2006-10-26 10:20:22 +01:00
awilliam@xenbuild.aw 6d58273da8 [LIBXC][IA64] fix build warning
With warnings becoming errors, this fixes the libxc build on ia64

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-10-25 15:29:00 -06:00
awilliam@xenbuild.aw 506aac287c merge with xen-unstable.hg 2006-10-25 12:12:01 -06:00
kfraser@localhost.localdomain 74c7bdae6e [IA64][HVM][QEMU] Add buffer IO mechanism for IA64/VTi domain.
Signed-off-by:Zhang xiantao <xiantao.zhang@intel.com>
2006-10-25 15:29:36 +01:00
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
kfraser@localhost.localdomain 54a5a3c6b9 [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
kfraser@localhost.localdomain 429764f760 [LIBXC] Add -Wmissing-prototypes to CFLAGS, fix warnings resulting from that.
Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
2006-10-25 15:25:13 +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
Ewan Mellor 9d8bfdc56a 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
kfraser@localhost.localdomain 67ce9409e1 merge 2006-10-25 11:51:23 +01:00
kfraser@localhost.localdomain fcf4e106d0 [HVM] Move ACPI timer to HV, which is the last platform timer in Qemu.
We found Vista polls ACPI timer very frequently (about 15 times
averagely) when handling timer (RTC @ 64HZ) interrupt routine. Though
the exact reason is known, it should be related to system time
adjustment. When it's in Qemu, the overhead is big. After moving,
Vista's idle overhead decreases dramatically from ~10% to 0.9%.=20

Another benefit is that Vista can only pass Performance rating with
this patch. The root cause is that ACPI timer in Qemu isn't
synchronous with other platform timer in HV, which results in Vista
complains "can't measure TSC frequency".

This patch changes vpit.h to vpt.h, for it not only has pit structure
in it, but other platform timer's structure. Another change is moving
ACPI timer and related address from acpi.h to ioreq.h, which can be shared
by HV and ACPI firmware.

Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
2006-10-25 11:50:54 +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
Tim Deegan 3df1dee7fb [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
Tim Deegan e481cc001d [HVM] Avoid buffer overrun in qemu-dm
The array offset in set_bits_in_row here comes from an otherwise un-checked
VNC client request.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-10-25 11:39:57 +01:00
kfraser@localhost.localdomain 9f29e9da09 [BLKTAP] Simplify linked-list insertion/deletion.
This should also avoid (bogus) compiler warnings, as reported
on IA64.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-25 10:56:50 +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 993552511c [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 980684c3ce [TOOLS][XENTOP] Update usage and manpage to include vbd options.
Also a couple of whitespace fixes.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2006-10-25 10:25:18 +01:00
awilliam@xenbuild.aw 3e081e983e merge with xen-unstable.hg 2006-10-24 11:21:48 -06:00
awilliam@xenbuild.aw c59ad25b3b [IA64] xenctx shows more registers for ia64
This patch adds more user registers to show them to xenctx for ia64.
Tested domU/domVTi on ia64.

Sample is the below.
# ./xenctx 1 0
 iip:               e000000000000810  
 ipsr:              00001012087a6010   b0:                a000000100068a70
 b6:                a00000010014ff60   b7:                e000000000000800
 cr_ifs:            800000000000050a   ar_unat:           0000000000000000
 ar_pfs:            8000000000000209   ar_rsc:            0000000000000008
 ar_rnat:           0000000000000000   ar_bspstore:       a000000100c19030
 ar_fpsr:           0009804c8a70433f   event_callback_ip: a000000100067a20
 pr:                000000000005aa85   loadrs:            0000000000780000
 iva:               a000000100008000   dcr:               0000000000007e04

 r1:  a0000001010369a0
 r2:  0000000000001000   r3:  8000000000000209
 r4:  0000000000000000   r5:  0000000000000000
 r6:  0000000000000000   r7:  0000000000000000
 r8:  a000000100068a70   r9:  0000000000000100
 r10: 0000000000000000   r11: 0000000000050ac5
 sp:  a000000100c1fd80   tp:  a000000100c18000
 r14: 0000000000000001   r15: 0000000000000000
 r16: fffffffffff04c18   r17: a000000100c1fdb0
 r18: a000000100c1fdb1   r19: a000000100c1fe90
 r20: a000000100c1fe10   r21: 0000000000000000
 r22: 0000000000000001   r23: 0000000000000000
 r24: a000000100e5a448   r25: a000000100c18f10
 r26: ffffffffffff0030   r27: 0000000000000000
 r28: 000000000000001d   r29: 0000000000000000
 r30: 0000000000000000   r31: 0000000000000000

 itr: P rid    va               pa            ps      ed pl ar a d ma    key
 [0]  1 000005 a000000100000000 0000004000000 1a  64M 1  2  3  1 1 0 WB  000000
 [1]  1 000007 e000000000000000 0000000000000 18  16M 1  2  3  1 1 0 WB  000000
 [2]  0 000000 0000000000000000 0000000000000 00      0  0  0  0 0 0 WB  000000
 [3]  0 000000 0000000000000000 0000000000000 00      0  0  0  0 0 0 WB  000000
 [4]  0 000000 0000000000000000 0000000000000 00      0  0  0  0 0 0 WB  000000
 [5]  0 000000 0000000000000000 0000000000000 00      0  0  0  0 0 0 WB  000000
 [6]  0 000000 0000000000000000 0000000000000 00      0  0  0  0 0 0 WB  000000
 [7]  0 000000 0000000000000000 0000000000000 00      0  0  0  0 0 0 WB  000000

 dtr: P rid    va               pa            ps      ed pl ar a d ma    key
 [0]  1 000005 a000000100000000 0000004000000 1a  64M 1  2  3  1 1 0 WB  000000
 [1]  1 000007 ffffffffffff0000 0000000010000 10  64K 1  2  3  1 1 0 WB  000000
 [2]  1 000007 e000000000000000 0000000000000 18  16M 1  2  3  1 1 0 WB  000000
 [3]  0 000000 0000000000000000 0000000000000 00      0  0  0  0 0 0 WB  000000
 [4]  0 000000 0000000000000000 0000000000000 00      0  0  0  0 0 0 WB  000000
 [5]  0 000000 0000000000000000 0000000000000 00      0  0  0  0 0 0 WB  000000
 [6]  0 000000 0000000000000000 0000000000000 00      0  0  0  0 0 0 WB  000000
 [7]  0 000000 0000000000000000 0000000000000 00      0  0  0  0 0 0 WB  000000

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-10-24 10:08:30 -06:00
Ewan Mellor 86ba178e4f Add x86_64 to the supported architectures since otherwise the tests
don't run.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-24 16:46:02 +01:00
Ewan Mellor 9a4180837b Fix Memory assumptions in the create tests.
Use the architecture specified idea of minimum memory.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2006-10-24 14:52:20 +01:00
Christian Limpach 3cce2a0393 [qemu patches] Update patches upto changeset 11870:29b02d929b7e.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-10-24 14:48:06 +01:00
Ewan Mellor 64dd1b77ae This puts two small fixes in the xm-test suite:
- it turns off verbose mode of the ACM module
- copies the test policy to the policies directory only if the directory
has been created

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-24 14:47:41 +01:00
Ewan Mellor d2e25ca823 Added multiarch support to xm-test. Bumped version number to xm-test 1.0.
New README for public ramdisks.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-24 14:47:17 +01:00
Ewan Mellor 8467310110 Update buildroot configs to match snapshot downloaded for public ramdisks.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-24 14:46:23 +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
Ewan Mellor c4549d574a Default to appending to "extra" in XenConfig.
PowerPC needs console information from the command line.  Resetting the whole
command line causes false failures.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2006-10-23 10:17:10 +01:00
Ewan Mellor 1cbb1ec85e Add ability to inspect messages from domain for arbitrary strings.
Used on PowerPC to FAIL(), if the guest domain hits a BUG() and enters XMON.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2006-10-23 10:16:20 +01:00