Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178124612
D60997.1796044526.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D60997.1796044526.diff
View Options
diff --git a/sys/amd64/vmm/vmm_instruction_emul.c b/sys/amd64/vmm/vmm_instruction_emul.c
--- a/sys/amd64/vmm/vmm_instruction_emul.c
+++ b/sys/amd64/vmm/vmm_instruction_emul.c
@@ -1040,12 +1040,16 @@
result = val1 & val2;
error = vie_update_register(vcpu, reg, result, size);
break;
+ case 0x80:
case 0x81:
case 0x83:
/*
* AND mem (ModRM:r/m) with immediate and store the
* result in mem.
*
+ * 80 /4 and r/m8, imm8
+ * REX + 80 /4 and r/m8, imm8
+ *
* 81 /4 and r/m16, imm16
* 81 /4 and r/m32, imm32
* REX.W + 81 /4 and r/m64, imm32 sign-extended to 64
@@ -1054,6 +1058,8 @@
* 83 /4 and r/m32, imm8 sign-extended to 32
* REX.W + 83/4 and r/m64, imm8 sign-extended to 64
*/
+ if (vie->op.op_byte == 0x80)
+ size = 1;
/* get the first operand */
error = memread(vcpu, gpa, &val1, size, arg);
@@ -1128,12 +1134,16 @@
result = val1 | val2;
error = vie_update_register(vcpu, reg, result, size);
break;
+ case 0x80:
case 0x81:
case 0x83:
/*
* OR mem (ModRM:r/m) with immediate and store the
* result in mem.
*
+ * 80 /1 or r/m8, imm8
+ * REX + 80 /1 or r/m8, imm8
+ *
* 81 /1 or r/m16, imm16
* 81 /1 or r/m32, imm32
* REX.W + 81 /1 or r/m64, imm32 sign-extended to 64
@@ -1142,6 +1152,8 @@
* 83 /1 or r/m32, imm8 sign-extended to 32
* REX.W + 83/1 or r/m64, imm8 sign-extended to 64
*/
+ if (vie->op.op_byte == 0x80)
+ size = 1;
/* get the first operand */
error = memread(vcpu, gpa, &val1, size, arg);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 30, 1:15 PM (14 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41250240
Default Alt Text
D60997.1796044526.diff (1 KB)
Attached To
Mode
D60997: vmm: Emulate the byte forms of OR and AND with an immediate
Attached
Detach File
Event Timeline