Commit Graph
8375 Commits
Author SHA1 Message Date
djm@kirby.fc.hp.com 541bcd7e26 Important domU/vbd fix. Reserve top granule of machine memory for dom0. 2005-12-20 14:11:17 -06:00
djm@kirby.fc.hp.com 75cb131680 Fix simulator boot (uses old bootparam format with no initrd) 2005-12-19 15:18:54 -06:00
djm@kirby.fc.hp.com ad06a3d5ed Turn off debug output for NaTpage consumption when ifa==0.
In RHEL4, __strcpy_from_user seems to do this a lot (legally)
and the massive debug output may hide other errors.
2005-12-15 17:17:06 -06:00
djm@kirby.fc.hp.com 7e7ba7c6b5 Turn off ia64_pal_cache_flush for domU (temp, until failure understood) 2005-12-15 16:17:04 -06:00
djm@kirby.fc.hp.com a478840f94 Remove some unused VTI code segments
Signed-off-by Anthony Xu <anthony.xu@intel.com>
2005-12-15 16:10:22 -06:00
djm@kirby.fc.hp.com e896859fb5 Cleanup VTLB code
Signed-off-by Anthony Xu <anthony.xu@intel.com>
2005-12-15 16:09:19 -06:00
djm@kirby.fc.hp.com 02c380ede6 Under some specific conditions, dom0 will lose guest timer interrupt.
Signed-off-by Anthony Xu <anthony.xu@intel.com>
Signed-off-by Kevin Tian <kevin.tian@intel.com>
The reason is that Xen/ia64 will try to pend guest timer interrupt to dom0
within each machine timer interrupt handler. To avoid duplicated delivery, 
domain_itm_last recorded domain_itm of last injection. If two are identical,
it means interrupt injected but guest has not set new itm value. Or else
corresponding pending irr bit will be turned on. That works in most cases.

However currently guest linux may try to set itm multiple times within one
handler before turn on psr.i again. Among first few settings, new guest timer
interrupt may be pended. Then once guest linux enables interrupt, a new
timer interrupt will be injected immediately. However this injection may have
itc still smaller than the domain_itm set at the last round of last handle.
In this case, guest linux will set same domain_itm as last again. However
since domain_itm_last already equals to domain_itm at last read ivr, later
no guest timer interrupt can be injected any more since Xen always thinks
an instance already injected without guest's response.

Attahced patch fixed this issue by adding sanity check upon guest timer
vector when deciding to inject interrupt into dom0. We always compare current
itc with latest domain_itm that guest really wants. So if itc < domain_itm
at this point, we simply clear the pending bit and no injection.

There's also a small fix to vcpu_read_ivr, where domain_itm_last should
be updated before clearing irr bit. Or els a small window still remains
to add a duplicate interrupt.
2005-12-15 16:07:47 -06:00
djm@kirby.fc.hp.com 2137b122b6 Small patch to avoid a stack overflow (VTI only).
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2005-12-15 14:51:10 -06:00
djm@kirby.fc.hp.com b09fd27a56 Mirror changes to x86 un/mask_evtchn 2005-12-14 13:02:37 -06:00
emellor@leeni.uk.xensource.com ed581c9406 Fix calls to test-gcc-flag, to match previous changeset.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-14 12:52:02 +00:00
emellor@leeni.uk.xensource.com 3f639e9079 HOSTCC should be used to set HOSTCFLAGS instead of CC.
There is a case where HOSTCC doesn't accept -Wdeclaration-after-statement,
while CC does. It results in a compilation error.
This patch fixes it

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2005-12-14 12:22:24 +00:00
emellor@leeni.uk.xensource.com 8b682a9756 Ignore .flc, .patch, .orig, and .rej files, and TAGS in the top level.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-14 12:07:26 +00:00
emellor@leeni.uk.xensource.com ea0ff315ae Merged. 2005-12-14 12:04:40 +00:00
emellor@leeni.uk.xensource.com c25bfd147c Added error message if the user attempts to shutdown Domain-0.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2005-12-14 12:03:40 +00:00
stekloff@elm3b216.beaverton.ibm.com b945dd3342 Adding SKIP() to tests that aren't supported for VMX domains.
Signed-off-by: Dan Stekloff <dsteklof@us.ibm.com>
2005-12-14 11:59:19 +00:00
emellor@leeni.uk.xensource.com 933f5440b4 Added mkdir -p $XENDOMAINS_SAVE, to ensure that the directory exists before
trying to save into it.
 
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-14 11:56:25 +00:00
emellor@leeni.uk.xensource.com c215f50020 Added a stress test for the Xenstore-Python interface layer.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-14 11:54:39 +00:00
chris@ubuntu.eng.hq.xensource.com 4bd926d444 Revert changes slipped in during merge.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-12-13 19:11:27 -07:00
chris@ubuntu.eng.hq.xensource.com a76c7da6d9 merge? 2005-12-13 19:05:57 -07:00
chris@ubuntu.eng.hq.xensource.com 45fb552eb2 Make set_pte_at and set_pte_at_sync macros instead of inline functions.
This avoids having to include sched.h to get a definition of init_mm.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-12-13 19:04:14 -07:00
kaf24@firebug.cl.cam.ac.uk f67ccb0614 Clarify the BSD-ish licenses for the blk and net front-end drivers so
that it is clear they are fully GPL-compatible and satisfy the free
software definitions in include/linux/module.h.

