]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
x86: support 2- and 3-way alternatives
authorJan Beulich <jbeulich@suse.com>
Thu, 4 Feb 2016 10:38:52 +0000 (11:38 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 4 Feb 2016 10:38:52 +0000 (11:38 +0100)
commit6f8e41c67a884b5eaa321bd58fdcf593179f5f2c
tree816f79663d9979aefd729b484c2e7cb69f3c04f0
parentbe05b5385fb261c1fa1cbb6b4bdc12a6e8676c4b
x86: support 2- and 3-way alternatives

Parts taken from Linux, but implementing the ALTERNATIVE*() macros
recursively to avoid needless redundancy.

Also make the .discard section non-writable (we might even consider
dropping its alloc flag too) and limit the pushing and popping of
sections.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
xen/include/asm-x86/alternative.h