Commit Graph
9221 Commits
Author SHA1 Message Date
emellor@leeni.uk.xensource.com a04a7ff5d7 xm top was listed twice in the help message -- remove it from the Host Commands
section, leaving it in the Domain Commands section.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-13 11:10:27 +01:00
kaf24@firebug.cl.cam.ac.uk 8a61bf3f2f Fix broken assertion in SEDF scheduler.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-13 10:49:45 +01:00
kaf24@firebug.cl.cam.ac.uk 1e0419bfee No need to pin/unpin intermediate pagetables in x86/64 xenlinux.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-12 19:37:38 +01:00
kaf24@firebug.cl.cam.ac.uk f48224b208 Ignore pinning of other than root page directories. Disallow
creation of pagetables with 'va_unknown' page-directory backptrs.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-12 19:37:00 +01:00
kaf24@firebug.cl.cam.ac.uk d8864ab7b3 Add missing include of a header file to avoid a compile warning.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-12 10:03:33 +01:00
kaf24@firebug.cl.cam.ac.uk b4adf19334 pciback sends evtchn notification to pcifront when its request is processed.
This may in future allow pcifront to avoid spin-waiting.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-12 09:52:19 +01:00
emellor@leeni.uk.xensource.com a6ecc050ac Merged. 2006-03-11 15:40:33 +01:00
emellor@leeni.uk.xensource.com b8a074a337 Remove blank line -- this was causing all the tests to be run twice, because
the blank line is interpreted as running make check in tests/.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-11 15:40:26 +01:00
emellor@leeni.uk.xensource.com fa5d293962 Merged. 2006-03-11 11:53:22 +01:00
emellor@leeni.uk.xensource.com 47c5f83bbf Define TESTS to be the .test files, not the .py files, otherwise the chmod +x
doesn't get called.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-11 11:52:40 +01:00
root@dyn9047022116.beaverton.ibm.com 8f846225c2 HG Patch
Add feature to layer xm-test tests, grouping of tests by casename and
execution of tests by user specified lists.

Signed-off-by: Woody Marvel <marvel@us.ibm.com>
2006-03-11 11:46:38 +01:00
emellor@leeni.uk.xensource.com 99aa5b9d69 - Reworked to use your match_domid suggestion and filtering
- Aligned output and help to fit within 80 char limit
- User now deals in milliseconds instead of nanoseconds
- Fixed some missing parens in tests (I had pushed stale versions)
- Updated tests to deal with period/slice/latency in ms

root@bebop:~/xm-test.sedf/tests/sedf # xm sched-sedf
Name                              ID Period(ms) Slice(ms) Lat(ms) Extra Weight
Domain-0                           0      20.0      15.0     0.0      1      0

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
2006-03-11 11:45:10 +01:00
emellor@leeni.uk.xensource.com ac66d2a120 Merged. 2006-03-11 11:20:32 +01:00
emellor@leeni.uk.xensource.com 9956421b1d Trivial fix to bind implementation.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-11 11:19:11 +01:00
kaf24@firebug.cl.cam.ac.uk 42aaf2e8b4 Changeset 9134 introduced a caching mechanism when xenbus_switch_state
is invoked. This causes a problem in the resume part of a suspend-resume
cycle due to the backend not seeing that a state in the frontend was
set. This patch fixes this in the TPM frontend driver.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-03-11 10:49:28 +01:00
kaf24@firebug.cl.cam.ac.uk 228c2668d1 Currently if one tries to execute VMX instruction from inside the
VMX guest, the Xen hyper visor has no handling of it resulting in a
bug(). This patch handles such VMX instructions from the guest returning
invalid opcode to the guest. Also the macro VMX_INVALID_ERROR_CODE is
renamed to the more meaningful VMX_DELIVER_NO_ERROR_CODE.

Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-Off-By: Jun Nakajima <jun.nakajima@intel.com>=20
2006-03-11 10:47:55 +01:00
kaf24@firebug.cl.cam.ac.uk 996548fdac Enable the ejection of the physical cdrom tray, when user enters
"eject cdrom" in the control console of a VMX guest.

Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
2006-03-11 10:44:48 +01:00
kaf24@firebug.cl.cam.ac.uk 945758df89 More build config changes:
- Build -O2 rather than -O3
 - Build with -Wstrict-prototypes
 - Move target-specific generic compiler switches to Config.mk

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-10 17:32:04 +01:00
kaf24@firebug.cl.cam.ac.uk 27d7304ed7 Replace memory_op subcommands reserved_phys_area and map_shared_info
with new subcommand add_to_physmap.

This changes the domain0 tools interface, but only when building
shadow-translate-mode guests.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-10 16:00:36 +01:00
cl349@firebug.cl.cam.ac.uk 16c73f7f6c Map grant table pages in vmalloc kernel address space instead of fixmap.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-03-10 13:27:24 +00:00
emellor@leeni.uk.xensource.com 4c60bf6232 Minor fix to error message.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-10 11:47:24 +01:00
emellor@leeni.uk.xensource.com c785b4684e Simplify the interface into httpserver and UnixHttpServer -- the root and
interface parameters are always used, so there's no need for them to be named
parameters with defaults.

