From 8bc5fc92e5a7edcf0291ae4396b8f4360bb42171 Mon Sep 17 00:00:00 2001 From: neel Date: Thu, 16 Oct 2014 18:16:31 +0000 Subject: Use the correct fault type (VM_PROT_EXECUTE) for an instruction fetch. --- sys/amd64/vmm/amd/svm.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/amd64/vmm') diff --git a/sys/amd64/vmm/amd/svm.c b/sys/amd64/vmm/amd/svm.c index 0af4da3..e59f723 100644 --- a/sys/amd64/vmm/amd/svm.c +++ b/sys/amd64/vmm/amd/svm.c @@ -752,6 +752,8 @@ npf_fault_type(uint64_t exitinfo1) if (exitinfo1 & VMCB_NPF_INFO1_W) return (VM_PROT_WRITE); + else if (exitinfo1 & VMCB_NPF_INFO1_ID) + return (VM_PROT_EXECUTE); else return (VM_PROT_READ); } -- cgit v1.1