[kvm-unit-tests PATCH 0/5] x86: Add "safe" macros to wrap ASM_TRY()

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

 



Provide macros to wrap single instructions with ASM_TRY(), and to
automagically report success/fault as appropriate.  In other words, make
it easier to write code for testing (non)faulting instruction behavior.

Sean Christopherson (5):
  x86: Add macros to wrap ASM_TRY() for single instructions
  x86: Convert inputs-only "safe" instruction helpers to asm_safe()
  x86: Add macros to wrap ASM_TRY() for single instructions with
    output(s)
  x86: Move invpcid_safe() to processor.h and convert to asm_safe()
  x86: Move XSETBV and XGETBV "safe" helpers to processor.h

 lib/x86/desc.h      | 48 ++++++++++++++++++++++++++
 lib/x86/processor.h | 82 +++++++++++++++++++++++++--------------------
 x86/memory.c        | 60 ++++++++-------------------------
 x86/pcid.c          |  8 -----
 x86/xsave.c         | 31 ++---------------
 5 files changed, 110 insertions(+), 119 deletions(-)


base-commit: 408e9eaae1c628b4895c213ee1eeb9ab3f42effb
-- 
2.40.0.348.gf938b09366-goog




[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