svn commit: r258860 - in head/sys/amd64: include vmm/intel
Neel Natu
neel at FreeBSD.org
Tue Dec 3 01:21:22 UTC 2013
Author: neel
Date: Tue Dec 3 01:21:21 2013
New Revision: 258860
URL: http://svnweb.freebsd.org/changeset/base/258860
Log:
The 'protection' field in the VM exit collateral for the PAGING exit is not
used - get rid of it.
Modified:
head/sys/amd64/include/vmm.h
head/sys/amd64/vmm/intel/vmx.c
Modified: head/sys/amd64/include/vmm.h
==============================================================================
--- head/sys/amd64/include/vmm.h Tue Dec 3 00:43:31 2013 (r258859)
+++ head/sys/amd64/include/vmm.h Tue Dec 3 01:21:21 2013 (r258860)
@@ -283,7 +283,6 @@ struct vm_exit {
struct {
uint64_t gpa;
int fault_type;
- int protection;
} paging;
struct {
uint64_t gpa;
Modified: head/sys/amd64/vmm/intel/vmx.c
==============================================================================
--- head/sys/amd64/vmm/intel/vmx.c Tue Dec 3 00:43:31 2013 (r258859)
+++ head/sys/amd64/vmm/intel/vmx.c Tue Dec 3 01:21:21 2013 (r258860)
@@ -1301,21 +1301,6 @@ ept_fault_type(uint64_t ept_qual)
return (fault_type);
}
-static int
-ept_protection(uint64_t ept_qual)
-{
- int prot = 0;
-
- if (ept_qual & EPT_VIOLATION_GPA_READABLE)
- prot |= VM_PROT_READ;
- if (ept_qual & EPT_VIOLATION_GPA_WRITEABLE)
- prot |= VM_PROT_WRITE;
- if (ept_qual & EPT_VIOLATION_GPA_EXECUTABLE)
- prot |= VM_PROT_EXECUTE;
-
- return (prot);
-}
-
static boolean_t
ept_emulation_fault(uint64_t ept_qual)
{
@@ -1485,7 +1470,6 @@ vmx_exit_process(struct vmx *vmx, int vc
vmexit->exitcode = VM_EXITCODE_PAGING;
vmexit->u.paging.gpa = gpa;
vmexit->u.paging.fault_type = ept_fault_type(qual);
- vmexit->u.paging.protection = ept_protection(qual);
} else if (ept_emulation_fault(qual)) {
vmexit->exitcode = VM_EXITCODE_INST_EMUL;
vmexit->u.inst_emul.gpa = gpa;
More information about the svn-src-head
mailing list