aboutsummaryrefslogtreecommitdiffstats
path: root/tools/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* [XEN] Simplify x86_emulate interface.kfraser@localhost.localdomain2006-11-301-28/+48
| | | | | | | | | | | | | | | | - No distinction between 'special' and 'normal' memory accesses. - No reliance on caller-supplied %cr2 value - Memory operations include segment identifier to allow callers to support non-zero-based segments TODO: 1. HVM emulations should take into account segment base, limit, and attributes. 2. We ought to obey stack-size attribute on PUSH/POP instructions. Could extend the mode input field, or could add an extra call-out hook, or perhaps we don't care at all... Signed-off-by: Keir Fraser <keir@xensource.com>
* [XEN] Fix the x86 emulator to safely fail when it turns out thekfraser@localhost.localdomain2006-08-231-0/+14
| | | | | | | | faulting memory access was to/from an implicit memory operand (typically either an instruction fetch or stack access). Rationalise use of macros for page fault error code flags. This patch supercedes the fix in changeset 11242. Signed-off-by: Keir Fraser <keir@xensource.com>
* [X86EMUL] Mark MOV instruction as not needing writeback.kfraser@dhcp93.uk.xensource.com2006-06-061-39/+64
| | | | | | | Fix the test harness for x86/64 -- map emulated addresses to low 4GB of address space. Signed-off-by: Keir Fraser <keir@xensource.com>
* Change the x86_emulate() interface to pack all context argumentskaf24@firebug.cl.cam.ac.uk2006-05-251-30/+37
| | | | | | | | | | into a context structure. This context can then be handed to callback operations. Based on an original patch from Mats Petersson <mats.petersson@amd.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* Remove __TEST_HARNESS__ tests from x86_emulate: instead check for __XEN__kaf24@firebug.cl.cam.ac.uk2006-05-181-2/+0
| | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* build: Clean up use of .PHONYkaf24@firebug.cl.cam.ac.uk2006-04-101-0/+3
| | | | | | | | | | | | * Move .PHONY directives next to targets, this makes them a lot harder to miss * Add missing .PHONY directives * Remove nonexistent .PHONY directives * Hopefully I didn'T miss anything... Signed-Off-By: Horms <horms@verge.net.au>
* Fix tools Makefiles to respect CFLAGS. Disable stack-smashkaf24@firebug.cl.cam.ac.uk2006-02-281-5/+4
| | | | | | | | protection when building vmxassist/hvmloader. Signed-off-by: Keir Fraser <keir@xensource.com>
* Fix up x86 emulator header docs and ensure callers usekaf24@firebug.cl.cam.ac.uk2006-01-051-12/+12
| | | | | | | | the X86EMUL_MODE enumeration. Signed-off-by: Keir Fraser <keir@xensource.com>
* Add support for MOVSX/MOVSXD/MOVZX (move-with-extend)kaf24@firebug.cl.cam.ac.uk2005-12-212-0/+32
| | | | | | | | | | | | 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>
* Fix tools to pull public header files from standardkaf24@firebug.cl.cam.ac.uk2005-10-041-1/+1
| | | | | | | | | | location in libxc directory. Not direct from xen and xenlinux build trees! Also fix a type name in x86_emulator test harness. Signed-off-by: Keir Fraser <keir@xensource.com>
* bitkeeper revision 1.1236.1.114 (42407a31Nf9p7AkNdYSNJUqcXa7-NA)kaf24@firebug.cl.cam.ac.uk2005-03-221-2/+35
| | | | | | Fix XCHG instruction emulation. Signed-off-by: Keir Fraser <keir@xensource.com>
* bitkeeper revision 1.1236.1.101 (423f0cb4e4UtnlbkQsaMhXYz4hi__w)kaf24@firebug.cl.cam.ac.uk2005-03-211-2/+50
| | | | | | Add CMPXCHG8B support to the instruction emulator. Signed-off-by: Keir Fraser <keir@xensource.com>
* bitkeeper revision 1.1236.1.85 (423af065m4e0j4eXiTFvV-BrIlfC-A)kaf24@firebug.cl.cam.ac.uk2005-03-181-0/+15
| | | | | | | | Linux 2.6 now always uses writable page tables (even SMP builds). Also use native definitions for atomic read-modify-write operations on ptes. Fixed instruction emulator in Xen. Signed-off-by: Keir Fraser <keir@xensource.com>
* bitkeeper revision 1.1236.34.3 (4237063cE2rat5RdEGCsTzuaC6XCcA)kaf24@firebug.cl.cam.ac.uk2005-03-151-5/+3
| | | | | | | | | | | Tidy the x86 emulator interface, and use it from within the writable pagetable algorithm to deal with otherwise unhandleable cases. For example: L1 mapped at multiple L2 slots; L1 that maps itself; L1 that also maps the code making the update, or the kernel stack. This provides a proof-of-concept for the emulator that can be picked up for the VMX code to improve the device-model emulation. Signed-off-by: Keir Fraser <keir@xensource.com>
* bitkeeper revision 1.1236.18.1 (422f27c9EveZXnXhkLBg8iYwaAffoQ)kaf24@firebug.cl.cam.ac.uk2005-03-092-0/+190
Begin integrating new instruction decoder and emulator. Signed-off-by: Keir Fraser <keir@xensource.com>