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.


added new fields to interface
[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                    addr_t * opcode,
10                    uint_t * opcode_length,
11                    struct x86_prefix_list * prefixes,
12                    struct x86_operand * src_operand,
13                    struct x86_operand * dst_operand,
14                    struct x86_operand * extra_operand) {
15
16   V3_ASSERT(src_operand != NULL);
17   V3_ASSERT(dst_operand != NULL);
18   V3_ASSERT(extra_operand != NULL);
19   V3_ASSERT(instr_length != NULL);
20   V3_ASSERT(info != NULL);
21
22   
23   // Ignore prefixes for now
24   while (is_prefix_byte(*instr_ptr)) {
25     instr_ptr++;
26     *instr_length++;
27   }
28
29
30   // Opcode table lookup, see xen/kvm
31
32
33
34
35
36   return 0;
37 }