Skip to content

Commit 0797d65

Browse files
committed
Fix the patch
1 parent b4ab23c commit 0797d65

File tree

109 files changed

+17870
-3492
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+17870
-3492
lines changed

.config

Lines changed: 4903 additions & 0 deletions
Large diffs are not rendered by default.

.config.old

Lines changed: 4898 additions & 0 deletions
Large diffs are not rendered by default.

.version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1

Module.symvers

Lines changed: 7768 additions & 0 deletions
Large diffs are not rendered by default.

arch/arm/kvm/arm.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,14 @@
4545
#include <asm/kvm_coproc.h>
4646
#include <asm/kvm_psci.h>
4747

48+
#include <linux/arm.h> // Quick and dirty wrapper
49+
#include <linux/vmm-kvm.h>
50+
4851
#ifdef REQUIRES_VIRT
4952
__asm__(".arch_extension virt");
5053
#endif
5154

52-
static DEFINE_PER_CPU(unsigned long, kvm_arm_hyp_stack_page);
55+
//static DEFINE_PER_CPU(unsigned long, kvm_arm_hyp_stack_page);
5356
static kvm_cpu_context_t __percpu *kvm_host_cpu_state;
5457
static unsigned long hyp_default_vectors;
5558

@@ -806,8 +809,7 @@ long kvm_arch_vm_ioctl(struct file *filp,
806809
}
807810
}
808811

809-
+static unsigned long hyp_stack_base;
810-
+void vmm_init_kvm(phys_addr_t code, phys_addr_t boot_pgd_ptr, phys_addr_t pgd_ptr, unsigned long hyp_stack_ptr, unsigned long vector_ptr);
812+
static unsigned long hyp_stack_base;
811813

