Commit Graph
4914 Commits
Author SHA1 Message Date
Ewan Mellor c2592685ff Added Console.other_config to the docs (Xend already has this).
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-20 19:38:24 +00:00
Ewan Mellor cdbec983af Rename Console.uri to location. Xend already uses the latter.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-20 19:23:28 +00:00
Ewan Mellor ada588411f Remove VM.VCPUs_number and VM.VCPUs_utilisation as these have moved onto the
VM_metrics class.  Remove VM_metrics.VM -- the backreference is unnecessary
and awkward to deal with.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-20 16:30:24 +00:00
Ewan Mellor d5ae26ac7a Replace the X_HANDLE_INVALID error codes with a single HANDLE_INVALID that
names the class as a parameter.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-20 15:24:01 +00:00
Vincent Hanquez c7a30b4b8b add /sbin to the $PATH and use ldconfig -p instead of ldconfig -v 2007-02-20 14:12:12 +00:00
Vincent Hanquez d8b291a0b6 add /sbin to the $PATH for debian's ldconfig.
use ldconfig -p instead of -v that doesn't require root privilege to work.
2007-02-20 12:22:40 +00:00
john.levon@sun.com 90a79f7c6f Xenconsoled should ignore spurious watch event. Otherwise, it can rebind to the same evtchn of a dying domU during suspending and cause below error message:
(XEN) event_channel.c:177:d0 EVTCHNOP failure: domain 0, error -22, line 177
2007-02-19 20:44:42 -08:00
john.levon@sun.com ec08a094b2 Filesystem implementations may need optional arguments in terms of
what to mount. Add an options string to the libfsimage API.

Signed-off-by: John Levon <john.levon@sun.com>
2007-02-19 20:44:42 -08:00
kfraser@localhost.localdomain 2c8d71cdf3 hvm, vtpm: Fix wait for an outstanding response.
Post the interrupt upon reception of the response and adapt the
state machine.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-02-19 15:51:46 +00:00
Ian Campbell 6f1113b5c5 [LIBELF] Prefer PT_NOTE segments to SHT_NOTE sections for ELF notes.
It's always an error to try to use sections on an executable; the
segments in the phdr are definitive.

Unfortunately we cannot drop SHT_NOTE support completely due to a
binutils bug which causes kernels to have the offset field of the
PT_NOTE phdr set to zero:

	http://sourceware.org/bugzilla/show_bug.cgi?id=594

This bug is present in binutils 2.17 although some distros have
backported the fix.

Therefore we simply prefer a PT_NOTE segment if we find one otherwise
we still use the SHT_NOTE section (and then the old __xen_guest
section).

Based on a patch from Jeremy Fitzhardinge.

