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;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to