Signed-off-by: Keir Fraser <keir@xensource.com>
Signed-off-by: Stephen Tweedie <sct@redhat.com>
2005-12-14 01:25:07 +01:00
kaf24@firebug.cl.cam.ac.uk 98d5931e01 Set kcons index to -1 (i.e., acquire all device indexes).
This reverts part of the previous changeset, which prevented
console=tty0 from doing the obvious thing in a domU guest
(i.e., send output on the virtual console). This is because
the tty index ends up being 1.

I don't think setting the index to other than -1 really
buys us anything anyway. Any other driver that specifies
a name that conflicts with us will almost certainly set their
index to -1, so we cannot avoid conflicts by choosing a
more restrictive (singleton) value.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-13 22:12:02 +01:00
kaf24@firebug.cl.cam.ac.uk 999b6fd3b9 Most drivers have their own range of devices they claim and the tty
index is identical to the device file index.  For us, the tty index is
always zero regardless of the device file index.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2005-12-13 22:05:18 +01:00
kaf24@firebug.cl.cam.ac.uk 3e61615263 Fix unmask_evtchn() when the port is bound to a different
VCPU.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-13 19:20:29 +01:00
emellor@leeni.uk.xensource.com d6f8e9a68e Merged. 2005-12-13 18:08:26 +00:00
emellor@leeni.uk.xensource.com a2529a2204 Added unit test for VMX configuration files.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-13 18:08:17 +00:00
emellor@leeni.uk.xensource.com 54fd0f2fb9 When we see a httplib.BadStatusLine, sleep 5 seconds and then retry. This
happens when Xend crashes, so retrying once allows it to restart and recover.
If we see Xend crash twice, we give up, but throw a more polite exception than
the BadStatusLine splat that we got previously.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-13 18:07:51 +00:00
emellor@leeni.uk.xensource.com 464379d285 Resurrect vifname xm create vif option support. This was present in earlier
versions of Xen, and allows one to name a vif when it is created.  This is
useful for integration with IP accounting packages, for example.

Closes bug #439.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-13 18:06:03 +00:00
danms@us.ibm.com dc0c9e694b Grab the test ID from the report submission response and provide a link
to the user's test report
Signed-off-by: Dan Smith <danms@us.ibm.com>
2005-12-13 18:00:50 +00:00
emellor@leeni.uk.xensource.com dc3c184731 Fix reference to HttpXendClientProtocol. This was previously referring to the
abstract base class, which was never going to work.  (This is debugging code
only, so I presume that no-one has used it for a long time, but it's doing no
harm hanging around.)

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-13 17:31:35 +00:00
emellor@leeni.uk.xensource.com 056647a91c Merged. 2005-12-13 16:26:33 +00:00
emellor@leeni.uk.xensource.com bf68bfcf48 Change the way domain configuration is handled in xm-test.
This will simplify the way we differentiate between HV and PV domains,
as well as make it easier to run normal tests in either HV or PV mode.

This patch has been modified by Ewan Mellor, to match his recent changes to
remove the nics= configuration option.

Signed-off-by: Dan Smith <danms@us.ibm.com>
Signed-off-by: Dan Stekloff <dsteklof@us.ibm.com>
2005-12-13 16:26:24 +00:00
kaf24@firebug.cl.cam.ac.uk 25cb41a8aa Tony found a direct userspace access with his unit test for
grant_table.c.  We access "uop->frame_list" (a pointer) directly, rather
than using "op.frame_list".

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2005-12-13 17:15:26 +01:00
kaf24@firebug.cl.cam.ac.uk f0756c96a0 A new ACM security tool providing support to aid in the
creation/generation of the XML security policy files for the Xen ACM
security architecture.  It is a python- based, web-based tool named
xensec_gen that allows users to create or modify XML policy files
through a browser.  The resulting XML policy files can then be copied
or moved to the appropriate location in the /etc/xen/acm-security
directory structure in order to be translated into binary and used
within the Xen system.

