Commit Graph
4651 Commits
Author SHA1 Message Date
kaf24@localhost.localdomain 6d675a4ad8 [XEN] Emulate MUL/DIV. Tweak test suite build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-14 12:03:31 +00:00
kaf24@localhost.localdomain ab5c6b8f11 [TESTS] Fix native jump to 1MB absolute address in emulator test.
Fix typo in emulator comment.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-13 21:36:31 +00:00
kfraser@localhost.localdomain c69ab9d431 Extend emulator testing.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-12 17:16:45 +00:00
kfraser@localhost.localdomain 8c338f84ea [LINUX] ipv6: Disable addrconf on Xen bridge device
The ipv6-no-autoconf patch didn't disable IPv6 addrconf completely.
This means that the Xen bridge device still interfered with normal
IPv6 operation by engaging the IPv6 network with a bogus MAC address.

For details please refer to
        https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=200360

The following patch completely disables IPv6 on the Xen bridge device
by temporarily setting the MTU to a value less than the minimum
allowed for IPv6.

Upstream will provide a cleaner way to disable IPv6 addrconf in
future, possibly in the form of a proc sysctl.  Of course if the Xen
loopback device is removed it would render this change unnecessary.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2007-01-12 15:23:07 +00:00
kfraser@localhost.localdomain f48232576f Fix trivial bug in xentop main loop.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-12 14:46:21 +00:00
kfraser@localhost.localdomain 8c8d60ad1a Add vfb config examples.
From: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-12 14:43:50 +00:00
kfraser@localhost.localdomain ce9e6668ac Parse Solaris VTOCs in pygrub.
Signed-off-by: John Levon <john.levon@sun.com>
2007-01-12 14:42:07 +00:00
kfraser@localhost.localdomain 481f5a7ac0 Fix xc_ptrace() for PAE.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-01-12 14:33:36 +00:00
kfraser@localhost.localdomain 54ca5bdead Fix udev check.
Quiesce 'which' invocation, and allow expanding variables in error
message.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-01-12 14:32:41 +00:00
Ewan Mellor baacea8058 This patch does the following:
- renames the XenManagedDomain.py file to XenAPIDomain.py, since this
name better reflects its functionality/purpose
- adds domain tracking to the XenAPIDomain class so that xend-managed
domains can be deleted in an 'atexit' handler upon test case termination
- adds one basic xapi-related test which is part of the grouptests
'xapi'
- refactors the vtpm-related test using xen-api and adds it to the
grouptest 'xapi'
- adds documentation to the README for how to configure xm and xend to
use XML-RPC or Xen-API for communication

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-01-11 19:00:35 +00:00
Ewan Mellor aeb7c09a66 I added a parameter '-md' to 'runtest.sh' for running the xm test suite
in a mode where all created domains a created as xend-managed domains.

This patch also fixes a problem related to calling 'xm domid' on a
currently suspended domain if that domain is a managed domain. In that
case a 'None' is returned by Xend, which I default to '-1'.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-01-11 18:56:59 +00:00
Ewan Mellor 2b1f4094a6 Source a file called 'vtpm-impl.alt' if it exists.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-01-11 18:55:18 +00:00
Alastair Tse b156729779 [XEND] Device update should handle SXP without 'device' as first
param.

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-11 17:03:11 +00:00
Alastair Tse 85bc6f4326 [XEND] Fix broken block-configure.
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-11 16:36:46 +00:00
john.levon@sun.com 5c8a39cf80 Use strstr() to look for "bimodal" string in ELF notes, to allow guests to use
"yes,bimodal", so they are correctly identified as PAE on older hypervisors.

Signed-off-by: John Levon <john.levon@sun.com>
2007-01-08 12:54:41 -08:00
kfraser@localhost.localdomain 9bec2359e6 [HVM] Ignore evtchn_upcall_mask and initialise to zero.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-09 17:43:13 +00:00
Ewan Mellor e3e7d81e41 Update sched-credit test to match new format from xm sched-credit.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-09 17:38:48 +00:00
Ewan Mellor 00e5248813 This simple patch allows domains created in the xm-test suite to be
created as managed domains using either a parameter to the
XenTestDomain() constructor or by setting the environment variable
XM_MANAGED_DOMAINS and running the tests with it.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-01-09 17:25:28 +00:00
Ewan Mellor e4658203b4 Add needed modules to the ramdisk if the modules exist on the current system.
(i.e. the current system contains a modularized kernel)

Signed-off-by: Lynn Bendixsen <lbendixs@novell.com>
2007-01-09 17:23:22 +00:00
kfraser@localhost.localdomain e0fd6020bc [TEST] Fix x86_emulate tests on x86/64 host.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-09 17:11:46 +00:00
kfraser@localhost.localdomain c9d971bec6 [XEN] Emulate DAA/DAS the hard way. We cannot execute the instruction
directly within the emulator as it is unavailable if the emulator runs
in x86/64 mode.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-09 16:59:52 +00:00
Tim Deegan db442369b3 When booting via xm, only run the bootloader if it's in non-interactive mode:
otherwise we lose the user's named kernel and try to bootload the temporary
file pygrub returned.