812814
static void cpu_init_hyp_mode(void *dummy)
813815
{
@@ -823,6 +825,7 @@ static void cpu_init_hyp_mode(void *dummy)
823825
boot_pgd_ptr = kvm_mmu_get_boot_httbr();
824826
pgd_ptr = kvm_mmu_get_httbr();
825827
//stack_page = __this_cpu_read(kvm_arm_hyp_stack_page);
828+
stack_page = hyp_stack_base;
826829
hyp_stack_ptr = stack_page + PAGE_SIZE;
827830
vector_ptr = (unsigned long)__kvm_hyp_vector;
828831

@@ -1037,7 +1040,7 @@ static int init_hyp_mode(void)
10371040
free_percpu(kvm_host_cpu_state);
10381041
out_free_mappings:
10391042
free_hyp_pgds();
1040-
out_free_stack_base:
1043+
//out_free_stack_base:
10411044
//for_each_possible_cpu(cpu)
10421045
// free_page(per_cpu(kvm_arm_hyp_stack_page, cpu));
10431046
out_err:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

include/config/auto.conf

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,11 @@ CONFIG_HAVE_ARCH_MMAP_RND_BITS=y
4545
CONFIG_HID_SPEEDLINK=y
4646
CONFIG_TCP_CONG_HTCP=y
4747
CONFIG_EXT4_FS_POSIX_ACL=y
48+
CONFIG_BINFMT_MISC=y
4849
CONFIG_NETFILTER_XT_MATCH_HELPER=y
4950
CONFIG_SSB_POSSIBLE=y
5051
CONFIG_EXYNOS_SNAPSHOT_CALLSTACK=4
52+
CONFIG_MMU_NOTIFIER=y
5153
CONFIG_ASYMMETRIC_KEY_TYPE=y
5254
CONFIG_NETFILTER_XT_MATCH_STATISTIC=y
5355
CONFIG_UHID=y
@@ -196,6 +198,7 @@ CONFIG_NF_CONNTRACK_SANE=y
196198
CONFIG_FAT_VIRTUAL_XATTR=y
197199
CONFIG_NF_HISTORY=y
198200
CONFIG_HAVE_BPF_JIT=y
201+
CONFIG_PREEMPT_NOTIFIERS=y
199202
CONFIG_NF_CT_PROTO_DCCP=y
200203
CONFIG_ZLIB_INFLATE=y
201204
CONFIG_ENCRYPTED_KEYS=y
@@ -249,7 +252,6 @@ CONFIG_INIT_ENV_ARG_LIMIT=32
249252
CONFIG_IP_NF_ARP_MANGLE=y
250253
CONFIG_CAMERA_FLASH_GPIO_OBJ=y
251254
CONFIG_HARDLOCKUP_DETECTOR_OTHER_CPU=y
252-
CONFIG_CC_STACKPROTECTOR_STRONG=y
253255
CONFIG_ION_EXYNOS_OF=y
254256
CONFIG_SEC_EVENT_LOG=y
255257
CONFIG_NF_CONNTRACK_PPTP=y
@@ -265,6 +267,7 @@ CONFIG_PANTHERLORD_FF=y
265267
CONFIG_BLOCK_SUPPORT_STLOG=y
266268
CONFIG_PM=y
267269
CONFIG_SPI=y
270+
CONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT=y
268271
CONFIG_NF_CONNTRACK_IRC=y
269272
CONFIG_SWITCH=y
270273
CONFIG_SAMSUNG_PRODUCT_SHIP=y
@@ -360,6 +363,7 @@ CONFIG_RCU_FANOUT_LEAF=16
360363
CONFIG_BPF=y
361364
CONFIG_PHY_EXYNOS_MIPI_VIDEO=y
362365
CONFIG_NF_NAT_PROTO_DCCP=y
366+
CONFIG_KVM_ARM_VGIC=y
363367
CONFIG_SENSORS_A96T3X6=y
364368
CONFIG_CAMERA_EEPROM_SUPPORT_FRONT=y
365369
CONFIG_CONDITIONAL_SAFETY_TIMER=y
@@ -423,6 +427,7 @@ CONFIG_INET_TUNNEL=y
423427
CONFIG_PINCONF=y
424428
CONFIG_MMC_BLOCK_BOUNCE=y
425429
CONFIG_GENERIC_CLOCKEVENTS=y
430+
CONFIG_KVM_ARM_MAX_VCPUS=4
426431
CONFIG_IOSCHED_CFQ=y
427432
CONFIG_OID_REGISTRY=y
428433
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
@@ -563,7 +568,6 @@ CONFIG_IP_NF_MATCH_ECN=y
563568
CONFIG_USB_GADGET=y
564569
CONFIG_HARDLOCKUP_DETECTOR=y
565570
CONFIG_USB_HIDDEV=y
566-
CONFIG_TIMA_LKMAUTH=y
567571
CONFIG_SOUND=y
568572
CONFIG_CPU_IDLE_MULTIPLE_DRIVERS=y
569573
CONFIG_AUDIT_WATCH=y
@@ -601,7 +605,6 @@ CONFIG_CRYPTO_SHA2_ARM64_CE=y
601605
CONFIG_KEYBOARD_ATKBD=y
602606
CONFIG_NET_IP_TUNNEL=y
603607
CONFIG_NF_NAT=y
604-
CONFIG_TIMA_LOG=y
605608
CONFIG_CPU_IDLE=y
606609
CONFIG_IP6_NF_MATCH_RPFILTER=y
607610
CONFIG_REGULATOR=y
@@ -713,7 +716,6 @@ CONFIG_MFD_SEC_CORE=y
713716
CONFIG_MUIC_S2MU005_JIGB_CONTROL=y
714717
CONFIG_PHY_SAMSUNG_USB_CAL=y
715718
CONFIG_CRYPTO_SHA1=y
716-
CONFIG_TIMA_RKP_4G=y
717719
CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
718720
CONFIG_COMMON_CLK_XGENE=y
719721
CONFIG_USB_BELKIN=y
@@ -1057,6 +1059,7 @@ CONFIG_EXYNOS_CAMERA_MODULE=y
10571059
CONFIG_KERNFS=y
10581060
CONFIG_I2C_ALGOBIT=y
10591061
CONFIG_MMC_BLOCK=y
1062+
CONFIG_KVM=y
10601063
CONFIG_SEC_NAD=y
10611064
CONFIG_EXPERT=y
10621065
CONFIG_MMC_DW_EXYNOS=y
@@ -1088,14 +1091,11 @@ CONFIG_WTL_ENCRYPTION_FILTER=y
10881091
CONFIG_AUDIT_COMPAT_GENERIC=y
10891092
CONFIG_NETFILTER_XT_MATCH_QUOTA2_LOG_32BIT=y
10901093
CONFIG_NETFILTER_XT_TARGET_IDLETIMER=y
1091-
CONFIG_UH_RKP=y
10921094
CONFIG_DM_VERITY_HASH_PREFETCH_MIN_SIZE=1
1093-
CONFIG_TIMA_RKP=y
10941095
CONFIG_IPV6_VTI=y
10951096
CONFIG_CRYPTO_DRBG=y
10961097
CONFIG_SND_MAX_CARDS=32
10971098
CONFIG_OF_EARLY_FLATTREE=y
1098-
CONFIG_TIMA=y
10991099
CONFIG_CGROUP_CPUACCT=y
11001100
CONFIG_NET_VENDOR_VIA=y
11011101
CONFIG_HZ=100
@@ -1138,7 +1138,6 @@ CONFIG_NF_LOG_COMMON=y
11381138
CONFIG_GPU_THERMAL=y
11391139
CONFIG_NETFILTER_XT_MATCH_LIMIT=y
11401140
CONFIG_FIMC_BNS_V4_10_0=y
1141-
CONFIG_CC_STACKPROTECTOR=y
11421141
CONFIG_CRYPTO_HASH_INFO=y
11431142
CONFIG_EXT2_FS_SECURITY=y
11441143
CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
@@ -1150,6 +1149,7 @@ CONFIG_I2C_COMPAT=y
11501149
CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y
11511150
CONFIG_SOC_EXYNOS7870=y
11521151
CONFIG_ARM_GIC_V3=y
1152+
CONFIG_VIRTUALIZATION=y
11531153
CONFIG_MSDOS_PARTITION=y
11541154
CONFIG_BOOTPARAM_HARDLOCKUP_PANIC_VALUE=1
11551155
CONFIG_HAVE_GENERIC_DMA_COHERENT=y
@@ -1204,6 +1204,7 @@ CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y
12041204
CONFIG_OF_MDIO=y
12051205
CONFIG_BATTERY_AGE_FORECAST=y
12061206
CONFIG_VIDEOBUF2_CORE=y
1207+
CONFIG_KVM_ARM_HOST=y
12071208
CONFIG_SENSORS_ET5XX=y
12081209
CONFIG_ARCH_EXYNOS=y
12091210
CONFIG_BASE_SMALL=0
@@ -1261,6 +1262,7 @@ CONFIG_NETFILTER_XT_MATCH_QUOTA2=y
12611262
CONFIG_HID_ELECOM=y
12621263
CONFIG_SND_TIMER=y
12631264
CONFIG_SEC_EXT=y
1265+
CONFIG_KVM_MMIO=y
12641266
CONFIG_CMA_PINPAGE_MIGRATION=y
12651267
CONFIG_FAT_DEFAULT_CODEPAGE=437
12661268
CONFIG_BLK_DEV=y
@@ -1318,6 +1320,7 @@ CONFIG_INET6_XFRM_MODE_BEET=y
13181320
CONFIG_ARM64=y
13191321
CONFIG_PREEMPT=y
13201322
CONFIG_FB_CFB_COPYAREA=y
1323+
CONFIG_HAVE_KVM_IRQCHIP=y
13211324
CONFIG_ARCH_HAS_TICK_BROADCAST=y
13221325
CONFIG_EXYNOS_THERMAL=y
13231326
CONFIG_CAMERA_MODULE_SELECT=y
@@ -1401,6 +1404,7 @@ CONFIG_GENERIC_TIME_VSYSCALL=y
14011404
CONFIG_IP_NF_TARGET_REJECT=y
14021405
CONFIG_SEC_NFC_IF_I2C=y
14031406
CONFIG_LEDS_CLASS=y
1407+
CONFIG_KVM_ARM_TIMER=y
14041408
CONFIG_USB_NOTIFIER=y
14051409
CONFIG_RTC_INTF_DEV=y
14061410
CONFIG_DCACHE_WORD_ACCESS=y

include/config/auto.conf.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,7 @@ endif
10721072
ifneq "$(ANDROID_MAJOR_VERSION)" "p"
10731073
include/config/auto.conf: FORCE
10741074
endif
1075-
ifneq "$(ANDROID_VERSION)" "90000"
1075+
ifneq "$(ANDROID_VERSION)" "990000"
10761076
include/config/auto.conf: FORCE
10771077
endif
10781078
ifneq "$(SRCARCH)" "arm64"

include/config/binfmt/misc.h

Whitespace-only changes.

include/config/have/kvm/cpu/relax/intercept.h

Whitespace-only changes.

include/config/have/kvm/irqchip.h

Whitespace-only changes.

include/config/kernel.release

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.18.91-gb4ab23c0-dirty

include/config/kvm.h

Whitespace-only changes.

include/config/kvm/arm/host.h

Whitespace-only changes.

include/config/kvm/arm/max/vcpus.h

Whitespace-only changes.

include/config/kvm/arm/timer.h

Whitespace-only changes.

include/config/kvm/arm/vgic.h

Whitespace-only changes.

include/config/kvm/mmio.h

Whitespace-only changes.

include/config/mmu/notifier.h

Whitespace-only changes.

include/config/preempt/notifiers.h

Whitespace-only changes.

include/config/tristate.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ CONFIG_NF_CONNTRACK_NETBIOS_NS=Y
1111
CONFIG_RTC_DRV_SEC=Y
1212
CONFIG_HID_SPEEDLINK=Y
1313
CONFIG_TCP_CONG_HTCP=Y
14+
CONFIG_BINFMT_MISC=Y
1415
CONFIG_NETFILTER_XT_MATCH_HELPER=Y
1516
CONFIG_ASYMMETRIC_KEY_TYPE=Y
1617
CONFIG_NETFILTER_XT_MATCH_STATISTIC=Y
@@ -207,7 +208,6 @@ CONFIG_CRYPTO_SHA2_ARM64_CE=Y
207208
CONFIG_KEYBOARD_ATKBD=Y
208209
CONFIG_NET_IP_TUNNEL=Y
209210
CONFIG_NF_NAT=Y
210-
CONFIG_TIMA_LOG=Y
211211
CONFIG_IP6_NF_MATCH_RPFILTER=Y
212212
CONFIG_CRYPTO_HASH=Y
213213
CONFIG_CPU_FREQ_GOV_INTERACTIVE=Y

include/config/virtualization.h

Whitespace-only changes.

include/generated/asm-offsets.h

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
#ifndef __ASM_OFFSETS_H__
2+
#define __ASM_OFFSETS_H__
3+
/*
4+
* DO NOT MODIFY.
5+
*
6+
* This file was generated by Kbuild
7+
*
8+
*/
9+
10+
#define TSK_ACTIVE_MM 680 /* offsetof(struct task_struct, active_mm) // */
11+
12+
#define TI_FLAGS 0 /* offsetof(struct thread_info, flags) // */
13+
#define TI_PREEMPT 32 /* offsetof(struct thread_info, preempt_count) // */
14+
#define TI_ADDR_LIMIT 8 /* offsetof(struct thread_info, addr_limit) // */
15+
#define TI_TASK 16 /* offsetof(struct thread_info, task) // */
16+
#define TI_EXEC_DOMAIN 24 /* offsetof(struct thread_info, exec_domain) // */
17+
#define TI_CPU 36 /* offsetof(struct thread_info, cpu) // */
18+
19+
#define THREAD_CPU_CONTEXT 1296 /* offsetof(struct task_struct, thread.cpu_context) // */
20+
21+
#define S_X0 0 /* offsetof(struct pt_regs, regs[0]) // */
22+
#define S_X1 8 /* offsetof(struct pt_regs, regs[1]) // */
23+
#define S_X2 16 /* offsetof(struct pt_regs, regs[2]) // */
24+
#define S_X3 24 /* offsetof(struct pt_regs, regs[3]) // */
25+
#define S_X4 32 /* offsetof(struct pt_regs, regs[4]) // */
26+
#define S_X5 40 /* offsetof(struct pt_regs, regs[5]) // */
27+
#define S_X6 48 /* offsetof(struct pt_regs, regs[6]) // */
28+
#define S_X7 56 /* offsetof(struct pt_regs, regs[7]) // */
29+
#define S_LR 240 /* offsetof(struct pt_regs, regs[30]) // */
30+
#define S_SP 248 /* offsetof(struct pt_regs, sp) // */
31+
#define S_COMPAT_SP 104 /* offsetof(struct pt_regs, compat_sp) // */
32+
#define S_PSTATE 264 /* offsetof(struct pt_regs, pstate) // */
33+
#define S_PC 256 /* offsetof(struct pt_regs, pc) // */
34+
#define S_ORIG_X0 272 /* offsetof(struct pt_regs, orig_x0) // */
35+
#define S_SYSCALLNO 280 /* offsetof(struct pt_regs, syscallno) // */
36+
#define S_ORIG_ADDR_LIMIT 288 /* offsetof(struct pt_regs, orig_addr_limit) // */
37+
#define S_FRAME_SIZE 304 /* sizeof(struct pt_regs) // */
38+
39+
#define MM_CONTEXT_ID 688 /* offsetof(struct mm_struct, context.id.counter) // */
40+
41+
#define VMA_VM_MM 64 /* offsetof(struct vm_area_struct, vm_mm) // */
42+
#define VMA_VM_FLAGS 80 /* offsetof(struct vm_area_struct, vm_flags) // */
43+
44+
#define VM_EXEC 4 /* VM_EXEC // */
45+
46+
#define PAGE_SZ 4096 /* PAGE_SIZE // */
47+
48+
#define DMA_BIDIRECTIONAL 0 /* DMA_BIDIRECTIONAL // */
49+
#define DMA_TO_DEVICE 1 /* DMA_TO_DEVICE // */
50+
#define DMA_FROM_DEVICE 2 /* DMA_FROM_DEVICE // */
51+
52+
#define CLOCK_REALTIME 0 /* CLOCK_REALTIME // */
53+
#define CLOCK_MONOTONIC 1 /* CLOCK_MONOTONIC // */
54+
#define CLOCK_MONOTONIC_RAW 4 /* CLOCK_MONOTONIC_RAW // */
55+
#define CLOCK_REALTIME_RES 1 /* MONOTONIC_RES_NSEC // */
56+
#define CLOCK_REALTIME_COARSE 5 /* CLOCK_REALTIME_COARSE // */
57+
#define CLOCK_MONOTONIC_COARSE 6 /* CLOCK_MONOTONIC_COARSE // */
58+
#define CLOCK_COARSE_RES 10000000 /* LOW_RES_NSEC // */
59+
#define NSEC_PER_SEC 1000000000 /* NSEC_PER_SEC // */
60+
61+
#define VDSO_CS_CYCLE_LAST 0 /* offsetof(struct vdso_data, cs_cycle_last) // */
62+
#define VDSO_RAW_TIME_SEC 8 /* offsetof(struct vdso_data, raw_time_sec) // */
63+
#define VDSO_RAW_TIME_NSEC 16 /* offsetof(struct vdso_data, raw_time_nsec) // */
64+
#define VDSO_XTIME_CLK_SEC 24 /* offsetof(struct vdso_data, xtime_clock_sec) // */
65+
#define VDSO_XTIME_CLK_NSEC 32 /* offsetof(struct vdso_data, xtime_clock_nsec) // */
66+
#define VDSO_XTIME_CRS_SEC 40 /* offsetof(struct vdso_data, xtime_coarse_sec) // */
67+
#define VDSO_XTIME_CRS_NSEC 48 /* offsetof(struct vdso_data, xtime_coarse_nsec) // */
68+
#define VDSO_WTM_CLK_SEC 56 /* offsetof(struct vdso_data, wtm_clock_sec) // */
69+
#define VDSO_WTM_CLK_NSEC 64 /* offsetof(struct vdso_data, wtm_clock_nsec) // */
70+
#define VDSO_TB_SEQ_COUNT 72 /* offsetof(struct vdso_data, tb_seq_count) // */
71+
#define VDSO_CS_MONO_MULT 76 /* offsetof(struct vdso_data, cs_mono_mult) // */
72+
#define VDSO_CS_RAW_MULT 84 /* offsetof(struct vdso_data, cs_raw_mult) // */
73+
#define VDSO_CS_SHIFT 80 /* offsetof(struct vdso_data, cs_shift) // */
74+
#define VDSO_TZ_MINWEST 88 /* offsetof(struct vdso_data, tz_minuteswest) // */
75+
#define VDSO_TZ_DSTTIME 92 /* offsetof(struct vdso_data, tz_dsttime) // */
76+
#define VDSO_USE_SYSCALL 96 /* offsetof(struct vdso_data, use_syscall) // */
77+
78+
#define TVAL_TV_SEC 0 /* offsetof(struct timeval, tv_sec) // */
79+
#define TVAL_TV_USEC 8 /* offsetof(struct timeval, tv_usec) // */
80+
#define TSPEC_TV_SEC 0 /* offsetof(struct timespec, tv_sec) // */
81+
#define TSPEC_TV_NSEC 8 /* offsetof(struct timespec, tv_nsec) // */
82+
83+
#define TZ_MINWEST 0 /* offsetof(struct timezone, tz_minuteswest) // */
84+
#define TZ_DSTTIME 4 /* offsetof(struct timezone, tz_dsttime) // */
85+
86+
#define VCPU_CONTEXT 256 /* offsetof(struct kvm_vcpu, arch.ctxt) // */
87+
#define CPU_GP_REGS 0 /* offsetof(struct kvm_cpu_context, gp_regs) // */
88+
#define CPU_USER_PT_REGS 0 /* offsetof(struct kvm_regs, regs) // */
89+
#define CPU_FP_REGS 336 /* offsetof(struct kvm_regs, fp_regs) // */
90+
#define CPU_SP_EL1 272 /* offsetof(struct kvm_regs, sp_el1) // */
91+
#define CPU_ELR_EL1 280 /* offsetof(struct kvm_regs, elr_el1) // */
92+
#define CPU_SPSR 288 /* offsetof(struct kvm_regs, spsr) // */
93+
#define CPU_SYSREGS 864 /* offsetof(struct kvm_cpu_context, sys_regs) // */
94+
#define VCPU_ESR_EL2 1880 /* offsetof(struct kvm_vcpu, arch.fault.esr_el2) // */
95+
#define VCPU_FAR_EL2 1888 /* offsetof(struct kvm_vcpu, arch.fault.far_el2) // */
96+
#define VCPU_HPFAR_EL2 1896 /* offsetof(struct kvm_vcpu, arch.fault.hpfar_el2) // */
97+
#define VCPU_DEBUG_FLAGS 1904 /* offsetof(struct kvm_vcpu, arch.debug_flags) // */
98+
#define VCPU_HCR_EL2 1872 /* offsetof(struct kvm_vcpu, arch.hcr_el2) // */
99+
#define VCPU_IRQ_LINES 2408 /* offsetof(struct kvm_vcpu, arch.irq_lines) // */
100+
#define VCPU_HOST_CONTEXT 1912 /* offsetof(struct kvm_vcpu, arch.host_cpu_context) // */
101+
#define VCPU_TIMER_CNTV_CTL 2256 /* offsetof(struct kvm_vcpu, arch.timer_cpu.cntv_ctl) // */
102+
#define VCPU_TIMER_CNTV_CVAL 2264 /* offsetof(struct kvm_vcpu, arch.timer_cpu.cntv_cval) // */
103+
#define KVM_TIMER_CNTVOFF 816 /* offsetof(struct kvm, arch.timer.cntvoff) // */
104+
#define KVM_TIMER_ENABLED 808 /* offsetof(struct kvm, arch.timer.enabled) // */
105+
#define VCPU_KVM 0 /* offsetof(struct kvm_vcpu, kvm) // */
106+
#define VCPU_VGIC_CPU 1920 /* offsetof(struct kvm_vcpu, arch.vgic_cpu) // */
107+
#define VGIC_SAVE_FN 0 /* offsetof(struct vgic_sr_vectors, save_vgic) // */
108+
#define VGIC_RESTORE_FN 8 /* offsetof(struct vgic_sr_vectors, restore_vgic) // */
109+
#define VGIC_SR_VECTOR_SZ 16 /* sizeof(struct vgic_sr_vectors) // */
110+
#define VGIC_V2_CPU_HCR 40 /* offsetof(struct vgic_cpu, vgic_v2.vgic_hcr) // */
111+
#define VGIC_V2_CPU_VMCR 44 /* offsetof(struct vgic_cpu, vgic_v2.vgic_vmcr) // */
112+
#define VGIC_V2_CPU_MISR 48 /* offsetof(struct vgic_cpu, vgic_v2.vgic_misr) // */
113+
#define VGIC_V2_CPU_EISR 56 /* offsetof(struct vgic_cpu, vgic_v2.vgic_eisr) // */
114+
#define VGIC_V2_CPU_ELRSR 64 /* offsetof(struct vgic_cpu, vgic_v2.vgic_elrsr) // */
115+
#define VGIC_V2_CPU_APR 72 /* offsetof(struct vgic_cpu, vgic_v2.vgic_apr) // */
116+
#define VGIC_V2_CPU_LR 76 /* offsetof(struct vgic_cpu, vgic_v2.vgic_lr) // */
117+
#define VGIC_V3_CPU_HCR 40 /* offsetof(struct vgic_cpu, vgic_v3.vgic_hcr) // */
118+
#define VGIC_V3_CPU_VMCR 44 /* offsetof(struct vgic_cpu, vgic_v3.vgic_vmcr) // */
119+
#define VGIC_V3_CPU_MISR 48 /* offsetof(struct vgic_cpu, vgic_v3.vgic_misr) // */
120+
#define VGIC_V3_CPU_EISR 52 /* offsetof(struct vgic_cpu, vgic_v3.vgic_eisr) // */
121+
#define VGIC_V3_CPU_ELRSR 56 /* offsetof(struct vgic_cpu, vgic_v3.vgic_elrsr) // */
122+
#define VGIC_V3_CPU_AP0R 60 /* offsetof(struct vgic_cpu, vgic_v3.vgic_ap0r) // */
123+
#define VGIC_V3_CPU_AP1R 76 /* offsetof(struct vgic_cpu, vgic_v3.vgic_ap1r) // */
124+
#define VGIC_V3_CPU_LR 96 /* offsetof(struct vgic_cpu, vgic_v3.vgic_lr) // */
125+
#define VGIC_CPU_NR_LR 32 /* offsetof(struct vgic_cpu, nr_lr) // */
126+
#define KVM_VTTBR 608 /* offsetof(struct kvm, arch.vttbr) // */
127+
#define KVM_VGIC_VCTRL 632 /* offsetof(struct kvm, arch.vgic.vctrl_base) // */
128+
#define CPU_SUSPEND_SZ 96 /* sizeof(struct cpu_suspend_ctx) // */
129+
#define CPU_CTX_SP 88 /* offsetof(struct cpu_suspend_ctx, sp) // */
130+
#define MPIDR_HASH_MASK 0 /* offsetof(struct mpidr_hash, mask) // */
131+
#define MPIDR_HASH_SHIFTS 8 /* offsetof(struct mpidr_hash, shift_aff) // */
132+
#define SLEEP_SAVE_SP_SZ 16 /* sizeof(struct sleep_save_sp) // */
133+
#define SLEEP_SAVE_SP_PHYS 8 /* offsetof(struct sleep_save_sp, save_ptr_stash_phys) // */
134+
#define SLEEP_SAVE_SP_VIRT 0 /* offsetof(struct sleep_save_sp, save_ptr_stash) // */
135+
136+
137+
#endif

0 commit comments

Comments
 (0)