Signed-off-by: Tom Lendacky <toml@us.ibm.com>
2005-12-13 17:12:59 +01:00
kaf24@firebug.cl.cam.ac.uk bb79a7bc45 Support VMX guest accesses to IA32_TIME_STAMP_COUNTER MSR.
Signed-off-by: Haifeng Xue <haifeng.xue@intel.com>
2005-12-13 17:08:05 +01:00
kaf24@firebug.cl.cam.ac.uk bed1b35f48 Fix shadow_guest32 depenency in Xen/x86 Makefile.
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
2005-12-13 17:02:55 +01:00
kaf24@firebug.cl.cam.ac.uk 2bdefee6ab Add an option for device model to disable key repeat.
On slow network, when creating a vmx guest remotely,
the key repeat feature may make it hard to even type
the user name and password to login in to guest OS.

Signed-off-by: Eddie Dong <eddie.dong@intel.com>
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
2005-12-13 17:01:09 +01:00
emellor@leeni.uk.xensource.com a9b9f0585c Merged. 2005-12-13 10:57:18 +00:00
Xiaofeng Ling e697c7e8ef change the NIC configuration accordingly after remove "nics=n"
otherwise, nics=-1 will be passed to device model and cause device
model exiting.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
2005-12-13 10:57:04 +00:00
kaf24@firebug.cl.cam.ac.uk adec4de131 Fix rx buffer allocation in netfront. The final allocation size
was ending up bigger than PAGE_SIZE.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-13 03:47:47 +01:00
emellor@leeni.uk.xensource.com b57b530e0a Match previous changeset removing nics option.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-13 00:56:50 +00:00
emellor@leeni.uk.xensource.com 8da1a42f90 Merged. 2005-12-13 00:16:02 +00:00
emellor@leeni.uk.xensource.com bc8ed50e6c Deprecate the nics option from the xm create configuration. Instead, we use the
entries in vif to guide the configuration.  This is much less confusing.

Closes bug #440.

Change the example configuration files to match.  Also change them to use the
XenSource OUI in the MAC addresses.  Also change xm-test to match.

Remove the obsolete ipaddr configuration entry, and the backend_mac vif config
option.

Remove the preprocess_vifs function, folding it into the configure_vifs
function, and creating a simple comma_sep_kv_to_dict helper.

Remove the configure_vfr method, as it is unused.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-13 00:15:53 +00:00
emellor@leeni.uk.xensource.com 296749cb10 Don't try and close the pipe to the grandparent if it has already been closed
(i.e. we have restarted Xend).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-13 00:10:19 +00:00
rread@ubuntu.eng.hq.xensource.com d1bab24950 Increase the default ramdisk size to 16384 to support SLES initrds. 2005-12-12 11:45:53 -07:00
emellor@leeni.uk.xensource.com 17d0f5bf16 Read the domid and vifid from the store, rather than horribly slicing up the
store path.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-12 17:13:38 +00:00
emellor@leeni.uk.xensource.com 742b21299e Added xend-relocation-hosts-allow option.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-12 16:48:24 +00:00
emellor@leeni.uk.xensource.com 151c1bdf9c Squelch error message from iptables (we log this later if necessary).
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-12 16:44:27 +00:00
emellor@leeni.uk.xensource.com 03bbc8cec6 Added a hosts-allow facility to TCP connections, which allows us to restrict
the acceptable connections based upon a regular expression comparison with the
FQDN or the IP address.

Use the hosts-allow facility to restrict access to the relocation socket.  This
adds the configuration option xend-relocation-hosts-allow, which takes a
space-separated sequence of regular expressions.

Pass the protocol class instance through to SocketServerConnection, rather than
a new instance of that class.  This means that the new instance need not be
passed through SocketListener.acceptConnection.

Make the SocketServerConnection and SocketListener classes start their
corresponding threads and open their sockets (in the case of SocketListener)
automatically.  This means that callers do not need to save an instance locally,
just to call run() or listen() on it.  This also means that listenTCP and
listenUnix can go -- simply creating a TCPListener or UnixListener instance is
sufficient.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-12 16:43:48 +00:00
emellor@leeni.uk.xensource.com 91da6b2f1c Minor tidy.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-12 16:32:50 +00:00