Skip to content

Commit

Permalink
KVM: x86: more constification
Browse files Browse the repository at this point in the history
Signed-off-by: Mathias Krause <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>
  • Loading branch information
minipli authored and avikivity committed Sep 5, 2012
1 parent 0fbe9b0 commit f1d2483
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/x86/kvm/lapic.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ static inline int apic_x2apic_mode(struct kvm_lapic *apic)
return apic->vcpu->arch.apic_base & X2APIC_ENABLE;
}

static unsigned int apic_lvt_mask[APIC_LVT_NUM] = {
static const unsigned int apic_lvt_mask[APIC_LVT_NUM] = {
LVT_MASK , /* part LVTT mask, timer mode mask added at runtime */
LVT_MASK | APIC_MODE_MASK, /* LVTTHMR */
LVT_MASK | APIC_MODE_MASK, /* LVTPC */
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/kvm/x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ static u32 msrs_to_save[] = {

static unsigned num_msrs_to_save;

static u32 emulated_msrs[] = {
static const u32 emulated_msrs[] = {
MSR_IA32_TSCDEADLINE,
MSR_IA32_MISC_ENABLE,
MSR_IA32_MCG_STATUS,
Expand Down

0 comments on commit f1d2483

Please sign in to comment.