Commit Graph
8394 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk 2cafb4b4e9 Small fix to the error-return path after calling
__copy_to_user in the swiotlb sync function. We cannot
immediately exit the sync function as there may be tail work
to do (e.g., kunmap_atomic). In fact, doing nothing is the
right thing to do and is sufficient to avoid compiler
warnings about not checking the __copy_to_user return value.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-17 02:11:54 +01:00
kaf24@firebug.cl.cam.ac.uk 97c947f209 Work aroudn swiotlb issue where a read-only host buffer is
mapped for DMA_BIDIRECTIONAL streaming access by certain
low-level drivers. This causes an unnecessary copy to the
host buffer that previously caused a fatal kernel page fault.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-17 00:43:00 +01:00
kaf24@firebug.cl.cam.ac.uk 8e19e0e370 This patch removes the GPL licence from the acm public header files so
that they match the BSD licence in xen/include/public.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>
2005-12-17 00:28:27 +01:00
kaf24@firebug.cl.cam.ac.uk d137e75e4f Hide 64bit-mode feature on i386 hypervisor.
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
2005-12-16 18:58:21 +01:00
kaf24@firebug.cl.cam.ac.uk 41a6310c5e Move some useful cryptographic enveloping code into their own
functions so they can be used by other parts of the VTPM code.

Signed-off-by: Vinnie Scarlata <vincent.r.scarlata@intel.com>
2005-12-16 18:54:57 +01:00
stekloff@elm3b216.beaverton.ibm.com 6bcfa6dc80 Changed create_disk_image to default to making "disk.img", which is what
xm-test is looking for by default.

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
2005-12-16 11:51:06 +00:00
stekloff@elm3b216.beaverton.ibm.com 5ad4f375ad Added information for running xm-test in HVM / VMX mode.
Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
2005-12-16 11:50:27 +00:00
nivedita@hex b212532248 Xend http access turned off by default.
Signed-off-by: Nivedita Singhvi (niv@us.ibm.com)
2005-12-16 11:46:58 +00:00
kaf24@firebug.cl.cam.ac.uk d42bb1640f Slight fix to BIOS e820 bug workaround. Remove the check
for whether e820 list is below 1MB: all bootloaders place
it below 1MB so teh check is ineffective and, in any case,
SYSLINUX has the same issue as GRUB (does not pre-initialize
the memory area that e820 function writes to).

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-16 04:57:27 +01:00
kaf24@firebug.cl.cam.ac.uk 8bdba00165 Work around a nasty BIOS/GRUB bug which causes fields in
the e820 map to not be initialized to zero when they should be.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-16 04:11:41 +01:00
chris@ubuntu.eng.hq.xensource.com 3c10a56738 Add and use write_ldt_entry, as seen in later linux kernel versions.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-12-15 16:17:13 -07:00
kaf24@firebug.cl.cam.ac.uk 026d31df5c Add debugging flag for domains to make domu debugging a run-time option
Signed-off-by: Kip Macy kmacy@fsmware.ckm
2005-12-15 21:50:12 +01:00
kaf24@firebug.cl.cam.ac.uk 1f5fb04e43 Add MP debug support to gdbserver.
Signed-off-by: Kip Macy <kip.macy@gmail.com>
2005-12-15 21:02:21 +01:00
kaf24@firebug.cl.cam.ac.uk 62e852457f Remove unnecessary statement in evtchn_do_upcall.
Signed-off-by: Xin Li <xin.b.li@intel.com>
2005-12-15 20:46:08 +01:00
kaf24@firebug.cl.cam.ac.uk 8da81f65ac Unmap io shared page only if it is properly initialized.
Signed-off-by: Xin Li <xin.b.li@intel.com>
2005-12-15 20:43:44 +01:00
kaf24@firebug.cl.cam.ac.uk 0eab2f3835 Check for existence of VLAPIC before relinquishing it,
or a vmx guest can die very early.

Signed-off-by: Xin Li <xin.b.li@intel.com>
2005-12-15 20:42:09 +01:00
kaf24@firebug.cl.cam.ac.uk a392ea0ca7 Clear all shadow caches when return to real mode from protect mode.
So that, if OS modify some page tables in real mode and then
return to protect mode, no outdated shadow table be used because
out of sync machanism do not work in real mode.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
2005-12-15 20:38:44 +01:00
kaf24@firebug.cl.cam.ac.uk 9a6ea84b10 vmx_assist xen interface header is BSD-licensed.
Signed-off-by: Leendert Van Doorn <leendert@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-15 20:35:32 +01:00
emellor@leeni.uk.xensource.com 30e49102ed Split talk_to_otherend into two pieces, one for getting the otherend details,
and one for registering the watch on the otherend's path.  This means that we
get the fix intended by xen-unstable changeset 8370:39a616126104 (i.e. we only
register the watch once drv->probe() has succeeded), but without breaking block
devices.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-15 18:38:49 +00:00
emellor@leeni.uk.xensource.com bf991c09c6 Replace calls to deprecated xm set-vcpus with calls to new shiny xm vcpu-set.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-15 13:55:05 +00:00
emellor@leeni.uk.xensource.com af150ef12a Merged. 2005-12-15 13:49:19 +00:00
emellor@leeni.uk.xensource.com d5461c7b29 Fix block_attach_shared tests. When the sharing check succeeds, the domain
is created but left paused, so it is necessary to destroy the domain afterwards,
whether the test succeeded or failed.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-15 13:49:07 +00:00
emellor@leeni.uk.xensource.com 822fceff34 Someone seems to have gotten carried away with cut & paste, and then
didn't test.

Signed-off-by: Jim Dykman <dykman@us.ibm.com>
2005-12-15 13:39:16 +00:00
emellor@leeni.uk.xensource.com b848214f0d Put watch on device node only if probe was sucessful.
This fix segfault on netfront when creating more than three network devices on
domU.

Signed-off-by: Murillo F. Bernardes <mfb@br.ibm.com>
2005-12-15 13:38:16 +00:00
kaf24@firebug.cl.cam.ac.uk e909f8b8bc Fix the issue when guest OS clear TS bit by mov to cr0 instead of
clts instruction for floating point context save and restore.
clts instruction is already handled in vmx exit handler while 
vmx_set_cr0 has not handled it yet.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
2005-12-14 19:47:16 +01:00
kaf24@firebug.cl.cam.ac.uk b39c4945b6 LAPIC model is different on x86 and ia64, so make irq-pending
notification arch specific.

Signed-off-by Kevin Tian <Kevin.tian@intel.com>
Signed-off-by Yunhong Jiang <Yunhong.jiang@intel.com>
2005-12-14 19:44:42 +01:00
kaf24@firebug.cl.cam.ac.uk d8d3bd91d7 Give the xencons tty driver a proper name.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2005-12-14 19:41:06 +01:00
kaf24@firebug.cl.cam.ac.uk c1cb824302 Prevent new potential features from being exposed to the
guests when not virtualized properly. Guests can attempt to set the
control registers, etc. (and get #GP and panic) if they are aware of the
new feature and the cpuid says it's available.

Signed-off-by: <jun.nakajima@intel.com>
2005-12-14 19:35:38 +01: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