Also added XEN_ELFNOTE_HV_START_LOW to readnotes.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-02-19 12:21:41 +00:00
kfraser@localhost.localdomain 0d1df40b65 Fix 64-bit build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-17 09:59:00 +00:00
Jake Wires b3fb1294fa [TAPDISK] add tapdisk support for image chaining
Enables tapdisk to chain an arbitrary number of VDIs, propagating reads of
holes in children to their parent images.  Introduces two new functions to the
tapdisk interface to facilitate this.  Modifies the QCoW plugin to take
advantage of these changes, thus providing support for arbitrarily long chains
of QCoW image types.
2007-02-16 20:31:27 -08:00
kfraser@localhost.localdomain 2d420d93a6 hvm: Processor Objects require unique IDs.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-16 15:50:02 +00:00
kfraser@localhost.localdomain 938d51e10e hvm: Dynamically generate the correct number of ACPI Processor Objects
in an SSDT.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-16 15:33:51 +00:00
kfraser@localhost.localdomain fd564aa780 Fix vncdisplay config option for HVM guests.
Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com>
2007-02-16 09:57:25 +00:00
kfraser@localhost.localdomain 8d0689ddbe hvm: Fix acpi processor id in MADT LAPIC entries.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-15 19:03:09 +00:00
kfraser@localhost.localdomain 4008fb3e4d Remove unnecessary check from HVM builder.
Thanks to Guy Zana for spotting this.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-15 14:38:08 +00:00
kfraser@localhost.localdomain cfafd88d92 Lift physical address restriction in save/restore code.
Bump this to 44 bits for x86-32 and 52 bits for x86-64.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-02-15 14:28:01 +00:00
kfraser@localhost.localdomain 5c4256ca47 [ACM] Update the xensec_ezpolicy ACM policy generation tool so
that it works with wxPython under Python 2.5.
Signed-off by: Reiner Sailer <sailer@us.ibm.com>
2007-02-15 14:20:05 +00:00
kfraser@localhost.localdomain a917e6d478 Disable GCC stack protector for ROMBIOS.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2007-02-15 14:17:00 +00:00
kfraser@localhost.localdomain 86531075d4 [VTPM] Add a missing initialization of a state variable in the TIS
device model so that the first response received after a resume is not
aborted.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-02-15 13:36:58 +00:00
kfraser@localhost.localdomain a5c9d9c243 libxc: Fix xc_vcpu_{set,get}_affinity (Xen-bugzilla No.900).
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=900

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-02-15 13:36:00 +00:00
kfraser@localhost.localdomain af9049b580 Remove old elf-parsing code from tools and from Xen.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-15 10:25:39 +00:00
Wim Colgate c25f8d6b93 Protect self.domid from being empty 2007-02-14 12:18:32 -08:00
kfraser@localhost.localdomain 6422b05e11 Export PRI_xen_pfn rather than PRIpfn: less polluting of namespace.
libxc continues to use PRIpfn internally, #defined to PRI_xen_pfn.

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-14 19:17:41 +00:00
kfraser@localhost.localdomain b3f09a8a4f Merge with xenppc-unstable.hg 2007-02-14 19:01:35 +00:00
Hollis Blanchard f0f04a6035 [LIBELF] Define PRIpfn next to xen_pfn_t.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-02-09 14:43:22 -06:00
Hollis Blanchard 9fb65916be [POWERPC][XEN] Opt out of new libxc domain builder.
PowerPC needs more flexibility than the new framework allows.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-02-09 14:43:21 -06:00
Tim Deegan e0bc4531df [HVM] Save/restore: disentangle max_pfn from nr_pages.
These have been used interchangeably, which is OK for PV domains but
not for HVM.  This fixes an over-allocation by 256MB when restoring
HVM guests that have more than 4GB of RAM.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-02-09 10:48:41 +00:00
kfraser@localhost.localdomain b15e0dd802 Fix non-x86 build. 2007-02-08 21:36:35 +00:00
kfraser@localhost.localdomain c68414307b Fix xen-detect build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-08 17:07:36 +00:00
Keir Fraser d4a9cc1513 Add example xen-detect.c code for detecting application execution in
Xen PV or HVM contexts, using the Xen CPUID extensions.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-08 17:04:26 +00:00
Ewan Mellor 1f22680150 Fix localtime setting for PV domains.
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
2007-02-08 16:52:05 +00:00
Tim Deegan de602931ef [HVM] Save/restore: don't try to set the console ring MFN
in a HVM restore.  In particular, don't print an uninitialized stack
variable, which causes XMLRPC exceptions in xend.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-02-08 15:00:33 +00:00
Hollis Blanchard dd887f1615 [POWERPC][XEN] Fix mismerge. 2007-02-07 18:53:33 -06:00
wim@xen-wim.site 51efffe712 [blktap] Allow HVM booting from blktap device(s)
Signed-off-by: wim colgate <wim@xensource.com>
2007-02-07 16:53:01 -08:00
Tim Deegan 2b30444fe2 [HVM] Save/restore: don't try to save the MMIO memory-hole at 4GB.
Also remove two integer arrays that were set to a[i] == i.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-02-07 17:29:52 +00:00
Tim Deegan 431be892ae [XEND] Open save/restore files with O_LARGEFILE if possible
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-02-07 17:29:21 +00:00
kfraser@localhost.localdomain a8d5290171 Improve hotplug script error reporting via xenstore.
Use this to detect and report up-front in vif-bridge script whether
the bridge device exists or not.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2007-02-07 16:22:55 +00:00
kfraser@localhost.localdomain e7f13aefbd Dom0 VNC server should not drop any of teh 8 supported mouse button
event types.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2007-02-07 16:20:28 +00:00
kfraser@localhost.localdomain b64ef24e2f hvm: Add PCI subsystem ID to emulated devices.
This patch adds the PCI Subsystem ID 5853:0001 to the virtual
devices emulated by qemu (ide, nic, vga).

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
2007-02-07 16:08:47 +00:00
Tim Deegan 01d0fc79ac [HVM] Save/restore: dynamically calculate the size of the save buffer
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-02-07 12:41:46 +00:00
Tim Deegan b364d04f1d Revert 13805: losetup -r is not portable
which breaks CD support on Debian Sarge, FC4, probably others.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-02-07 12:25:18 +00:00
kfraser@localhost.localdomain bec98603f5 Fix up xentrace record extraction in xentrace_format for 64-bit
architectures.
Signed-off-by: Thomas Friebel <thomas.friebel@amd.com>
2007-02-06 23:10:05 +00:00
kfraser@localhost.localdomain 09a4bf86cf [TPM] Set tcpa calls in the rombios and other fixes.
This patch places some tcpa calls into the rombios that had previously
not applied anymore or were not set.
Force the reads from MMIO memory locations that the compiler otherwise
optimizes away (-O2) if there was an immediate write to the same
memory location before.
Use #define'd constants wherever possible.
Fix all remaining compiler warnings.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-02-06 23:01:35 +00:00
kfraser@localhost.localdomain 9c3844a97e [TPM] TIS dm suspend code fix
This fixes a bug in the TPM TIS device model's state suspend code and
adds some casts to variables to avoid compiler warnings.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-02-06 22:59:35 +00:00
Ewan Mellor 0ea3c30b5b Fix xm sched-credit when given an invalid domain name.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-02-06 16:05:29 +00:00
Ewan Mellor 19bcd321c5 Fix XendLogging to work on Python 2.4.0 and 2.4.1 (the logging library interface
changed with 2.4.2, not 2.4.0).

Signed-off-by: Qing He <qing.he@intel.com>
2007-02-06 15:37:11 +00:00
Ewan Mellor 85a6129e55 Pass the -r flag to losetup for read-only devices.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2007-02-06 15:35:18 +00:00
Brendan Cully 350318c598 Make sure OptVals.quiet is always present (fixes xm shutdown -w).
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
2007-01-31 11:05:36 -08:00