Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.159
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
snap /
certbot /
4965 /
usr /
include /
linux /
[ HOME SHELL ]
Name
Size
Permission
Action
android
[ DIR ]
drwxr-xr-x
byteorder
[ DIR ]
drwxr-xr-x
caif
[ DIR ]
drwxr-xr-x
can
[ DIR ]
drwxr-xr-x
cifs
[ DIR ]
drwxr-xr-x
dvb
[ DIR ]
drwxr-xr-x
genwqe
[ DIR ]
drwxr-xr-x
hdlc
[ DIR ]
drwxr-xr-x
hsi
[ DIR ]
drwxr-xr-x
iio
[ DIR ]
drwxr-xr-x
isdn
[ DIR ]
drwxr-xr-x
misc
[ DIR ]
drwxr-xr-x
mmc
[ DIR ]
drwxr-xr-x
netfilter
[ DIR ]
drwxr-xr-x
netfilter_arp
[ DIR ]
drwxr-xr-x
netfilter_bridge
[ DIR ]
drwxr-xr-x
netfilter_ipv4
[ DIR ]
drwxr-xr-x
netfilter_ipv6
[ DIR ]
drwxr-xr-x
nfsd
[ DIR ]
drwxr-xr-x
raid
[ DIR ]
drwxr-xr-x
sched
[ DIR ]
drwxr-xr-x
spi
[ DIR ]
drwxr-xr-x
sunrpc
[ DIR ]
drwxr-xr-x
surface_aggregator
[ DIR ]
drwxr-xr-x
tc_act
[ DIR ]
drwxr-xr-x
tc_ematch
[ DIR ]
drwxr-xr-x
usb
[ DIR ]
drwxr-xr-x
a.out.h
6.73
KB
-rw-r--r--
acct.h
3.82
KB
-rw-r--r--
acrn.h
18.51
KB
-rw-r--r--
adb.h
1.11
KB
-rw-r--r--
adfs_fs.h
993
B
-rw-r--r--
affs_hardblocks.h
1.54
KB
-rw-r--r--
agpgart.h
3.86
KB
-rw-r--r--
aio_abi.h
3.32
KB
-rw-r--r--
am437x-vpfe.h
3.59
KB
-rw-r--r--
amt.h
1.71
KB
-rw-r--r--
apm_bios.h
3.6
KB
-rw-r--r--
apparmor.h
3.4
KB
-rw-r--r--
arcfb.h
213
B
-rw-r--r--
arm_sdei.h
2.69
KB
-rw-r--r--
aspeed-lpc-ctrl.h
1.74
KB
-rw-r--r--
aspeed-p2a-ctrl.h
1.86
KB
-rw-r--r--
aspeed-video.h
389
B
-rw-r--r--
atalk.h
1023
B
-rw-r--r--
atm.h
7.7
KB
-rw-r--r--
atm_eni.h
648
B
-rw-r--r--
atm_he.h
406
B
-rw-r--r--
atm_idt77105.h
955
B
-rw-r--r--
atm_nicstar.h
1.25
KB
-rw-r--r--
atm_tcp.h
1.58
KB
-rw-r--r--
atm_zatm.h
1.5
KB
-rw-r--r--
atmapi.h
952
B
-rw-r--r--
atmarp.h
1.27
KB
-rw-r--r--
atmbr2684.h
3.2
KB
-rw-r--r--
atmclip.h
576
B
-rw-r--r--
atmdev.h
7.32
KB
-rw-r--r--
atmioc.h
1.61
KB
-rw-r--r--
atmlec.h
2.33
KB
-rw-r--r--
atmmpc.h
4.13
KB
-rw-r--r--
atmppp.h
639
B
-rw-r--r--
atmsap.h
4.85
KB
-rw-r--r--
atmsvc.h
1.81
KB
-rw-r--r--
audit.h
21.2
KB
-rw-r--r--
auto_dev-ioctl.h
4.87
KB
-rw-r--r--
auto_fs.h
6.28
KB
-rw-r--r--
auto_fs4.h
451
B
-rw-r--r--
auxvec.h
1.68
KB
-rw-r--r--
ax25.h
2.76
KB
-rw-r--r--
batadv_packet.h
21.13
KB
-rw-r--r--
batman_adv.h
16.49
KB
-rw-r--r--
baycom.h
883
B
-rw-r--r--
bcm933xx_hcs.h
419
B
-rw-r--r--
bfs_fs.h
1.86
KB
-rw-r--r--
binfmts.h
776
B
-rw-r--r--
blkpg.h
904
B
-rw-r--r--
blktrace_api.h
4.59
KB
-rw-r--r--
blkzoned.h
6.34
KB
-rw-r--r--
bpf.h
269.04
KB
-rw-r--r--
bpf_common.h
1.33
KB
-rw-r--r--
bpf_perf_event.h
529
B
-rw-r--r--
bpqether.h
981
B
-rw-r--r--
bsg.h
2.44
KB
-rw-r--r--
bt-bmc.h
572
B
-rw-r--r--
btf.h
5.46
KB
-rw-r--r--
btrfs.h
36.28
KB
-rw-r--r--
btrfs_tree.h
34.77
KB
-rw-r--r--
cachefiles.h
1.61
KB
-rw-r--r--
can.h
10.95
KB
-rw-r--r--
capability.h
13.21
KB
-rw-r--r--
capi.h
3.05
KB
-rw-r--r--
cciss_defs.h
3.2
KB
-rw-r--r--
cciss_ioctl.h
2.7
KB
-rw-r--r--
ccs.h
767
B
-rw-r--r--
cdrom.h
28.87
KB
-rw-r--r--
cec-funcs.h
53.14
KB
-rw-r--r--
cec.h
41.17
KB
-rw-r--r--
cfm_bridge.h
1.42
KB
-rw-r--r--
cgroupstats.h
2.06
KB
-rw-r--r--
chio.h
5.16
KB
-rw-r--r--
close_range.h
377
B
-rw-r--r--
cn_proc.h
4.06
KB
-rw-r--r--
coda.h
17.79
KB
-rw-r--r--
coff.h
12.25
KB
-rw-r--r--
comedi.h
54.18
KB
-rw-r--r--
connector.h
2.2
KB
-rw-r--r--
const.h
991
B
-rw-r--r--
coresight-stm.h
747
B
-rw-r--r--
counter.h
4.77
KB
-rw-r--r--
cramfs_fs.h
3.47
KB
-rw-r--r--
cryptouser.h
5.2
KB
-rw-r--r--
cuda.h
905
B
-rw-r--r--
cxl_mem.h
7.8
KB
-rw-r--r--
cyclades.h
969
B
-rw-r--r--
cycx_cfm.h
2.92
KB
-rw-r--r--
dcbnl.h
24.97
KB
-rw-r--r--
dccp.h
6.29
KB
-rw-r--r--
devlink.h
22.17
KB
-rw-r--r--
dlm.h
2.52
KB
-rw-r--r--
dlm_device.h
2.48
KB
-rw-r--r--
dlm_plock.h
916
B
-rw-r--r--
dlmconstants.h
4.97
KB
-rw-r--r--
dm-ioctl.h
11.33
KB
-rw-r--r--
dm-log-userspace.h
14.83
KB
-rw-r--r--
dma-buf.h
7.15
KB
-rw-r--r--
dma-heap.h
1.36
KB
-rw-r--r--
dns_resolver.h
3.86
KB
-rw-r--r--
dpll.h
5.84
KB
-rw-r--r--
dqblk_xfs.h
9.17
KB
-rw-r--r--
dw100.h
357
B
-rw-r--r--
edd.h
5.47
KB
-rw-r--r--
efs_fs_sb.h
2.17
KB
-rw-r--r--
elf-em.h
2.57
KB
-rw-r--r--
elf-fdpic.h
1.58
KB
-rw-r--r--
elf.h
15.13
KB
-rw-r--r--
errno.h
23
B
-rw-r--r--
errqueue.h
1.94
KB
-rw-r--r--
erspan.h
1.03
KB
-rw-r--r--
ethtool.h
86.73
KB
-rw-r--r--
ethtool_netlink.h
26.38
KB
-rw-r--r--
eventfd.h
264
B
-rw-r--r--
eventpoll.h
2.53
KB
-rw-r--r--
ext4.h
4.03
KB
-rw-r--r--
f2fs.h
3.28
KB
-rw-r--r--
fadvise.h
842
B
-rw-r--r--
falloc.h
3.5
KB
-rw-r--r--
fanotify.h
8.17
KB
-rw-r--r--
fb.h
16.09
KB
-rw-r--r--
fcntl.h
4.44
KB
-rw-r--r--
fd.h
11.83
KB
-rw-r--r--
fdreg.h
5.24
KB
-rw-r--r--
fib_rules.h
1.99
KB
-rw-r--r--
fiemap.h
2.71
KB
-rw-r--r--
filter.h
2.16
KB
-rw-r--r--
firewire-cdev.h
49.53
KB
-rw-r--r--
firewire-constants.h
3.16
KB
-rw-r--r--
fou.h
819
B
-rw-r--r--
fpga-dfl.h
8.52
KB
-rw-r--r--
fs.h
13.94
KB
-rw-r--r--
fscrypt.h
6.44
KB
-rw-r--r--
fsi.h
3.02
KB
-rw-r--r--
fsl_hypervisor.h
7.13
KB
-rw-r--r--
fsl_mc.h
734
B
-rw-r--r--
fsmap.h
4.3
KB
-rw-r--r--
fsverity.h
3.11
KB
-rw-r--r--
fuse.h
27.04
KB
-rw-r--r--
futex.h
5.98
KB
-rw-r--r--
gameport.h
897
B
-rw-r--r--
gen_stats.h
1.49
KB
-rw-r--r--
genetlink.h
2.19
KB
-rw-r--r--
gfs2_ondisk.h
14.43
KB
-rw-r--r--
gpio.h
19.46
KB
-rw-r--r--
gsmmux.h
4.4
KB
-rw-r--r--
gtp.h
734
B
-rw-r--r--
handshake.h
1.61
KB
-rw-r--r--
hash_info.h
1.01
KB
-rw-r--r--
hdlc.h
637
B
-rw-r--r--
hdlcdrv.h
2.84
KB
-rw-r--r--
hdreg.h
22.17
KB
-rw-r--r--
hid.h
2.04
KB
-rw-r--r--
hiddev.h
6.2
KB
-rw-r--r--
hidraw.h
1.95
KB
-rw-r--r--
hpet.h
743
B
-rw-r--r--
hsr_netlink.h
1.08
KB
-rw-r--r--
hw_breakpoint.h
605
B
-rw-r--r--
hyperv.h
10.89
KB
-rw-r--r--
i2c-dev.h
1.83
KB
-rw-r--r--
i2c.h
6.73
KB
-rw-r--r--
i2o-dev.h
11.28
KB
-rw-r--r--
i8k.h
1.49
KB
-rw-r--r--
icmp.h
4.67
KB
-rw-r--r--
icmpv6.h
4.17
KB
-rw-r--r--
idxd.h
9.11
KB
-rw-r--r--
if.h
10.67
KB
-rw-r--r--
if_addr.h
2.09
KB
-rw-r--r--
if_addrlabel.h
721
B
-rw-r--r--
if_alg.h
1.56
KB
-rw-r--r--
if_arcnet.h
3.63
KB
-rw-r--r--
if_arp.h
6.43
KB
-rw-r--r--
if_bonding.h
5.02
KB
-rw-r--r--
if_bridge.h
20.18
KB
-rw-r--r--
if_cablemodem.h
986
B
-rw-r--r--
if_eql.h
1.32
KB
-rw-r--r--
if_ether.h
8.56
KB
-rw-r--r--
if_fc.h
1.7
KB
-rw-r--r--
if_fddi.h
4.27
KB
-rw-r--r--
if_hippi.h
4.14
KB
-rw-r--r--
if_infiniband.h
1.22
KB
-rw-r--r--
if_link.h
54.49
KB
-rw-r--r--
if_ltalk.h
210
B
-rw-r--r--
if_macsec.h
6.35
KB
-rw-r--r--
if_packet.h
8.07
KB
-rw-r--r--
if_phonet.h
424
B
-rw-r--r--
if_plip.h
660
B
-rw-r--r--
if_ppp.h
29
B
-rw-r--r--
if_pppol2tp.h
3.23
KB
-rw-r--r--
if_pppox.h
4.76
KB
-rw-r--r--
if_slip.h
872
B
-rw-r--r--
if_team.h
2.54
KB
-rw-r--r--
if_tun.h
4.21
KB
-rw-r--r--
if_tunnel.h
4.79
KB
-rw-r--r--
if_vlan.h
1.79
KB
-rw-r--r--
if_x25.h
881
B
-rw-r--r--
if_xdp.h
4.89
KB
-rw-r--r--
ife.h
351
B
-rw-r--r--
igmp.h
2.99
KB
-rw-r--r--
ila.h
1.22
KB
-rw-r--r--
in.h
10.61
KB
-rw-r--r--
in6.h
7.4
KB
-rw-r--r--
in_route.h
936
B
-rw-r--r--
inet_diag.h
4.9
KB
-rw-r--r--
inotify.h
3.21
KB
-rw-r--r--
input-event-codes.h
29.55
KB
-rw-r--r--
input.h
15.84
KB
-rw-r--r--
io_uring.h
19.26
KB
-rw-r--r--
ioam6.h
2.33
KB
-rw-r--r--
ioam6_genl.h
945
B
-rw-r--r--
ioam6_iptunnel.h
1.26
KB
-rw-r--r--
ioctl.h
163
B
-rw-r--r--
iommu.h
4.79
KB
-rw-r--r--
iommufd.h
24.52
KB
-rw-r--r--
ioprio.h
4.08
KB
-rw-r--r--
ip.h
4.73
KB
-rw-r--r--
ip6_tunnel.h
1.91
KB
-rw-r--r--
ip_vs.h
13.8
KB
-rw-r--r--
ipc.h
2.05
KB
-rw-r--r--
ipmi.h
15.08
KB
-rw-r--r--
ipmi_bmc.h
488
B
-rw-r--r--
ipmi_msgdefs.h
3.35
KB
-rw-r--r--
ipmi_ssif_bmc.h
441
B
-rw-r--r--
ipsec.h
947
B
-rw-r--r--
ipv6.h
4.22
KB
-rw-r--r--
ipv6_route.h
1.86
KB
-rw-r--r--
irqnr.h
104
B
-rw-r--r--
iso_fs.h
6.33
KB
-rw-r--r--
isst_if.h
14.92
KB
-rw-r--r--
ivtv.h
2.95
KB
-rw-r--r--
ivtvfb.h
1.18
KB
-rw-r--r--
jffs2.h
6.65
KB
-rw-r--r--
joystick.h
3.35
KB
-rw-r--r--
kcm.h
822
B
-rw-r--r--
kcmp.h
522
B
-rw-r--r--
kcov.h
1.92
KB
-rw-r--r--
kd.h
6.3
KB
-rw-r--r--
kdev_t.h
383
B
-rw-r--r--
kernel-page-flags.h
900
B
-rw-r--r--
kernel.h
194
B
-rw-r--r--
kernelcapi.h
1019
B
-rw-r--r--
kexec.h
2
KB
-rw-r--r--
keyboard.h
13.14
KB
-rw-r--r--
keyctl.h
5.86
KB
-rw-r--r--
kfd_ioctl.h
52.69
KB
-rw-r--r--
kfd_sysfs.h
5.01
KB
-rw-r--r--
kvm.h
62.15
KB
-rw-r--r--
kvm_para.h
1001
B
-rw-r--r--
l2tp.h
5.61
KB
-rw-r--r--
landlock.h
9.08
KB
-rw-r--r--
libc-compat.h
8.09
KB
-rw-r--r--
limits.h
937
B
-rw-r--r--
lirc.h
8.13
KB
-rw-r--r--
llc.h
3.09
KB
-rw-r--r--
loadpin.h
834
B
-rw-r--r--
loop.h
3.32
KB
-rw-r--r--
lp.h
4.09
KB
-rw-r--r--
lsm.h
2.5
KB
-rw-r--r--
lwtunnel.h
2.31
KB
-rw-r--r--
magic.h
3.77
KB
-rw-r--r--
major.h
4.55
KB
-rw-r--r--
map_to_14segment.h
9.28
KB
-rw-r--r--
map_to_7segment.h
6.45
KB
-rw-r--r--
matroxfb.h
1.43
KB
-rw-r--r--
max2175.h
1.01
KB
-rw-r--r--
mctp.h
1.45
KB
-rw-r--r--
mdio.h
23.54
KB
-rw-r--r--
media-bus-format.h
7.15
KB
-rw-r--r--
media.h
12.46
KB
-rw-r--r--
mei.h
3.39
KB
-rw-r--r--
mei_uuid.h
738
B
-rw-r--r--
membarrier.h
9.34
KB
-rw-r--r--
memfd.h
1.43
KB
-rw-r--r--
mempolicy.h
2.51
KB
-rw-r--r--
mii.h
9.27
KB
-rw-r--r--
minix_fs.h
2.07
KB
-rw-r--r--
mman.h
1.75
KB
-rw-r--r--
mmtimer.h
2.07
KB
-rw-r--r--
module.h
293
B
-rw-r--r--
mount.h
7.75
KB
-rw-r--r--
mpls.h
2.25
KB
-rw-r--r--
mpls_iptunnel.h
761
B
-rw-r--r--
mptcp.h
3.67
KB
-rw-r--r--
mptcp_pm.h
4.3
KB
-rw-r--r--
mqueue.h
2.15
KB
-rw-r--r--
mroute.h
5.78
KB
-rw-r--r--
mroute6.h
4.89
KB
-rw-r--r--
mrp_bridge.h
1.67
KB
-rw-r--r--
msdos_fs.h
6.57
KB
-rw-r--r--
msg.h
3.31
KB
-rw-r--r--
mtio.h
7.98
KB
-rw-r--r--
nbd-netlink.h
2.35
KB
-rw-r--r--
nbd.h
3.53
KB
-rw-r--r--
ncsi.h
4.71
KB
-rw-r--r--
ndctl.h
6.66
KB
-rw-r--r--
neighbour.h
5.96
KB
-rw-r--r--
net.h
2.04
KB
-rw-r--r--
net_dropmon.h
2.85
KB
-rw-r--r--
net_namespace.h
715
B
-rw-r--r--
net_tstamp.h
5.97
KB
-rw-r--r--
netconf.h
614
B
-rw-r--r--
netdev.h
4.23
KB
-rw-r--r--
netdevice.h
2.2
KB
-rw-r--r--
netfilter.h
1.69
KB
-rw-r--r--
netfilter_arp.h
445
B
-rw-r--r--
netfilter_bridge.h
1.14
KB
-rw-r--r--
netfilter_ipv4.h
1.45
KB
-rw-r--r--
netfilter_ipv6.h
1.35
KB
-rw-r--r--
netlink.h
12.1
KB
-rw-r--r--
netlink_diag.h
1.49
KB
-rw-r--r--
netrom.h
807
B
-rw-r--r--
nexthop.h
2.76
KB
-rw-r--r--
nfc.h
10.97
KB
-rw-r--r--
nfs.h
4.39
KB
-rw-r--r--
nfs2.h
1.43
KB
-rw-r--r--
nfs3.h
2.4
KB
-rw-r--r--
nfs4.h
6.39
KB
-rw-r--r--
nfs4_mount.h
1.89
KB
-rw-r--r--
nfs_fs.h
1.62
KB
-rw-r--r--
nfs_idmap.h
2.19
KB
-rw-r--r--
nfs_mount.h
2.09
KB
-rw-r--r--
nfsacl.h
718
B
-rw-r--r--
nfsd_netlink.h
933
B
-rw-r--r--
nilfs2_api.h
7.41
KB
-rw-r--r--
nilfs2_ondisk.h
17.66
KB
-rw-r--r--
nitro_enclaves.h
12.85
KB
-rw-r--r--
nl80211-vnd-intel.h
4.49
KB
-rw-r--r--
nl80211.h
334.96
KB
-rw-r--r--
npcm-video.h
1.19
KB
-rw-r--r--
nsfs.h
639
B
-rw-r--r--
nsm.h
740
B
-rw-r--r--
nubus.h
8
KB
-rw-r--r--
nvme_ioctl.h
2.43
KB
-rw-r--r--
nvram.h
532
B
-rw-r--r--
omap3isp.h
20.45
KB
-rw-r--r--
omapfb.h
5.78
KB
-rw-r--r--
oom.h
511
B
-rw-r--r--
openat2.h
1.42
KB
-rw-r--r--
openvswitch.h
40.05
KB
-rw-r--r--
packet_diag.h
1.63
KB
-rw-r--r--
param.h
141
B
-rw-r--r--
parport.h
3.75
KB
-rw-r--r--
patchkey.h
892
B
-rw-r--r--
pci.h
1.35
KB
-rw-r--r--
pci_regs.h
60.36
KB
-rw-r--r--
pcitest.h
920
B
-rw-r--r--
perf_event.h
42.28
KB
-rw-r--r--
personality.h
2.05
KB
-rw-r--r--
pfkeyv2.h
10.39
KB
-rw-r--r--
pfrut.h
7.8
KB
-rw-r--r--
pg.h
2.34
KB
-rw-r--r--
phantom.h
1.62
KB
-rw-r--r--
phonet.h
4.57
KB
-rw-r--r--
pidfd.h
256
B
-rw-r--r--
pkt_cls.h
18.15
KB
-rw-r--r--
pkt_sched.h
28.66
KB
-rw-r--r--
pktcdvd.h
2.35
KB
-rw-r--r--
pmu.h
5.32
KB
-rw-r--r--
poll.h
22
B
-rw-r--r--
posix_acl.h
1.22
KB
-rw-r--r--
posix_acl_xattr.h
1.09
KB
-rw-r--r--
posix_types.h
1.07
KB
-rw-r--r--
ppdev.h
3.21
KB
-rw-r--r--
ppp-comp.h
2.47
KB
-rw-r--r--
ppp-ioctl.h
5.59
KB
-rw-r--r--
ppp_defs.h
5.43
KB
-rw-r--r--
pps.h
4.62
KB
-rw-r--r--
pr.h
1.59
KB
-rw-r--r--
prctl.h
10.42
KB
-rw-r--r--
psample.h
2.22
KB
-rw-r--r--
psci.h
5.02
KB
-rw-r--r--
psp-dbc.h
5.16
KB
-rw-r--r--
psp-sev.h
4.39
KB
-rw-r--r--
ptp_clock.h
7.46
KB
-rw-r--r--
ptrace.h
5.37
KB
-rw-r--r--
qemu_fw_cfg.h
2.41
KB
-rw-r--r--
qnx4_fs.h
2.27
KB
-rw-r--r--
qnxtypes.h
624
B
-rw-r--r--
qrtr.h
893
B
-rw-r--r--
quota.h
6.16
KB
-rw-r--r--
radeonfb.h
360
B
-rw-r--r--
random.h
1.38
KB
-rw-r--r--
rds.h
10.91
KB
-rw-r--r--
reboot.h
1.31
KB
-rw-r--r--
reiserfs_fs.h
775
B
-rw-r--r--
reiserfs_xattr.h
542
B
-rw-r--r--
remoteproc_cdev.h
1.08
KB
-rw-r--r--
resource.h
2.53
KB
-rw-r--r--
rfkill.h
5.96
KB
-rw-r--r--
rio_cm_cdev.h
3.17
KB
-rw-r--r--
rio_mport_cdev.h
9.11
KB
-rw-r--r--
rkisp1-config.h
33.39
KB
-rw-r--r--
romfs_fs.h
1.21
KB
-rw-r--r--
rose.h
2.18
KB
-rw-r--r--
route.h
2.28
KB
-rw-r--r--
rpl.h
854
B
-rw-r--r--
rpl_iptunnel.h
424
B
-rw-r--r--
rpmsg.h
1.29
KB
-rw-r--r--
rpmsg_types.h
288
B
-rw-r--r--
rseq.h
5.32
KB
-rw-r--r--
rtc.h
5.19
KB
-rw-r--r--
rtnetlink.h
20.85
KB
-rw-r--r--
rxrpc.h
4.81
KB
-rw-r--r--
scc.h
4.52
KB
-rw-r--r--
sched.h
6.12
KB
-rw-r--r--
scif_ioctl.h
6.23
KB
-rw-r--r--
screen_info.h
2.42
KB
-rw-r--r--
sctp.h
35.17
KB
-rw-r--r--
seccomp.h
5.85
KB
-rw-r--r--
securebits.h
2.64
KB
-rw-r--r--
sed-opal.h
5.22
KB
-rw-r--r--
seg6.h
1.14
KB
-rw-r--r--
seg6_genl.h
589
B
-rw-r--r--
seg6_hmac.h
423
B
-rw-r--r--
seg6_iptunnel.h
983
B
-rw-r--r--
seg6_local.h
3.78
KB
-rw-r--r--
selinux_netlink.h
1.17
KB
-rw-r--r--
sem.h
2.98
KB
-rw-r--r--
serial.h
5.12
KB
-rw-r--r--
serial_core.h
4.93
KB
-rw-r--r--
serial_reg.h
15.65
KB
-rw-r--r--
serio.h
2.05
KB
-rw-r--r--
sev-guest.h
2.31
KB
-rw-r--r--
shm.h
3.71
KB
-rw-r--r--
signal.h
388
B
-rw-r--r--
signalfd.h
1.2
KB
-rw-r--r--
smc.h
8.46
KB
-rw-r--r--
smc_diag.h
2.88
KB
-rw-r--r--
smiapp.h
1.03
KB
-rw-r--r--
snmp.h
14.19
KB
-rw-r--r--
sock_diag.h
1.27
KB
-rw-r--r--
socket.h
1.02
KB
-rw-r--r--
sockios.h
6.69
KB
-rw-r--r--
sonet.h
2.24
KB
-rw-r--r--
sonypi.h
5.18
KB
-rw-r--r--
sound.h
1.21
KB
-rw-r--r--
soundcard.h
44.97
KB
-rw-r--r--
stat.h
6.84
KB
-rw-r--r--
stddef.h
1.94
KB
-rw-r--r--
stm.h
1.24
KB
-rw-r--r--
string.h
238
B
-rw-r--r--
suspend_ioctls.h
1.4
KB
-rw-r--r--
swab.h
6.78
KB
-rw-r--r--
switchtec_ioctl.h
5.14
KB
-rw-r--r--
sync_file.h
3.37
KB
-rw-r--r--
synclink.h
8.77
KB
-rw-r--r--
sysctl.h
25.42
KB
-rw-r--r--
sysinfo.h
1.02
KB
-rw-r--r--
target_core_user.h
4.54
KB
-rw-r--r--
taskstats.h
8.13
KB
-rw-r--r--
tcp.h
16.62
KB
-rw-r--r--
tcp_metrics.h
1.51
KB
-rw-r--r--
tdx-guest.h
1.27
KB
-rw-r--r--
tee.h
13.09
KB
-rw-r--r--
termios.h
172
B
-rw-r--r--
thermal.h
3.23
KB
-rw-r--r--
thp7312.h
659
B
-rw-r--r--
time.h
1.71
KB
-rw-r--r--
time_types.h
1.24
KB
-rw-r--r--
timerfd.h
936
B
-rw-r--r--
times.h
278
B
-rw-r--r--
timex.h
7.63
KB
-rw-r--r--
tiocl.h
1.69
KB
-rw-r--r--
tipc.h
8.62
KB
-rw-r--r--
tipc_config.h
14.57
KB
-rw-r--r--
tipc_netlink.h
9.17
KB
-rw-r--r--
tipc_sockets_diag.h
468
B
-rw-r--r--
tls.h
7.06
KB
-rw-r--r--
toshiba.h
1.88
KB
-rw-r--r--
tps6594_pfsm.h
1.13
KB
-rw-r--r--
tty.h
1.74
KB
-rw-r--r--
tty_flags.h
4.4
KB
-rw-r--r--
types.h
1.73
KB
-rw-r--r--
ublk_cmd.h
11.69
KB
-rw-r--r--
udf_fs_i.h
697
B
-rw-r--r--
udmabuf.h
643
B
-rw-r--r--
udp.h
1.65
KB
-rw-r--r--
uhid.h
4.54
KB
-rw-r--r--
uinput.h
9.04
KB
-rw-r--r--
uio.h
732
B
-rw-r--r--
uleds.h
798
B
-rw-r--r--
ultrasound.h
4.46
KB
-rw-r--r--
um_timetravel.h
3.87
KB
-rw-r--r--
un.h
384
B
-rw-r--r--
unistd.h
220
B
-rw-r--r--
unix_diag.h
1.3
KB
-rw-r--r--
usbdevice_fs.h
8.12
KB
-rw-r--r--
usbip.h
1.47
KB
-rw-r--r--
user_events.h
2.29
KB
-rw-r--r--
userfaultfd.h
11.74
KB
-rw-r--r--
userio.h
1.48
KB
-rw-r--r--
utime.h
223
B
-rw-r--r--
utsname.h
669
B
-rw-r--r--
uuid.h
28
B
-rw-r--r--
uvcvideo.h
2.57
KB
-rw-r--r--
v4l2-common.h
2.01
KB
-rw-r--r--
v4l2-controls.h
145.84
KB
-rw-r--r--
v4l2-dv-timings.h
30.39
KB
-rw-r--r--
v4l2-mediabus.h
5.11
KB
-rw-r--r--
v4l2-subdev.h
9.77
KB
-rw-r--r--
vbox_err.h
7.09
KB
-rw-r--r--
vbox_vmmdev_types.h
11.38
KB
-rw-r--r--
vboxguest.h
9.15
KB
-rw-r--r--
vdpa.h
1.74
KB
-rw-r--r--
vduse.h
9.58
KB
-rw-r--r--
version.h
216
B
-rw-r--r--
veth.h
224
B
-rw-r--r--
vfio.h
70.18
KB
-rw-r--r--
vfio_ccw.h
1.29
KB
-rw-r--r--
vfio_zdev.h
2.48
KB
-rw-r--r--
vhost.h
9.74
KB
-rw-r--r--
vhost_types.h
5.14
KB
-rw-r--r--
videodev2.h
98.5
KB
-rw-r--r--
virtio_9p.h
2
KB
-rw-r--r--
virtio_balloon.h
5.16
KB
-rw-r--r--
virtio_blk.h
9.75
KB
-rw-r--r--
virtio_bt.h
910
B
-rw-r--r--
virtio_config.h
4.65
KB
-rw-r--r--
virtio_console.h
3.08
KB
-rw-r--r--
virtio_crypto.h
16.09
KB
-rw-r--r--
virtio_fs.h
573
B
-rw-r--r--
virtio_gpio.h
1.67
KB
-rw-r--r--
virtio_gpu.h
11.19
KB
-rw-r--r--
virtio_i2c.h
1.16
KB
-rw-r--r--
virtio_ids.h
4.2
KB
-rw-r--r--
virtio_input.h
2.46
KB
-rw-r--r--
virtio_iommu.h
3.84
KB
-rw-r--r--
virtio_mem.h
6.99
KB
-rw-r--r--
virtio_mmio.h
4.85
KB
-rw-r--r--
virtio_net.h
15.08
KB
-rw-r--r--
virtio_pci.h
9.41
KB
-rw-r--r--
virtio_pcidev.h
2.39
KB
-rw-r--r--
virtio_pmem.h
882
B
-rw-r--r--
virtio_ring.h
8.52
KB
-rw-r--r--
virtio_rng.h
265
B
-rw-r--r--
virtio_scmi.h
637
B
-rw-r--r--
virtio_scsi.h
5.94
KB
-rw-r--r--
virtio_snd.h
9.09
KB
-rw-r--r--
virtio_types.h
2.1
KB
-rw-r--r--
virtio_vsock.h
3.27
KB
-rw-r--r--
vm_sockets.h
7.18
KB
-rw-r--r--
vm_sockets_diag.h
963
B
-rw-r--r--
vmcore.h
455
B
-rw-r--r--
vsockmon.h
1.84
KB
-rw-r--r--
vt.h
2.99
KB
-rw-r--r--
vtpm_proxy.h
1.68
KB
-rw-r--r--
wait.h
682
B
-rw-r--r--
watch_queue.h
3.41
KB
-rw-r--r--
watchdog.h
2.28
KB
-rw-r--r--
wireguard.h
7.57
KB
-rw-r--r--
wireless.h
41.7
KB
-rw-r--r--
wmi.h
1.72
KB
-rw-r--r--
wwan.h
295
B
-rw-r--r--
x25.h
3.48
KB
-rw-r--r--
xattr.h
2.95
KB
-rw-r--r--
xdp_diag.h
1.43
KB
-rw-r--r--
xfrm.h
12.42
KB
-rw-r--r--
xilinx-v4l2-controls.h
2.91
KB
-rw-r--r--
zorro.h
3.22
KB
-rw-r--r--
zorro_ids.h
29.36
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : acrn.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Userspace interface for /dev/acrn_hsm - ACRN Hypervisor Service Module * * This file can be used by applications that need to communicate with the HSM * via the ioctl interface. * * Copyright (C) 2021 Intel Corporation. All rights reserved. */ #ifndef _ACRN_H #define _ACRN_H #include <linux/types.h> #define ACRN_IO_REQUEST_MAX 16 #define ACRN_IOREQ_STATE_PENDING 0 #define ACRN_IOREQ_STATE_COMPLETE 1 #define ACRN_IOREQ_STATE_PROCESSING 2 #define ACRN_IOREQ_STATE_FREE 3 #define ACRN_IOREQ_TYPE_PORTIO 0 #define ACRN_IOREQ_TYPE_MMIO 1 #define ACRN_IOREQ_TYPE_PCICFG 2 #define ACRN_IOREQ_DIR_READ 0 #define ACRN_IOREQ_DIR_WRITE 1 /** * struct acrn_mmio_request - Info of a MMIO I/O request * @direction: Access direction of this request (ACRN_IOREQ_DIR_*) * @reserved: Reserved for alignment and should be 0 * @address: Access address of this MMIO I/O request * @size: Access size of this MMIO I/O request * @value: Read/write value of this MMIO I/O request */ struct acrn_mmio_request { __u32 direction; __u32 reserved; __u64 address; __u64 size; __u64 value; }; /** * struct acrn_pio_request - Info of a PIO I/O request * @direction: Access direction of this request (ACRN_IOREQ_DIR_*) * @reserved: Reserved for alignment and should be 0 * @address: Access address of this PIO I/O request * @size: Access size of this PIO I/O request * @value: Read/write value of this PIO I/O request */ struct acrn_pio_request { __u32 direction; __u32 reserved; __u64 address; __u64 size; __u32 value; }; /** * struct acrn_pci_request - Info of a PCI I/O request * @direction: Access direction of this request (ACRN_IOREQ_DIR_*) * @reserved: Reserved for alignment and should be 0 * @size: Access size of this PCI I/O request * @value: Read/write value of this PIO I/O request * @bus: PCI bus value of this PCI I/O request * @dev: PCI device value of this PCI I/O request * @func: PCI function value of this PCI I/O request * @reg: PCI config space offset of this PCI I/O request * * Need keep same header layout with &struct acrn_pio_request. */ struct acrn_pci_request { __u32 direction; __u32 reserved[3]; __u64 size; __u32 value; __u32 bus; __u32 dev; __u32 func; __u32 reg; }; /** * struct acrn_io_request - 256-byte ACRN I/O request * @type: Type of this request (ACRN_IOREQ_TYPE_*). * @completion_polling: Polling flag. Hypervisor will poll completion of the * I/O request if this flag set. * @reserved0: Reserved fields. * @reqs: Union of different types of request. Byte offset: 64. * @reqs.pio_request: PIO request data of the I/O request. * @reqs.pci_request: PCI configuration space request data of the I/O request. * @reqs.mmio_request: MMIO request data of the I/O request. * @reqs.data: Raw data of the I/O request. * @reserved1: Reserved fields. * @kernel_handled: Flag indicates this request need be handled in kernel. * @processed: The status of this request (ACRN_IOREQ_STATE_*). * * The state transitions of ACRN I/O request: * * FREE -> PENDING -> PROCESSING -> COMPLETE -> FREE -> ... * * An I/O request in COMPLETE or FREE state is owned by the hypervisor. HSM and * ACRN userspace are in charge of processing the others. * * On basis of the states illustrated above, a typical lifecycle of ACRN IO * request would look like: * * Flow (assume the initial state is FREE) * | * | Service VM vCPU 0 Service VM vCPU x User vCPU y * | * | hypervisor: * | fills in type, addr, etc. * | pauses the User VM vCPU y * | sets the state to PENDING (a) * | fires an upcall to Service VM * | * | HSM: * | scans for PENDING requests * | sets the states to PROCESSING (b) * | assigns the requests to clients (c) * V * | client: * | scans for the assigned requests * | handles the requests (d) * | HSM: * | sets states to COMPLETE * | notifies the hypervisor * | * | hypervisor: * | resumes User VM vCPU y (e) * | * | hypervisor: * | post handling (f) * V sets states to FREE * * Note that the procedures (a) to (f) in the illustration above require to be * strictly processed in the order. One vCPU cannot trigger another request of * I/O emulation before completing the previous one. * * Atomic and barriers are required when HSM and hypervisor accessing the state * of &struct acrn_io_request. * */ struct acrn_io_request { __u32 type; __u32 completion_polling; __u32 reserved0[14]; union { struct acrn_pio_request pio_request; struct acrn_pci_request pci_request; struct acrn_mmio_request mmio_request; __u64 data[8]; } reqs; __u32 reserved1; __u32 kernel_handled; __u32 processed; } __attribute__((aligned(256))); struct acrn_io_request_buffer { union { struct acrn_io_request req_slot[ACRN_IO_REQUEST_MAX]; __u8 reserved[4096]; }; }; /** * struct acrn_ioreq_notify - The structure of ioreq completion notification * @vmid: User VM ID * @reserved: Reserved and should be 0 * @vcpu: vCPU ID */ struct acrn_ioreq_notify { __u16 vmid; __u16 reserved; __u32 vcpu; }; /** * struct acrn_vm_creation - Info to create a User VM * @vmid: User VM ID returned from the hypervisor * @reserved0: Reserved and must be 0 * @vcpu_num: Number of vCPU in the VM. Return from hypervisor. * @reserved1: Reserved and must be 0 * @uuid: Empty space never to be used again (used to be UUID of the VM) * @vm_flag: Flag of the VM creating. Pass to hypervisor directly. * @ioreq_buf: Service VM GPA of I/O request buffer. Pass to * hypervisor directly. * @cpu_affinity: CPU affinity of the VM. Pass to hypervisor directly. * It's a bitmap which indicates CPUs used by the VM. */ struct acrn_vm_creation { __u16 vmid; __u16 reserved0; __u16 vcpu_num; __u16 reserved1; __u8 uuid[16]; __u64 vm_flag; __u64 ioreq_buf; __u64 cpu_affinity; }; /** * struct acrn_gp_regs - General registers of a User VM * @rax: Value of register RAX * @rcx: Value of register RCX * @rdx: Value of register RDX * @rbx: Value of register RBX * @rsp: Value of register RSP * @rbp: Value of register RBP * @rsi: Value of register RSI * @rdi: Value of register RDI * @r8: Value of register R8 * @r9: Value of register R9 * @r10: Value of register R10 * @r11: Value of register R11 * @r12: Value of register R12 * @r13: Value of register R13 * @r14: Value of register R14 * @r15: Value of register R15 */ struct acrn_gp_regs { __le64 rax; __le64 rcx; __le64 rdx; __le64 rbx; __le64 rsp; __le64 rbp; __le64 rsi; __le64 rdi; __le64 r8; __le64 r9; __le64 r10; __le64 r11; __le64 r12; __le64 r13; __le64 r14; __le64 r15; }; /** * struct acrn_descriptor_ptr - Segment descriptor table of a User VM. * @limit: Limit field. * @base: Base field. * @reserved: Reserved and must be 0. */ struct acrn_descriptor_ptr { __le16 limit; __le64 base; __le16 reserved[3]; } __attribute__ ((__packed__)); /** * struct acrn_regs - Registers structure of a User VM * @gprs: General registers * @gdt: Global Descriptor Table * @idt: Interrupt Descriptor Table * @rip: Value of register RIP * @cs_base: Base of code segment selector * @cr0: Value of register CR0 * @cr4: Value of register CR4 * @cr3: Value of register CR3 * @ia32_efer: Value of IA32_EFER MSR * @rflags: Value of regsiter RFLAGS * @reserved_64: Reserved and must be 0 * @cs_ar: Attribute field of code segment selector * @cs_limit: Limit field of code segment selector * @reserved_32: Reserved and must be 0 * @cs_sel: Value of code segment selector * @ss_sel: Value of stack segment selector * @ds_sel: Value of data segment selector * @es_sel: Value of extra segment selector * @fs_sel: Value of FS selector * @gs_sel: Value of GS selector * @ldt_sel: Value of LDT descriptor selector * @tr_sel: Value of TSS descriptor selector */ struct acrn_regs { struct acrn_gp_regs gprs; struct acrn_descriptor_ptr gdt; struct acrn_descriptor_ptr idt; __le64 rip; __le64 cs_base; __le64 cr0; __le64 cr4; __le64 cr3; __le64 ia32_efer; __le64 rflags; __le64 reserved_64[4]; __le32 cs_ar; __le32 cs_limit; __le32 reserved_32[3]; __le16 cs_sel; __le16 ss_sel; __le16 ds_sel; __le16 es_sel; __le16 fs_sel; __le16 gs_sel; __le16 ldt_sel; __le16 tr_sel; }; /** * struct acrn_vcpu_regs - Info of vCPU registers state * @vcpu_id: vCPU ID * @reserved: Reserved and must be 0 * @vcpu_regs: vCPU registers state * * This structure will be passed to hypervisor directly. */ struct acrn_vcpu_regs { __u16 vcpu_id; __u16 reserved[3]; struct acrn_regs vcpu_regs; }; #define ACRN_MEM_ACCESS_RIGHT_MASK 0x00000007U #define ACRN_MEM_ACCESS_READ 0x00000001U #define ACRN_MEM_ACCESS_WRITE 0x00000002U #define ACRN_MEM_ACCESS_EXEC 0x00000004U #define ACRN_MEM_ACCESS_RWX (ACRN_MEM_ACCESS_READ | \ ACRN_MEM_ACCESS_WRITE | \ ACRN_MEM_ACCESS_EXEC) #define ACRN_MEM_TYPE_MASK 0x000007C0U #define ACRN_MEM_TYPE_WB 0x00000040U #define ACRN_MEM_TYPE_WT 0x00000080U #define ACRN_MEM_TYPE_UC 0x00000100U #define ACRN_MEM_TYPE_WC 0x00000200U #define ACRN_MEM_TYPE_WP 0x00000400U /* Memory mapping types */ #define ACRN_MEMMAP_RAM 0 #define ACRN_MEMMAP_MMIO 1 /** * struct acrn_vm_memmap - A EPT memory mapping info for a User VM. * @type: Type of the memory mapping (ACRM_MEMMAP_*). * Pass to hypervisor directly. * @attr: Attribute of the memory mapping. * Pass to hypervisor directly. * @user_vm_pa: Physical address of User VM. * Pass to hypervisor directly. * @service_vm_pa: Physical address of Service VM. * Pass to hypervisor directly. * @vma_base: VMA address of Service VM. Pass to hypervisor directly. * @len: Length of the memory mapping. * Pass to hypervisor directly. */ struct acrn_vm_memmap { __u32 type; __u32 attr; __u64 user_vm_pa; union { __u64 service_vm_pa; __u64 vma_base; }; __u64 len; }; /* Type of interrupt of a passthrough device */ #define ACRN_PTDEV_IRQ_INTX 0 #define ACRN_PTDEV_IRQ_MSI 1 #define ACRN_PTDEV_IRQ_MSIX 2 /** * struct acrn_ptdev_irq - Interrupt data of a passthrough device. * @type: Type (ACRN_PTDEV_IRQ_*) * @virt_bdf: Virtual Bus/Device/Function * @phys_bdf: Physical Bus/Device/Function * @intx: Info of interrupt * @intx.virt_pin: Virtual IOAPIC pin * @intx.phys_pin: Physical IOAPIC pin * @intx.is_pic_pin: Is PIC pin or not * * This structure will be passed to hypervisor directly. */ struct acrn_ptdev_irq { __u32 type; __u16 virt_bdf; __u16 phys_bdf; struct { __u32 virt_pin; __u32 phys_pin; __u32 is_pic_pin; } intx; }; /* Type of PCI device assignment */ #define ACRN_PTDEV_QUIRK_ASSIGN (1U << 0) #define ACRN_MMIODEV_RES_NUM 3 #define ACRN_PCI_NUM_BARS 6 /** * struct acrn_pcidev - Info for assigning or de-assigning a PCI device * @type: Type of the assignment * @virt_bdf: Virtual Bus/Device/Function * @phys_bdf: Physical Bus/Device/Function * @intr_line: PCI interrupt line * @intr_pin: PCI interrupt pin * @bar: PCI BARs. * * This structure will be passed to hypervisor directly. */ struct acrn_pcidev { __u32 type; __u16 virt_bdf; __u16 phys_bdf; __u8 intr_line; __u8 intr_pin; __u32 bar[ACRN_PCI_NUM_BARS]; }; /** * struct acrn_mmiodev - Info for assigning or de-assigning a MMIO device * @name: Name of the MMIO device. * @res[].user_vm_pa: Physical address of User VM of the MMIO region * for the MMIO device. * @res[].service_vm_pa: Physical address of Service VM of the MMIO * region for the MMIO device. * @res[].size: Size of the MMIO region for the MMIO device. * @res[].mem_type: Memory type of the MMIO region for the MMIO * device. * * This structure will be passed to hypervisor directly. */ struct acrn_mmiodev { __u8 name[8]; struct { __u64 user_vm_pa; __u64 service_vm_pa; __u64 size; __u64 mem_type; } res[ACRN_MMIODEV_RES_NUM]; }; /** * struct acrn_vdev - Info for creating or destroying a virtual device * @id: Union of identifier of the virtual device * @id.value: Raw data of the identifier * @id.fields.vendor: Vendor id of the virtual PCI device * @id.fields.device: Device id of the virtual PCI device * @id.fields.legacy_id: ID of the virtual device if not a PCI device * @slot: Virtual Bus/Device/Function of the virtual * device * @io_base: IO resource base address of the virtual device * @io_size: IO resource size of the virtual device * @args: Arguments for the virtual device creation * * The created virtual device can be a PCI device or a legacy device (e.g. * a virtual UART controller) and it is emulated by the hypervisor. This * structure will be passed to hypervisor directly. */ struct acrn_vdev { /* * the identifier of the device, the low 32 bits represent the vendor * id and device id of PCI device and the high 32 bits represent the * device number of the legacy device */ union { __u64 value; struct { __le16 vendor; __le16 device; __le32 legacy_id; } fields; } id; __u64 slot; __u32 io_addr[ACRN_PCI_NUM_BARS]; __u32 io_size[ACRN_PCI_NUM_BARS]; __u8 args[128]; }; /** * struct acrn_msi_entry - Info for injecting a MSI interrupt to a VM * @msi_addr: MSI addr[19:12] with dest vCPU ID * @msi_data: MSI data[7:0] with vector */ struct acrn_msi_entry { __u64 msi_addr; __u64 msi_data; }; struct acrn_acpi_generic_address { __u8 space_id; __u8 bit_width; __u8 bit_offset; __u8 access_size; __u64 address; } __attribute__ ((__packed__)); /** * struct acrn_cstate_data - A C state package defined in ACPI * @cx_reg: Register of the C state object * @type: Type of the C state object * @latency: The worst-case latency to enter and exit this C state * @power: The average power consumption when in this C state */ struct acrn_cstate_data { struct acrn_acpi_generic_address cx_reg; __u8 type; __u32 latency; __u64 power; }; /** * struct acrn_pstate_data - A P state package defined in ACPI * @core_frequency: CPU frequency (in MHz). * @power: Power dissipation (in milliwatts). * @transition_latency: The worst-case latency in microseconds that CPU is * unavailable during a transition from any P state to * this P state. * @bus_master_latency: The worst-case latency in microseconds that Bus Masters * are prevented from accessing memory during a transition * from any P state to this P state. * @control: The value to be written to Performance Control Register * @status: Transition status. */ struct acrn_pstate_data { __u64 core_frequency; __u64 power; __u64 transition_latency; __u64 bus_master_latency; __u64 control; __u64 status; }; #define PMCMD_TYPE_MASK 0x000000ff enum acrn_pm_cmd_type { ACRN_PMCMD_GET_PX_CNT, ACRN_PMCMD_GET_PX_DATA, ACRN_PMCMD_GET_CX_CNT, ACRN_PMCMD_GET_CX_DATA, }; #define ACRN_IOEVENTFD_FLAG_PIO 0x01 #define ACRN_IOEVENTFD_FLAG_DATAMATCH 0x02 #define ACRN_IOEVENTFD_FLAG_DEASSIGN 0x04 /** * struct acrn_ioeventfd - Data to operate a &struct hsm_ioeventfd * @fd: The fd of eventfd associated with a hsm_ioeventfd * @flags: Logical-OR of ACRN_IOEVENTFD_FLAG_* * @addr: The start address of IO range of ioeventfd * @len: The length of IO range of ioeventfd * @reserved: Reserved and should be 0 * @data: Data for data matching * * Without flag ACRN_IOEVENTFD_FLAG_DEASSIGN, ioctl ACRN_IOCTL_IOEVENTFD * creates a &struct hsm_ioeventfd with properties originated from &struct * acrn_ioeventfd. With flag ACRN_IOEVENTFD_FLAG_DEASSIGN, ioctl * ACRN_IOCTL_IOEVENTFD destroys the &struct hsm_ioeventfd matching the fd. */ struct acrn_ioeventfd { __u32 fd; __u32 flags; __u64 addr; __u32 len; __u32 reserved; __u64 data; }; #define ACRN_IRQFD_FLAG_DEASSIGN 0x01 /** * struct acrn_irqfd - Data to operate a &struct hsm_irqfd * @fd: The fd of eventfd associated with a hsm_irqfd * @flags: Logical-OR of ACRN_IRQFD_FLAG_* * @msi: Info of MSI associated with the irqfd */ struct acrn_irqfd { __s32 fd; __u32 flags; struct acrn_msi_entry msi; }; /* The ioctl type, documented in ioctl-number.rst */ #define ACRN_IOCTL_TYPE 0xA2 /* * Common IOCTL IDs definition for ACRN userspace */ #define ACRN_IOCTL_CREATE_VM \ _IOWR(ACRN_IOCTL_TYPE, 0x10, struct acrn_vm_creation) #define ACRN_IOCTL_DESTROY_VM \ _IO(ACRN_IOCTL_TYPE, 0x11) #define ACRN_IOCTL_START_VM \ _IO(ACRN_IOCTL_TYPE, 0x12) #define ACRN_IOCTL_PAUSE_VM \ _IO(ACRN_IOCTL_TYPE, 0x13) #define ACRN_IOCTL_RESET_VM \ _IO(ACRN_IOCTL_TYPE, 0x15) #define ACRN_IOCTL_SET_VCPU_REGS \ _IOW(ACRN_IOCTL_TYPE, 0x16, struct acrn_vcpu_regs) #define ACRN_IOCTL_INJECT_MSI \ _IOW(ACRN_IOCTL_TYPE, 0x23, struct acrn_msi_entry) #define ACRN_IOCTL_VM_INTR_MONITOR \ _IOW(ACRN_IOCTL_TYPE, 0x24, unsigned long) #define ACRN_IOCTL_SET_IRQLINE \ _IOW(ACRN_IOCTL_TYPE, 0x25, __u64) #define ACRN_IOCTL_NOTIFY_REQUEST_FINISH \ _IOW(ACRN_IOCTL_TYPE, 0x31, struct acrn_ioreq_notify) #define ACRN_IOCTL_CREATE_IOREQ_CLIENT \ _IO(ACRN_IOCTL_TYPE, 0x32) #define ACRN_IOCTL_ATTACH_IOREQ_CLIENT \ _IO(ACRN_IOCTL_TYPE, 0x33) #define ACRN_IOCTL_DESTROY_IOREQ_CLIENT \ _IO(ACRN_IOCTL_TYPE, 0x34) #define ACRN_IOCTL_CLEAR_VM_IOREQ \ _IO(ACRN_IOCTL_TYPE, 0x35) #define ACRN_IOCTL_SET_MEMSEG \ _IOW(ACRN_IOCTL_TYPE, 0x41, struct acrn_vm_memmap) #define ACRN_IOCTL_UNSET_MEMSEG \ _IOW(ACRN_IOCTL_TYPE, 0x42, struct acrn_vm_memmap) #define ACRN_IOCTL_SET_PTDEV_INTR \ _IOW(ACRN_IOCTL_TYPE, 0x53, struct acrn_ptdev_irq) #define ACRN_IOCTL_RESET_PTDEV_INTR \ _IOW(ACRN_IOCTL_TYPE, 0x54, struct acrn_ptdev_irq) #define ACRN_IOCTL_ASSIGN_PCIDEV \ _IOW(ACRN_IOCTL_TYPE, 0x55, struct acrn_pcidev) #define ACRN_IOCTL_DEASSIGN_PCIDEV \ _IOW(ACRN_IOCTL_TYPE, 0x56, struct acrn_pcidev) #define ACRN_IOCTL_ASSIGN_MMIODEV \ _IOW(ACRN_IOCTL_TYPE, 0x57, struct acrn_mmiodev) #define ACRN_IOCTL_DEASSIGN_MMIODEV \ _IOW(ACRN_IOCTL_TYPE, 0x58, struct acrn_mmiodev) #define ACRN_IOCTL_CREATE_VDEV \ _IOW(ACRN_IOCTL_TYPE, 0x59, struct acrn_vdev) #define ACRN_IOCTL_DESTROY_VDEV \ _IOW(ACRN_IOCTL_TYPE, 0x5A, struct acrn_vdev) #define ACRN_IOCTL_PM_GET_CPU_STATE \ _IOWR(ACRN_IOCTL_TYPE, 0x60, __u64) #define ACRN_IOCTL_IOEVENTFD \ _IOW(ACRN_IOCTL_TYPE, 0x70, struct acrn_ioeventfd) #define ACRN_IOCTL_IRQFD \ _IOW(ACRN_IOCTL_TYPE, 0x71, struct acrn_irqfd) #endif /* _ACRN_H */
Close