Signed-off-by: John Levon <john.levon@sun.com>
2007-01-09 13:24:45 +00:00
Tim Deegan 38d6397a83 Fix xm create direct call to XendBootloader
Signed-off-by: John Levon <john.levon@sun.com>
2007-01-09 13:24:44 +00:00
Tim Deegan eb568d6624 Fix bootloader = "pygrub" via 'xm create'.
Signed-off-by: John Levon <john.levon@sun.com>
2007-01-09 13:24:43 +00:00
Tim Deegan 662e32f5cc Fix auto-bootloading via 'xm create'.
Signed-off-by: John Levon <john.levon@sun.com>
2007-01-09 13:24:42 +00:00
Tim Deegan 9c9e43e5f0 Sniff for Solaris if not specified. This allows Solaris domU's to automatically
boot correctly without fiddling with domain configs.

Signed-off-by: John Levon <john.levon@sun.com>
2007-01-09 13:24:41 +00:00
Tim Deegan 8c119d2ee4 Pass in kernel/ramdisk settings to pygrub; if specified, don't try to use
grub.conf; this allows hands-off bootloading in the absence of a grub.conf.
It's also useful for specifying temporary changes etc.

Signed-off-by: John Levon <john.levon@sun.com>
2007-01-09 13:24:40 +00:00
Tim Deegan b624e752bd Fix for pygrub path on Solaris.
Signed-off-by: John Levon <john.levon@sun.com>
2007-01-09 13:24:40 +00:00
Ewan Mellor 2166b8b539 Do not call refreshShutdown in XendDomain for VM-list operations, as this
is unnecessary and expensive.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-09 11:52:15 +00:00
kfraser@localhost.localdomain ddef8e1678 [XEN] Tweak x86 emulator interface.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-08 18:39:29 +00:00
Tim Deegan ba0f039582 [HVM] Add expansion-ROM boot support again.
Boot info now stored at 0x9ff00; registers saved in HDD load code.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-01-08 14:24:30 +00:00
Emmanuel Ackaouy e975e81c9b [TOOLS] Improve information displayed by the xm sched-credit command.
The improvement is as follows.
 1. The display form is changed like the xm sched-sedf command.
 2. When -d option is omitted, information on all domains is
    displayed.

Examples:
 # xm sched-credit -d vm1
 Name                              ID Weight Cap
 vm1                                1    512  100
 # xm sched-credit
 Name                              ID Weight Cap
 Domain-0                           0    256    0
 vm1                                1    512  100
 vm2                                2    512   50

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-01-06 11:17:52 +00:00
Alastair Tse 8843b4291c Add support to list VDIs and SRs in xapi.py
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-05 17:27:30 +00:00
Emmanuel Ackaouy b1cf3deb81 Support for save and restore of compatibility guests
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
2007-01-05 17:34:43 +00:00
Emmanuel Ackaouy 8f2348c03c Introduce _DOMF_compat and infrastructure as well as several conditionals
dealing with operations that need to distinguish between native and
compatibility mode guests.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-01-05 17:32:00 +00:00
Alastair Tse 1f2d77695e [XEND] Fix some Xen API error declarations.
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-05 17:24:55 +00:00
Tim Deegan 5c6059a43d [HVM] Sync the base memory reported by ROMBIOS with the e820 map.
This stops Etherboot relocating itself onto the SMBIOS tables.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-01-05 16:28:42 +00:00
Ewan Mellor 9bff7e28c6 Catch exception from dumpCore when inside refreshShutdown.
Thanks to John Levon <levon@movementarian.org> for diagnosis and suggesting the
fix.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-05 16:11:49 +00:00
Ewan Mellor 8787be2922 Record the last shutdown reason for each VM in the store.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-05 15:38:01 +00:00
Ewan Mellor 79a9f1f484 Rename the 3DNOW and 3DNOWEXT API constants to THREEDNOW, so that they may be
used directly as identifiers in bindings.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-05 15:34:47 +00:00
Ewan Mellor e821b95d39 Fix bindings for PIF_set_MAC and PIF.set_MTU.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-05 12:33:23 +00:00
Ewan Mellor 972656054c Fix missing import, and a small tidyup.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-05 12:32:40 +00:00
Ewan Mellor 957eed7252 Remove broken and unused set_u32.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-05 12:31:49 +00:00
Ewan Mellor 800c66b264 Treat <value> tags with no type tag inside as if they were strings (as required
by the XML-RPC spec).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-05 12:30:32 +00:00
Ewan Mellor d913c891b7 Added permissiveness for floats.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-05 12:29:26 +00:00
kfraser@localhost.localdomain c082fcbec5 Xen 3.0.3 pre-pended all configuration prior to the user-specified
args in the boot cmdline. Restore this behaviour to fix
incompatabilities with fragile parsers in some domU kernels.

Signed-off-by: John Levon <john.levon@sun.com>
2007-01-05 11:03:16 +00:00
kfraser@localhost.localdomain 71314211e9 Fix xend stop if we're run directly instead of via the caretaker parent.
Signed-off-by: John Levon <john.levon@sun.com>
2007-01-05 10:58:48 +00:00
kfraser@localhost.localdomain 7a0e89cd5b [XEN] Add LEA to the Xen x86 emulator. Rename x86_emulate_memop() to
x86_emulate(), as the emulator now does more than emulation of
'special' memory accesses.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-05 10:55:55 +00:00
Ian Campbell 47fde3df04 [TOOLS] Fix typo in XenDomainInfo:device_configure.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-01-05 10:39:45 +00:00
Alastair Tse ab452d0667 [XEND] Fix block-list for dom0 in xm.
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-04 16:42:44 +00:00