diff options
author | Mathias Krause <minipli@googlemail.com> | 2012-08-29 19:30:18 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-09-05 05:42:02 -0400 |
commit | f1d248315afc55771c3991b934014daa154d05f1 (patch) | |
tree | 9b1193bad365bac11bf305cc35f448320a68f629 | |
parent | 0fbe9b0b19fb92eee2cf23c23d63d6b3312681e5 (diff) |
KVM: x86: more constification
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r-- | arch/x86/kvm/lapic.c | 2 | ||||
-rw-r--r-- | arch/x86/kvm/x86.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c index 18d149d8020..07ad628dadb 100644 --- a/arch/x86/kvm/lapic.c +++ b/arch/x86/kvm/lapic.c | |||
@@ -198,7 +198,7 @@ static inline int apic_x2apic_mode(struct kvm_lapic *apic) | |||
198 | return apic->vcpu->arch.apic_base & X2APIC_ENABLE; | 198 | return apic->vcpu->arch.apic_base & X2APIC_ENABLE; |
199 | } | 199 | } |
200 | 200 | ||
201 | static unsigned int apic_lvt_mask[APIC_LVT_NUM] = { | 201 | static const unsigned int apic_lvt_mask[APIC_LVT_NUM] = { |
202 | LVT_MASK , /* part LVTT mask, timer mode mask added at runtime */ | 202 | LVT_MASK , /* part LVTT mask, timer mode mask added at runtime */ |
203 | LVT_MASK | APIC_MODE_MASK, /* LVTTHMR */ | 203 | LVT_MASK | APIC_MODE_MASK, /* LVTTHMR */ |
204 | LVT_MASK | APIC_MODE_MASK, /* LVTPC */ | 204 | LVT_MASK | APIC_MODE_MASK, /* LVTPC */ |
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 317241619e2..666da13c34f 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -817,7 +817,7 @@ static u32 msrs_to_save[] = { | |||
817 | 817 | ||
818 | static unsigned num_msrs_to_save; | 818 | static unsigned num_msrs_to_save; |
819 | 819 | ||
820 | static u32 emulated_msrs[] = { | 820 | static const u32 emulated_msrs[] = { |
821 | MSR_IA32_TSCDEADLINE, | 821 | MSR_IA32_TSCDEADLINE, |
822 | MSR_IA32_MISC_ENABLE, | 822 | MSR_IA32_MISC_ENABLE, |
823 | MSR_IA32_MCG_STATUS, | 823 | MSR_IA32_MCG_STATUS, |