Commit 77975357 authored by Cornelia Huck's avatar Cornelia Huck Committed by Marcelo Tosatti

KVM: s390: Constify intercept handler tables.

These tables are never modified.
Reviewed-by: default avatarAlexander Graf <agraf@suse.de>
Signed-off-by: default avatarCornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
parent 0ca1b4f4
...@@ -104,7 +104,7 @@ static int handle_lctl(struct kvm_vcpu *vcpu) ...@@ -104,7 +104,7 @@ static int handle_lctl(struct kvm_vcpu *vcpu)
return 0; return 0;
} }
static intercept_handler_t instruction_handlers[256] = { static const intercept_handler_t instruction_handlers[256] = {
[0x01] = kvm_s390_handle_01, [0x01] = kvm_s390_handle_01,
[0x83] = kvm_s390_handle_diag, [0x83] = kvm_s390_handle_diag,
[0xae] = kvm_s390_handle_sigp, [0xae] = kvm_s390_handle_sigp,
......
...@@ -297,7 +297,7 @@ static int handle_stsi(struct kvm_vcpu *vcpu) ...@@ -297,7 +297,7 @@ static int handle_stsi(struct kvm_vcpu *vcpu)
return 0; return 0;
} }
static intercept_handler_t priv_handlers[256] = { static const intercept_handler_t priv_handlers[256] = {
[0x02] = handle_stidp, [0x02] = handle_stidp,
[0x10] = handle_set_prefix, [0x10] = handle_set_prefix,
[0x11] = handle_store_prefix, [0x11] = handle_store_prefix,
...@@ -405,7 +405,7 @@ static int handle_sckpf(struct kvm_vcpu *vcpu) ...@@ -405,7 +405,7 @@ static int handle_sckpf(struct kvm_vcpu *vcpu)
return 0; return 0;
} }
static intercept_handler_t x01_handlers[256] = { static const intercept_handler_t x01_handlers[256] = {
[0x07] = handle_sckpf, [0x07] = handle_sckpf,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment