[PATCH kvm-unit-tests 00/13] x86: revamp access.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Patches 1 and 2 provide a 30% speed improvement by avoiding pointless
writes to CR0, CR4 and EFER.

Patches 3 to 7 revamp computation of the result of "twice" tests;
patches 8 to 11 revamp computation of the result of large page accesses.
The resulting code is more modular and easier to understand.

Patch 12 avoids spending time on tests that fail setting CR4.
It also introduces infrastructure for restricting tests in the future
based on the command line.

Patch 13 provides a small convenience.

Paolo

Paolo Bonzini (13):
  x86: access: move PDPTE patching to set_cr4_smep
  x86: access: optimize CR0/CR4/EFER writes
  x86: access: change flags from array to bitmask
  x86: access: add flags local variable
  x86: access: move pde_valid test earlier
  x86: access: introduce boolean flags for page permissions
  x86: access: extract ac_emulate_access
  x86: access: cleanup pde_valid/pte_valid
  x86: access: extract ac_test_permissions
  x86: access: move accessed later
  x86: access: remove leaf argument to ac_test_permissions
  x86: access: only check CR4 exceptions once
  x86: access: print progress even in non-verbose mode

 x86/access.c | 632 ++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 324 insertions(+), 308 deletions(-)

-- 
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux