Commit Graph
8406 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk c19d7d7430 Add support for MOVSX/MOVSXD/MOVZX (move-with-extend)
instructions to the generic x86 emulator. Also add
preliminary support for 16-bit addressing: decode the
ModR/M byte properly but still need to access and update
implicit memory operands (esp,esi,edi) with correct width.
Work is also needed to support real-mode addressing.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-21 14:29:23 +01:00
kaf24@firebug.cl.cam.ac.uk 2eb236c17e Remove FIX_RSDP_PAGE. Access RSDP via the 'isamap' of low 1MB.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-20 18:45:29 +01:00
kaf24@firebug.cl.cam.ac.uk 3f60590ca4 Remove automatic I/O-fault handling in XenLinux. It's now
handled by Xen itself.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-20 18:34:58 +01:00
emellor@leeni.uk.xensource.com 9f929dc9af Merged. 2005-12-20 17:16:24 +00:00
emellor@leeni.uk.xensource.com c5ea66cfd2 Changed UUID / Xen handle formatting to be compatible with the OSF DCE UUIDs.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-20 17:16:15 +00:00
kaf24@firebug.cl.cam.ac.uk 34c31a402c Allow unknown NMIs to be propagated to domain0 via new
VIRQ_NMI. Also simplify x86_32 NMI handling -- there's
no need to greedily consume IO/parity errors in
assembly code as they can be deferred without causing
an interrupt storm (the NMI pin is always edge-triggered
even though the sources are level-asserted).

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-20 17:55:20 +01:00
kaf24@firebug.cl.cam.ac.uk 4cbd6b3272 Add sound blaster support to VMX device model.
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
2005-12-20 12:55:19 +01:00
kaf24@firebug.cl.cam.ac.uk ee5168b91f Currently there is no generic configure file to compile xenlinux on
ia64, since there're several different system types like HP-ZX, DIG,
etc. Current Makefile can't meet this need and default one
(xen0_defconfig_ia64) is only for HP-ZX type. Hence, this patch can
append an additional param to configuration file name to differentiate
system types when make.

Signed-off-by Zhang Xiantao <xiantao.zhang@intel.com>
2005-12-20 12:52:38 +01:00
kaf24@firebug.cl.cam.ac.uk b5bdea9ad6 This patch fix several issue to support >2G 64bit vmx guest in IA-32e
platform, it includes:
1) One fix on xc_vmx_build.c
2) Change ram_size/phys_ram_size in qemu from int to uint64_t
3) One fix on pcnet unsigned short to unsigned long conversion.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Xin Li           <xin.b.li@intel.com>
2005-12-20 12:50:09 +01:00
kaf24@firebug.cl.cam.ac.uk 814a93dc4c Remove direct references to frame_table array. Use
pfn_to_page (or page_to_pfn) instead.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-20 12:46:56 +01:00
kaf24@firebug.cl.cam.ac.uk 9417fb2fb0 Avoid div-by-zero crash if vmx guest specifies bogus timer
divisor.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
2005-12-18 20:29:43 +01:00
kaf24@firebug.cl.cam.ac.uk 310773bcd1 Allow a domain to specify DOMID_SELF to DOM0_GETDOMAININFO dom0_op.
This is primarily useful to allow a privileged domain to determine
its domid, where the preferred method of quering xenstore cannot be
used.

Signed-off-by: joseph.cihula@intel.com
2005-12-18 20:27:42 +01:00
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