提交 f1d24831 编写于 作者: M Mathias Krause 提交者: Avi Kivity

KVM: x86: more constification

Signed-off-by: NMathias Krause <minipli@googlemail.com>
Signed-off-by: NAvi Kivity <avi@redhat.com>
上级 0fbe9b0b
...@@ -198,7 +198,7 @@ static inline int apic_x2apic_mode(struct kvm_lapic *apic) ...@@ -198,7 +198,7 @@ static inline int apic_x2apic_mode(struct kvm_lapic *apic)
return apic->vcpu->arch.apic_base & X2APIC_ENABLE; 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 , /* part LVTT mask, timer mode mask added at runtime */
LVT_MASK | APIC_MODE_MASK, /* LVTTHMR */ LVT_MASK | APIC_MODE_MASK, /* LVTTHMR */
LVT_MASK | APIC_MODE_MASK, /* LVTPC */ LVT_MASK | APIC_MODE_MASK, /* LVTPC */
......
...@@ -817,7 +817,7 @@ static u32 msrs_to_save[] = { ...@@ -817,7 +817,7 @@ static u32 msrs_to_save[] = {
static unsigned num_msrs_to_save; static unsigned num_msrs_to_save;
static u32 emulated_msrs[] = { static const u32 emulated_msrs[] = {
MSR_IA32_TSCDEADLINE, MSR_IA32_TSCDEADLINE,
MSR_IA32_MISC_ENABLE, MSR_IA32_MISC_ENABLE,
MSR_IA32_MCG_STATUS, MSR_IA32_MCG_STATUS,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册