All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH kvm-unit-tests 0/3] use setjmp/longjmp to catch exceptions
@ 2015-12-15 10:25 Paolo Bonzini
  2015-12-15 10:25 ` [PATCH kvm-unit-tests 1/4] lib: add setjmp header and x86 implementation Paolo Bonzini
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Paolo Bonzini @ 2015-12-15 10:25 UTC (permalink / raw)
  To: kvm; +Cc: dmatlack

This is an attempt to fix David's reported problem with set_exception_return
and make it more robust.

Patch 1 introduces setjmp; patches 2 and 3 replace test_for_exception
and set_exception_return with setjmp/longjmp.  Patch 4 provides further
cleanups.

Paolo

Paolo Bonzini (4):
  lib: add setjmp header and x86 implementation
  x86: replace set_exception_return with longjmp-based implementation
  x86: remove test_for_exception
  x86: apic: cleanup

 config/config-i386.mak       |  2 ++
 config/config-x86-common.mak |  4 +++-
 config/config-x86_64.mak     |  2 ++
 lib/setjmp.h                 | 12 +++++++++++
 lib/x86/desc.c               | 24 +++++++++------------
 lib/x86/desc.h               |  8 ++++---
 lib/x86/setjmp32.S           | 25 ++++++++++++++++++++++
 lib/x86/setjmp64.S           | 27 ++++++++++++++++++++++++
 x86/apic.c                   | 50 ++++++++++++++++++++------------------------
 x86/setjmp.c                 | 19 +++++++++++++++++
 x86/vmx.c                    | 43 ++++++++++++++++++++++---------------
 11 files changed, 154 insertions(+), 62 deletions(-)
 create mode 100644 lib/setjmp.h
 create mode 100644 lib/x86/setjmp32.S
 create mode 100644 lib/x86/setjmp64.S
 create mode 100644 x86/setjmp.c

-- 
2.5.0


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-01-12 17:17 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-15 10:25 [PATCH kvm-unit-tests 0/3] use setjmp/longjmp to catch exceptions Paolo Bonzini
2015-12-15 10:25 ` [PATCH kvm-unit-tests 1/4] lib: add setjmp header and x86 implementation Paolo Bonzini
2015-12-15 16:43   ` Andrew Jones
2015-12-15 16:53     ` Paolo Bonzini
2015-12-15 10:25 ` [PATCH kvm-unit-tests 2/4] x86: replace set_exception_return with longjmp-based implementation Paolo Bonzini
2015-12-15 18:09   ` Andrew Jones
2015-12-15 10:25 ` [PATCH kvm-unit-tests 3/4] x86: remove test_for_exception Paolo Bonzini
2015-12-15 16:57   ` Andrew Jones
2015-12-15 18:32   ` David Matlack
2016-01-12 12:42     ` Paolo Bonzini
2016-01-12 17:17       ` David Matlack
2015-12-15 10:25 ` [PATCH kvm-unit-tests 4/4] x86: apic: cleanup Paolo Bonzini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.