/****************************************************************************** * features.c * * Xen feature flags. * * Copyright (c) 2006, Ian Campbell, XenSource Inc. */ #include <linux/types.h> #include <linux/cache.h> #include <linux/export.h> #include <asm/xen/hypercall.h> #include <xen/interface/xen.h> #include <xen/interface/version.h> #include <xen/features.h> u8 xen_features[XENFEAT_NR_SUBMAPS * 32] __read_mostly; EXPORT_SYMBOL_GPL(xen_features); void xen_setup_features(void) { struct xen_feature_info fi; int i, j; for (i = 0; i < XENFEAT_NR_SUBMAPS; i++) { fi.submap_idx = i; if (HYPERVISOR_xen_version(XENVER_get_features, &fi) < 0) break; for (j = 0; j < 32; j++) xen_features[i * 32 + j] = !!(fi.submap & 1<<j); } } <td class='main'><a href='/cgit.cgi/'>index</a> : <a href='/cgit.cgi/linux/net-next.git/'>net-next.git</a></td><td class='form'><form method='get'> <input type='hidden' name='id' value='90c1aff702d449a1a248c4829d51c0bc677f968e'/><select name='h' onchange='this.form.submit();'> <option value='emaclite-cleanup'>emaclite-cleanup</option> <option value='master' selected='selected'>master</option> <option value='nds-private-remove'>nds-private-remove</option> <option value='packet-loop-back'>packet-loop-back</option> <option value='packet-rx-pump-back'>packet-rx-pump-back</option> </select> <input type='submit' value='switch'/></form></td></tr> <tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table> <table class='tabs'><tr><td> <a href='/cgit.cgi/linux/net-next.git/'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?id=90c1aff702d449a1a248c4829d51c0bc677f968e'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/tools/testing/selftests/powerpc/primitives/asm'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/tools/testing/selftests/powerpc/primitives/asm?id=90c1aff702d449a1a248c4829d51c0bc677f968e'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/tools/testing/selftests/powerpc/primitives/asm?id=90c1aff702d449a1a248c4829d51c0bc677f968e'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/tools/testing/selftests/powerpc/primitives/asm?id=90c1aff702d449a1a248c4829d51c0bc677f968e'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/tools/testing/selftests/powerpc/primitives/asm'> <input type='hidden' name='id' value='90c1aff702d449a1a248c4829d51c0bc677f968e'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?id=90c1aff702d449a1a248c4829d51c0bc677f968e'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools?id=90c1aff702d449a1a248c4829d51c0bc677f968e'>tools</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/testing?id=90c1aff702d449a1a248c4829d51c0bc677f968e'>testing</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/testing/selftests?id=90c1aff702d449a1a248c4829d51c0bc677f968e'>selftests</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/testing/selftests/powerpc?id=90c1aff702d449a1a248c4829d51c0bc677f968e'>powerpc</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/testing/selftests/powerpc/primitives?id=90c1aff702d449a1a248c4829d51c0bc677f968e'>primitives</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/testing/selftests/powerpc/primitives/asm?id=90c1aff702d449a1a248c4829d51c0bc677f968e'>asm</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/tools/testing/selftests/powerpc/primitives/asm?id=90c1aff702d449a1a248c4829d51c0bc677f968e&showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>