!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.23.4. PHP/5.6.40-65+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux foro-restaurado-2 5.15.0-1040-oracle #46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023
aarch64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/src/linux-oracle-6.8-headers-6.8.0-1028/arch/arm64/include/asm/   drwxr-xr-x
Free 83.36 GB of 96.73 GB (86.18%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     kvm_nested.h (1.73 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __ARM64_KVM_NESTED_H
#define __ARM64_KVM_NESTED_H

#include <linux/bitfield.h>
#include <linux/kvm_host.h>
#include <asm/kvm_emulate.h>

static inline bool vcpu_has_nv(const struct kvm_vcpu *vcpu)
{
    return (!__is_defined(__KVM_NVHE_HYPERVISOR__) &&
        cpus_have_final_cap(ARM64_HAS_NESTED_VIRT) &&
        vcpu_has_feature(vcpu, KVM_ARM_VCPU_HAS_EL2));
}

/* Translation helpers from non-VHE EL2 to EL1 */
static inline u64 tcr_el2_ps_to_tcr_el1_ips(u64 tcr_el2)
{
    return (u64)FIELD_GET(TCR_EL2_PS_MASK, tcr_el2) << TCR_IPS_SHIFT;
}

static inline u64 translate_tcr_el2_to_tcr_el1(u64 tcr)
{
    return TCR_EPD1_MASK |                /* disable TTBR1_EL1 */
           ((tcr & TCR_EL2_TBI) ? TCR_TBI0 : 0) |
           tcr_el2_ps_to_tcr_el1_ips(tcr) |
           (tcr & TCR_EL2_TG0_MASK) |
           (tcr & TCR_EL2_ORGN0_MASK) |
           (tcr & TCR_EL2_IRGN0_MASK) |
           (tcr & TCR_EL2_T0SZ_MASK);
}

static inline u64 translate_cptr_el2_to_cpacr_el1(u64 cptr_el2)
{
    u64 cpacr_el1 = 0;

    if (cptr_el2 & CPTR_EL2_TTA)
        cpacr_el1 |= CPACR_ELx_TTA;
    if (!(cptr_el2 & CPTR_EL2_TFP))
        cpacr_el1 |= CPACR_ELx_FPEN;
    if (!(cptr_el2 & CPTR_EL2_TZ))
        cpacr_el1 |= CPACR_ELx_ZEN;

    return cpacr_el1;
}

static inline u64 translate_sctlr_el2_to_sctlr_el1(u64 val)
{
    /* Only preserve the minimal set of bits we support */
    val &= (SCTLR_ELx_M | SCTLR_ELx_A | SCTLR_ELx_C | SCTLR_ELx_SA |
        SCTLR_ELx_I | SCTLR_ELx_IESB | SCTLR_ELx_WXN | SCTLR_ELx_EE);
    val |= SCTLR_EL1_RES1;

    return val;
}

static inline u64 translate_ttbr0_el2_to_ttbr0_el1(u64 ttbr0)
{
    /* Clear the ASID field */
    return ttbr0 & ~GENMASK_ULL(63, 48);
}

extern bool __check_nv_sr_forward(struct kvm_vcpu *vcpu);

int kvm_init_nv_sysregs(struct kvm *kvm);

#endif /* __ARM64_KVM_NESTED_H */

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by HackingTool | HackingTool | Generation time: 0.0032 ]--