Remove unused httpserver.getRoot and getPort, and simplify the main request
loop.  This means that socket errors do not have to be squelched.

Coalesce the two identical bind methods, one in UnixHttpServer, one in
UnixListener.  Fix this bind method to set the permissions on the socket
explicitly.  This closes a security hole, and fixes the intermittent failure
of xm-test/06_list_nonroot.test.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-10 11:44:03 +01:00
emellor@leeni.uk.xensource.com 95c4e70768 Untangle XendRoot and XendLogging by having XendLogging check the global
params.XEND_DEBUG value itself.  This removes the need for addLogStderr and
removeLogStderr.  Remove the maxBytes and backupCount parameters to init, as
they are unused and we only use the hardcoded values anyway.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-10 11:38:15 +01:00
emellor@leeni.uk.xensource.com e3667a70ba The attached patch cleans up the parsing of /proc/xen/balloon that
occurs in xend.  Currently, the parsing is hard-coded; it expects that
the desired number is on the first line.  My patch is more robust; it
lets values be retrieved by a label.  It also exposes a few functions to
retrieve the current allocation and the target allocation.

By abstracting this a little better, I'll be able to address a few
other issues in subsequent patches.  Mostly, this allows for better
error checking and guidance for the user.  For example, by exposing
get_dom0_current_alloc(), we can (elsewhere, in a later patch) calculate
how large of a VM could potentially be started.  This is useful, as it
lets simple VM-creation GUIs guide the user towards reasonable memory
values for new VMs.

Signed-off-by:  Charles Coffing <ccoffing@novell.com>
2006-03-10 11:05:59 +01:00
stekloff@elm3b216.beaverton.ibm.com 6527a35765 Fix test 11_create_concurrent_ps.py for HVM domains. HVM can only
load as many disk.img domains as there are loop devices. Added a
small function to get number of loop devices to be used as a max
for number of concurrent domains the test launches.

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
2006-03-10 10:54:25 +01:00
kaf24@firebug.cl.cam.ac.uk 33502d3bde Clean the pending_intr processing sequence and fix some potential bugs.
Signed-off-by: Eddie Dong <eddie.dong@intel.com>
Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
2006-03-10 09:12:22 +01:00
kaf24@firebug.cl.cam.ac.uk aa3ab8bcd7 Fix the gdbserver-xen for VMX guests.
Signed-Off-By:  Nitin A Kamble <nitin.a.kamble@intel.com>
2006-03-10 09:11:33 +01:00
emellor@leeni.uk.xensource.com 1687b5932a This patch
-Displays current parameters for running domains ala xm list
-Allow users to set one or more parameters without having to
 provide values for parameters they do not wish to change
-Adds additional testing of sched-sedf via new xm-test testcases.

With this patch applied, test 02_sedf_period_lower_neg.py exposes a
bug.  I'll follow up this email with a patch for the bug.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
2006-03-10 01:08:59 +01:00
stekloff@localhost.localdomain 0552b3845c Adding hping TCP and UDP tests. They hping a number of packets to
local interface, dom0, and from domU to domU. HVM support included.

Signed-off-by: Jim Dykman <dykman@us.ibm.com>
Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
2006-03-10 00:49:54 +01:00
stekloff@elm3b216.beaverton.ibm.com 872f58b6fd Fix xmtest 13_create_multinic_pos.py to work with HVM.
Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
2006-03-10 00:49:08 +01:00
kaf24@firebug.cl.cam.ac.uk e7ccd01faf Fix a few small issues in xc_domain_dumpcore:
xc_domain_getinfo returns information about a domain, but not
necessarily the one you asked about.  Add check for this.

max_vcpu_id in xc_domain_getinfo is really an ID, not a count, so
make the loop include the last VCPU

Signed-off-by: Ben Thomas <ben@virtualiron.com>
2006-03-09 23:07:27 +01:00
kaf24@firebug.cl.cam.ac.uk d27fbb0061 Move 'debug' build option into the outermost Config.mk file.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-09 22:31:45 +01:00
kaf24@firebug.cl.cam.ac.uk 326450f67e Clean up the usage of CFLAGS. This is nice for packagers, who would
like to control the base compilation flags from a central place.

Signed-off-by: Charles Coffing <ccoffing@novell.com>
2006-03-09 21:17:45 +01:00
cl349@firebug.cl.cam.ac.uk e2b8c75165 Change the location of the shared_info page for auto_translated_physmap guests.
Instead of putting the page outside of the guests pseudo-physical address
space, we put it next to the other pages filled by the domain builder,
such that the page is already mapped in the initial pagetables and/or a
lowmem-type memory mapping.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-03-09 16:24:57 +00:00
kaf24@firebug.cl.cam.ac.uk fd5de61bb8 Build MTRR support into privileged xenlinux x86/64.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-09 16:03:23 +01:00
kaf24@firebug.cl.cam.ac.uk 36ac275213 Apply proper locking in xenlinux mtrr interface functions.
From: Jan Beulich
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-09 15:59:53 +01:00
kaf24@firebug.cl.cam.ac.uk 44fb8b7296 64 bit pagetable builder added to mm.c
Signed-off-by: Aravindh Puthiyaparambil 
<aravindh.puthiyaparambil@unisys.com>
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
2006-03-09 15:57:32 +01:00
kaf24@firebug.cl.cam.ac.uk 0026c91c77 Explain disadvantages of building pciback as a module in Kconfig help.
Fix a module-loading bug in pciback.

