Displaying 3 results from an estimated 3 matches for "vmx_decod".
Did you mean:
vmx_decode
2005 Nov 03
0
[PATCH] vmx-platform-vmread.patch
...gned-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
diff -r 9cdfcecf4968 xen/arch/x86/vmx_platform.c
--- a/xen/arch/x86/vmx_platform.c Wed Nov 2 16:29:32 2005
+++ b/xen/arch/x86/vmx_platform.c Wed Nov 2 21:12:02 2005
@@ -366,20 +366,15 @@
return DECODE_success;
}
-static int vmx_decode(unsigned char *opcode, struct instruction *instr)
-{
- unsigned long eflags;
- int index, vm86 = 0;
+static int vmx_decode(int vm86, unsigned char *opcode, struct instruction *instr)
+{
+ unsigned char size_reg = 0;
unsigned char rex = 0;
- unsigned char size_reg = 0;
+ int ind...
2005 Apr 02
1
[PATCH] VMX support for MMIO/PIO in VM8086 mode
...s
+ if (op16)
+ inst = inst + 2; //disp16, skip 2 bytes
+ else
+ inst = inst + 4; //disp32, skip 4 bytes
+ break;
}
for (i = 0; i < op_size; i++) {
val |= (*inst++ & 0xff) << (8 * i);
@@ -218,7 +235,21 @@
static int vmx_decode(const unsigned char *inst, struct instruction *thread_inst)
{
- int index;
+ unsigned long eflags;
+ int index, vm86 = 0;
+
+ __vmread(GUEST_EFLAGS, &eflags);
+ if (eflags & X86_EFLAGS_VM)
+ vm86 = 1;
+
+ if (vm86) { /* meaning is reversed */
+ if (thread_inst->...
2005 Mar 14
4
[patch/unstable] page table cleanups
...efine GNTUPDVA_prev_ro 1
Index: xen/arch/x86/vmx_platform.c
===================================================================
--- xen.orig/arch/x86/vmx_platform.c 2005-03-10 11:55:12.000000000 +0100
+++ xen/arch/x86/vmx_platform.c 2005-03-12 14:39:26.000000000 +0100
@@ -367,7 +367,7 @@ static int vmx_decode(const unsigned cha
static int inst_copy_from_guest(unsigned char *buf, unsigned long guest_eip, int inst_len)
{
- unsigned long gpte;
+ l1_pgentry_t gpte;
unsigned long mfn;
unsigned long ma;
unsigned char * inst_start;
@@ -378,7 +378,7 @@ static int inst_copy_from_guest(u...