Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Instruction Decoder - Name Change
[palacios.git] / palacios / src / palacios / vmm_decoder.c
1 #include <palacios/vmm_decoder.h>
2
3
4
5 /* The full blown instruction parser... */
6 int v3_parse_instr(struct guest_info * info,
7                    char * instr_ptr,
8                    uint_t * instr_length, 
9                    struct x86_operand * src_operand,
10                    struct x86_operand * dst_operand,
11                    struct x86_operand * extra_operand) {
12
13   V3_Assert(src_operand != NULL);
14   V3_Assert(dst_operand != NULL);
15   V3_Assert(extra_operand != NULL);
16   V3_Assert(instr_length != NULL);
17   V3_Assert(info != NULL);
18
19   
20   // Ignore prefixes for now
21   while (is_prefix_byte(*instr)) {
22     instr++;
23     *instr_length++;
24   }
25
26
27   // Opcode table lookup, see xen/kvm
28
29
30
31
32
33   return 0;
34 }