summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2015-05-22 21:09:11 +0000
committerneel <neel@FreeBSD.org>2015-05-22 21:09:11 +0000
commite6dc875ea57264e04ad68beda5193e0a7d3e5df2 (patch)
tree2c089ddc50d698955d168bca4250eea21d0c9842
parent72b5c02439bb9e1b0f62b8040bc3ad7bc2133d73 (diff)
downloadFreeBSD-src-e6dc875ea57264e04ad68beda5193e0a7d3e5df2.zip
FreeBSD-src-e6dc875ea57264e04ad68beda5193e0a7d3e5df2.tar.gz
Remove the verification of instruction length after instruction decode. The
check has been bogus since r273375. MFC after: 1 week
-rw-r--r--sys/amd64/vmm/vmm_instruction_emul.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/sys/amd64/vmm/vmm_instruction_emul.c b/sys/amd64/vmm/vmm_instruction_emul.c
index c5f4159..9b5713d 100644
--- a/sys/amd64/vmm/vmm_instruction_emul.c
+++ b/sys/amd64/vmm/vmm_instruction_emul.c
@@ -2315,19 +2315,6 @@ decode_moffset(struct vie *vie)
}
/*
- * Verify that all the bytes in the instruction buffer were consumed.
- */
-static int
-verify_inst_length(struct vie *vie)
-{
-
- if (vie->num_processed)
- return (0);
- else
- return (-1);
-}
-
-/*
* Verify that the 'guest linear address' provided as collateral of the nested
* page table fault matches with our instruction decoding.
*/
@@ -2408,9 +2395,6 @@ vmm_decode_instruction(struct vm *vm, int cpuid, uint64_t gla,
if (decode_moffset(vie))
return (-1);
- if (verify_inst_length(vie))
- return (-1);
-
if ((vie->op.op_flags & VIE_OP_F_NO_GLA_VERIFICATION) == 0) {
if (verify_gla(vm, cpuid, gla, vie))
return (-1);
OpenPOWER on IntegriCloud