Skip to content

Commit 94b4a6d

Browse files
author
Marc Zyngier
committed
Merge branch kvm-arm64/misc-5.17 into kvmarm-master/next
* kvm-arm64/misc-5.17: : . : - Add minimal support for ARMv8.7's PMU extension : - Constify kvm_io_gic_ops : - Drop kvm_is_transparent_hugepage() prototype : . KVM: Drop stale kvm_is_transparent_hugepage() declaration KVM: arm64: Constify kvm_io_gic_ops KVM: arm64: Add minimal handling for the ARMv8.7 PMU Signed-off-by: Marc Zyngier <[email protected]>
2 parents 370a17f + f0e6e6f commit 94b4a6d

File tree

5 files changed

+4
-3
lines changed

5 files changed

+4
-3
lines changed

arch/arm64/include/asm/sysreg.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,7 @@
937937
#define ID_AA64DFR0_PMUVER_8_1 0x4
938938
#define ID_AA64DFR0_PMUVER_8_4 0x5
939939
#define ID_AA64DFR0_PMUVER_8_5 0x6
940+
#define ID_AA64DFR0_PMUVER_8_7 0x7
940941
#define ID_AA64DFR0_PMUVER_IMP_DEF 0xf
941942

942943
#define ID_AA64DFR0_PMSVER_8_2 0x1

arch/arm64/kvm/pmu-emul.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ static u32 kvm_pmu_event_mask(struct kvm *kvm)
2828
case ID_AA64DFR0_PMUVER_8_1:
2929
case ID_AA64DFR0_PMUVER_8_4:
3030
case ID_AA64DFR0_PMUVER_8_5:
31+
case ID_AA64DFR0_PMUVER_8_7:
3132
return GENMASK(15, 0);
3233
default: /* Shouldn't be here, just for sanity */
3334
WARN_ONCE(1, "Unknown PMU version %d\n", kvm->arch.pmuver);

arch/arm64/kvm/vgic/vgic-mmio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1050,7 +1050,7 @@ static int dispatch_mmio_write(struct kvm_vcpu *vcpu, struct kvm_io_device *dev,
10501050
return 0;
10511051
}
10521052

1053-
struct kvm_io_device_ops kvm_io_gic_ops = {
1053+
const struct kvm_io_device_ops kvm_io_gic_ops = {
10541054
.read = dispatch_mmio_read,
10551055
.write = dispatch_mmio_write,
10561056
};

arch/arm64/kvm/vgic/vgic-mmio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ struct vgic_register_region {
3434
};
3535
};
3636

37-
extern struct kvm_io_device_ops kvm_io_gic_ops;
37+
extern const struct kvm_io_device_ops kvm_io_gic_ops;
3838

3939
#define VGIC_ACCESS_8bit 1
4040
#define VGIC_ACCESS_32bit 2

include/linux/kvm_host.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,6 @@ int kvm_cpu_has_pending_timer(struct kvm_vcpu *vcpu);
11741174

11751175
bool kvm_is_reserved_pfn(kvm_pfn_t pfn);
11761176
bool kvm_is_zone_device_pfn(kvm_pfn_t pfn);
1177-
bool kvm_is_transparent_hugepage(kvm_pfn_t pfn);
11781177

11791178
struct kvm_irq_ack_notifier {
11801179
struct hlist_node link;

0 commit comments

Comments
 (0)