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.


bug fixes
Jack Lange [Mon, 11 Apr 2011 23:25:11 +0000 (18:25 -0500)]
palacios/include/palacios/vmm_decoder.h
palacios/src/palacios/vmm_v3dec.c

index 3631e14..145de82 100644 (file)
@@ -45,7 +45,7 @@ struct x86_operand {
     v3_operand_type_t type;
     uint8_t read : 1;
     uint8_t write : 1;
-};
+} __attribute__((packed));
 
 struct x86_prefixes {
     uint_t lock   : 1;  // 0xF0
index ac9eb69..2547087 100644 (file)
@@ -195,17 +195,13 @@ static int parse_operands(struct guest_info * core, uint8_t * instr_ptr,
        case SUB_2MEM_8:
        case XOR_2MEM_8:
        case MOV_2MEM_8:
-       case MOVSX_8:
-       case MOVZX_8:
        case ADC_2MEM:
        case ADD_2MEM:
        case AND_2MEM:
        case OR_2MEM:
        case SUB_2MEM:
        case XOR_2MEM:
-       case MOV_2MEM:
-       case MOVSX:
-       case MOVZX: {
+       case MOV_2MEM: {
            uint8_t reg_code = 0;
 
            ret = decode_rm_operand(core, instr_ptr, form, instr, &(instr->dst_operand), &reg_code);
@@ -236,13 +232,17 @@ static int parse_operands(struct guest_info * core, uint8_t * instr_ptr,
        case SUB_MEM2_8:
        case XOR_MEM2_8:
        case MOV_MEM2_8:
+       case MOVSX_8:
+       case MOVZX_8:
        case ADC_MEM2:
        case ADD_MEM2:
        case AND_MEM2:
        case OR_MEM2:
        case SUB_MEM2:
        case XOR_MEM2:
-       case MOV_MEM2: {
+       case MOV_MEM2:
+       case MOVSX:
+       case MOVZX: {
            uint8_t reg_code = 0;
 
            ret = decode_rm_operand(core, instr_ptr, form, instr, &(instr->src_operand), &reg_code);