xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/5] x86: Use alternative mechanism to define CLAC/STAC
@ 2014-05-30  8:56 Feng Wu
  2014-05-30  8:56 ` [PATCH v3 1/5] Use __stringify() as the only method for performing preprocessor stringificaion Feng Wu
                   ` (4 more replies)
  0 siblings, 5 replies; 21+ messages in thread
From: Feng Wu @ 2014-05-30  8:56 UTC (permalink / raw)
  To: xen-devel
  Cc: Feng Wu, ian.campbell, andrew.cooper3, tim, keir.xen,
	stefano.stabellini, JBeulich, boris.ostrovsky

This patch set ports the basic alternative mechanism from Linux to Xen
and use it to define CLAC/STAC.

Version 1:
  * Initial version.

Version 2:
  * Use STR() as the only method for performing preprocessor stringificaion.
  * Set ideal_nops to k8_nops by default.
  * Make ideal_nops static and __initdata.
  * Mask the lowest bit when handling relative jump in apply_alternatives().
  * Move .altinstr_replacemen and altinstructions to .init section.
  * Include nops.h in alternative.h.
  * Some code style changes.

Version 3:
  * Use __stringify() instead of STR().
  * Coding style changes.
  * Add ASSERT(!local_irq_is_enabled()) in the beginning of apply_alternatives().
  * Remove local_irq_save()/local_irq_restore() in text_poke_early().

There are some changes related to ARM and AMD code in the first patch of this
series, but I don't have ARM and AMD environment to verify it. The changes in
Intel platform side have the same logic, and I verify it in Intel side.

Feng Wu (5):
  Use __stringify() as the only method for performing preprocessor
    stringificaion
  x86: Add definitions for NOP operation
  x86: Make set_nmi_callback return the old nmi callback
  x86: Port the basic alternative mechanism from Linux to Xen
  x86: Use alternative mechanism to define CLAC/STAC

 xen/arch/x86/Makefile             |   1 +
 xen/arch/x86/alternative.c        | 213 ++++++++++++++++++++++++++++++++++++++
 xen/arch/x86/bitops.c             |   9 +-
 xen/arch/x86/hvm/svm/svm.c        |   2 +-
 xen/arch/x86/setup.c              |   3 +
 xen/arch/x86/traps.c              |   4 +-
 xen/arch/x86/usercopy.c           |  20 ++--
 xen/arch/x86/xen.lds.S            |  15 +++
 xen/include/asm-arm/current.h     |   4 +-
 xen/include/asm-x86/alternative.h |  78 ++++++++++++++
 xen/include/asm-x86/asm_defns.h   |  23 ++--
 xen/include/asm-x86/multicall.h   | 115 ++++++++++----------
 xen/include/asm-x86/nmi.h         |   4 +-
 xen/include/asm-x86/nops.h        |  66 ++++++++++++
 xen/include/asm-x86/system.h      |   9 +-
 xen/include/xen/config.h          |   3 -
 16 files changed, 475 insertions(+), 94 deletions(-)
 create mode 100644 xen/arch/x86/alternative.c
 create mode 100644 xen/include/asm-x86/alternative.h
 create mode 100644 xen/include/asm-x86/nops.h

-- 
1.8.3.1

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

end of thread, other threads:[~2014-06-03 13:27 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-30  8:56 [PATCH v3 0/5] x86: Use alternative mechanism to define CLAC/STAC Feng Wu
2014-05-30  8:56 ` [PATCH v3 1/5] Use __stringify() as the only method for performing preprocessor stringificaion Feng Wu
2014-05-30 11:35   ` Jan Beulich
2014-06-03  0:42     ` Wu, Feng
2014-06-03 12:37       ` Wu, Feng
2014-06-03 13:05         ` Jan Beulich
2014-06-03 13:13           ` Wu, Feng
2014-05-30  8:56 ` [PATCH v3 2/5] x86: Add definitions for NOP operation Feng Wu
2014-05-30  8:56 ` [PATCH v3 3/5] x86: Make set_nmi_callback return the old nmi callback Feng Wu
2014-05-30  8:56 ` [PATCH v3 4/5] x86: Port the basic alternative mechanism from Linux to Xen Feng Wu
2014-06-03 10:00   ` Jan Beulich
2014-06-03 10:13     ` Wu, Feng
2014-06-03 10:25       ` Jan Beulich
2014-06-03 10:35         ` Wu, Feng
2014-06-03 10:51           ` Jan Beulich
2014-06-03 11:42             ` Wu, Feng
2014-06-03 11:59               ` Jan Beulich
2014-06-03 13:05     ` Wu, Feng
2014-06-03 13:10       ` Jan Beulich
2014-06-03 13:27         ` Wu, Feng
2014-05-30  8:56 ` [PATCH v3 5/5] x86: Use alternative mechanism to define CLAC/STAC Feng Wu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).