/* Simple wrappers around HVM functions */ #ifndef XEN_HVM_H__ #define XEN_HVM_H__ #include <xen/interface/hvm/params.h> #include <asm/xen/hypercall.h> static const char *param_name(int op) { #define PARAM(x) [HVM_PARAM_##x] = #x static const char *const names[] = { PARAM(CALLBACK_IRQ), PARAM(STORE_PFN), PARAM(STORE_EVTCHN), PARAM(PAE_ENABLED), PARAM(IOREQ_PFN), PARAM(BUFIOREQ_PFN), PARAM(TIMER_MODE), PARAM(HPET_ENABLED), PARAM(IDENT_PT), PARAM(DM_DOMAIN), PARAM(ACPI_S_STATE), PARAM(VM86_TSS), PARAM(VPT_ALIGN), PARAM(CONSOLE_PFN), PARAM(CONSOLE_EVTCHN), }; #undef PARAM if (op >= ARRAY_SIZE(names)) return "unknown"; if (!names[op]) return "reserved"; return names[op]; } static inline int hvm_get_parameter(int idx, uint64_t *value) { struct xen_hvm_param xhv; int r; xhv.domid = DOMID_SELF; xhv.index = idx; r = HYPERVISOR_hvm_op(HVMOP_get_param, &xhv); if (r < 0) { pr_err("Cannot get hvm parameter %s (%d): %d!\n", param_name(idx), idx, r); return r; } *value = xhv.value; return r; } #define HVM_CALLBACK_VIA_TYPE_VECTOR 0x2 #define HVM_CALLBACK_VIA_TYPE_SHIFT 56 #define HVM_CALLBACK_VECTOR(x) (((uint64_t)HVM_CALLBACK_VIA_TYPE_VECTOR)<<\ HVM_CALLBACK_VIA_TYPE_SHIFT | (x)) #endif /* XEN_HVM_H__ */ 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/?h=nds-private-remove'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?h=nds-private-remove&id=15c2e102412d95af4fe88e5b28b3eba124545bbf'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/fs/9p/vfs_dentry.c?h=nds-private-remove'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/fs/9p/vfs_dentry.c?h=nds-private-remove&id=15c2e102412d95af4fe88e5b28b3eba124545bbf'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/fs/9p/vfs_dentry.c?h=nds-private-remove&id=15c2e102412d95af4fe88e5b28b3eba124545bbf'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/fs/9p/vfs_dentry.c?h=nds-private-remove&id=15c2e102412d95af4fe88e5b28b3eba124545bbf'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/fs/9p/vfs_dentry.c'> <input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='15c2e102412d95af4fe88e5b28b3eba124545bbf'/><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/?h=nds-private-remove&id=15c2e102412d95af4fe88e5b28b3eba124545bbf'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/fs?h=nds-private-remove&id=15c2e102412d95af4fe88e5b28b3eba124545bbf'>fs</a>/<a href='/cgit.cgi/linux/net-next.git/log/fs/9p?h=nds-private-remove&id=15c2e102412d95af4fe88e5b28b3eba124545bbf'>9p</a>/<a href='/cgit.cgi/linux/net-next.git/log/fs/9p/vfs_dentry.c?h=nds-private-remove&id=15c2e102412d95af4fe88e5b28b3eba124545bbf'>vfs_dentry.c</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/fs/9p/vfs_dentry.c?h=nds-private-remove&id=15c2e102412d95af4fe88e5b28b3eba124545bbf&showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr> h class='left'>Lines</th></tr>