| .. | |||||
| interface | |||||
| acpi.h | |||||
| balloon.h | |||||
| events.h | |||||
| features.h | |||||
| gntalloc.h | |||||
| gntdev.h | |||||
| grant_table.h | |||||
| hvc-console.h | |||||
| hvm.h | |||||
| page.h | |||||
| platform_pci.h | |||||
| swiotlb-xen.h | |||||
| tmem.h | |||||
| xen-ops.h | |||||
| xen.h | |||||
| xenbus.h | |||||
| xenbus_dev.h | |||||
| xencomm.h |
| Server IP : 103.169.32.36 / Your IP : 216.73.217.13 Web Server : Apache System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : apache ( 48) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/modules/3.10.0-1160.119.1.el7.x86_64/build/include/xen/ |
Upload File : |
/* 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__ */
| .. | |||||
| interface | |||||
| acpi.h | |||||
| balloon.h | |||||
| events.h | |||||
| features.h | |||||
| gntalloc.h | |||||
| gntdev.h | |||||
| grant_table.h | |||||
| hvc-console.h | |||||
| hvm.h | |||||
| page.h | |||||
| platform_pci.h | |||||
| swiotlb-xen.h | |||||
| tmem.h | |||||
| xen-ops.h | |||||
| xen.h | |||||
| xenbus.h | |||||
| xenbus_dev.h | |||||
| xencomm.h |