booke.c (0193cc908b5ae8aff2e2d2997ca5d4ae26ed24d4) booke.c (fcfe1baeddbf1c7c448b44c82586d0cbc8abc9f5)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 *
4 * Copyright IBM Corp. 2007
5 * Copyright 2010-2011 Freescale Semiconductor, Inc.
6 *
7 * Authors: Hollis Blanchard <hollisb@us.ibm.com>
8 * Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>

--- 22 unchanged lines hidden (view full) ---

31#include "timing.h"
32#include "booke.h"
33
34#define CREATE_TRACE_POINTS
35#include "trace_booke.h"
36
37unsigned long kvmppc_booke_handlers;
38
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 *
4 * Copyright IBM Corp. 2007
5 * Copyright 2010-2011 Freescale Semiconductor, Inc.
6 *
7 * Authors: Hollis Blanchard <hollisb@us.ibm.com>
8 * Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>

--- 22 unchanged lines hidden (view full) ---

31#include "timing.h"
32#include "booke.h"
33
34#define CREATE_TRACE_POINTS
35#include "trace_booke.h"
36
37unsigned long kvmppc_booke_handlers;
38
39const struct _kvm_stats_desc kvm_vm_stats_desc[] = {
40 KVM_GENERIC_VM_STATS(),
41 STATS_DESC_ICOUNTER(VM, num_2M_pages),
42 STATS_DESC_ICOUNTER(VM, num_1G_pages)
43};
44static_assert(ARRAY_SIZE(kvm_vm_stats_desc) ==
45 sizeof(struct kvm_vm_stat) / sizeof(u64));
46
47const struct kvm_stats_header kvm_vm_stats_header = {
48 .name_size = KVM_STATS_NAME_SIZE,
49 .num_desc = ARRAY_SIZE(kvm_vm_stats_desc),
50 .id_offset = sizeof(struct kvm_stats_header),
51 .desc_offset = sizeof(struct kvm_stats_header) + KVM_STATS_NAME_SIZE,
52 .data_offset = sizeof(struct kvm_stats_header) + KVM_STATS_NAME_SIZE +
53 sizeof(kvm_vm_stats_desc),
54};
55
39struct kvm_stats_debugfs_item debugfs_entries[] = {
40 VCPU_STAT("mmio", mmio_exits),
41 VCPU_STAT("sig", signal_exits),
42 VCPU_STAT("itlb_r", itlb_real_miss_exits),
43 VCPU_STAT("itlb_v", itlb_virt_miss_exits),
44 VCPU_STAT("dtlb_r", dtlb_real_miss_exits),
45 VCPU_STAT("dtlb_v", dtlb_virt_miss_exits),
46 VCPU_STAT("sysc", syscall_exits),

--- 2149 unchanged lines hidden ---
56struct kvm_stats_debugfs_item debugfs_entries[] = {
57 VCPU_STAT("mmio", mmio_exits),
58 VCPU_STAT("sig", signal_exits),
59 VCPU_STAT("itlb_r", itlb_real_miss_exits),
60 VCPU_STAT("itlb_v", itlb_virt_miss_exits),
61 VCPU_STAT("dtlb_r", dtlb_real_miss_exits),
62 VCPU_STAT("dtlb_v", dtlb_virt_miss_exits),
63 VCPU_STAT("sysc", syscall_exits),

--- 2149 unchanged lines hidden ---