From: Jan Beulich
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-09 15:56:12 +01:00
kaf24@firebug.cl.cam.ac.uk f736587680 Make xc_linux_build() load the initrd page-by-page rather
than all in one go, to conserve memory. This always has been
the behaviour, but it was changed by a changeset earlier today.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-09 15:16:35 +01:00
kaf24@firebug.cl.cam.ac.uk d2017c7b16 Clean up internal libxc functions to take 'const char *'
parameters where possible, to avoid unnecessary casts.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-09 14:35:36 +01:00
kaf24@firebug.cl.cam.ac.uk 2be317cd91 Add a parallel set of APIs to the domain builders to allow images and
ramdisks to be passed via buffer, rather than via file.  This allows
usage of the underlying domain building routines in "file-challenged"
enviroments.

Specifically, xc_linux_build_mem is the buffer oriented version of the
file-oriented xc_linux_build.  Likewise, xc_hvm_build_mem is the
buffer oriented analog of the file based xc_hvm_build.

Signed-off-by: Ben Thomas (bthomas@virtualiron.com)
2006-03-09 13:00:38 +01:00
kaf24@firebug.cl.cam.ac.uk 2c727b6f3f Adds a new device interface to xend/xm similar to the one for ioports
where an interrupt (irq) can be specified in the configuration file
and permission to bind to that interrupt will be given to a driver
domain.

This functionality could be used when trying to give a legacy device
to a driver domain. For example, by specifying the i/o ports and the
interrupt of your serial controller, you can use this patch to put a
serial port in a driver domain. This was discussed briefly on
xen-users in regards to using an external modem in a domU:

http://article.gmane.org/gmane.comp.emulators.xen.devel/20573
http://article.gmane.org/gmane.comp.emulators.xen.user/8754

Also adds the ability to specify irqs on the xm command-line when
creating a domain (the following examples show a serial port being
given to a domU):

xm create serial-dd irq=4 ioports=03f8-03ff

or in a flat config-file:

irq = [4]
ioports = ['03f8-03ff']

or in an SXP config file:

(device (irq (irq 4)))
(device (ioports (from '0x03f8')(to '0x03ff')))

The ioports functionality is already in xen, but this patch also fixes a
bug with it that I assume cropped up due to changes in xend since it was
submitted ('dev' doesn't exist in iopif.py, returning 'None' seems to be
the solution).

Also adds some in-line documentation in tools/python/xen/xm/create.py
to be more accurate regarding adding pci devices and i/o ports on the
command-line.

Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
2006-03-09 11:20:31 +01:00
kaf24@firebug.cl.cam.ac.uk e30a1abc93 According to the April 2005 Intel Virtualization Technology Specification
(Appendix A1) indicates that there are 44 potential exit reason codes.
Based upon this, increase the size of the PERFCOUNTER_ARRAY for vmexits.

Signed-off-by: Ben Thomas (bthomas@virtualiron.com)
2006-03-09 11:17:29 +01:00
kaf24@firebug.cl.cam.ac.uk 6a883b0d6a Fix order-of-evaluation issue in xc_domain_dumpcore. The intent is
to move blocks of memory 4096 pages at a time, and a buffer is
allocated for this.  Unfortunately, the #define is without
parentheses and %/* are the same order and evaluated left to right.
Result: very big buffer being used 4 pages at a time.

Signed-off-by: Ben Thomas (bthomas@virtualiron.com)
2006-03-09 11:16:46 +01:00
kaf24@firebug.cl.cam.ac.uk 97e26d34f2 Clean up the interface for sharing xen-heap pages with guests.
Map trace buffer pages as DOMID_XEN pages.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-09 00:45:40 +01:00
kaf24@firebug.cl.cam.ac.uk 42b43312e8 Add missing include in hypercalls header file.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-09 00:04:43 +01:00
kaf24@firebug.cl.cam.ac.uk db4d5fc53b Allow pciback to be built as a module.
From: Jan Beulich
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-08 18:41:12 +01:00
kaf24@firebug.cl.cam.ac.uk b1d3128dd8 Allow pciback to be placed into a permissive mode of operation whereby it allows
PCI config writes to succeed by default. Currently this is the only way to allow
control of a device that has device-specific registers in the config space from
a driver domain.

echo Y >/sys/module/pciback/parameters/permissive

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-08 17:32:36 +01:00
kaf24@firebug.cl.cam.ac.uk 5ed8e29dde Trivial fix for pcifront bringup.
From: Jan Beulich
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-08 15:51:28 +01:00
kaf24@firebug.cl.cam.ac.uk 9e2aaf8be8 Fix call to set_timer in vlapic.c. Should not set timer.expires
outside set_timer, since set_timer will do that for the caller.

Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-03-08 15:49:04 +01:00