aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/svm
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2012-12-07 13:47:48 +0100
committerJan Beulich <jbeulich@suse.com>2012-12-07 13:47:48 +0100
commit57b4fcf14eb2bb243045ed320ca5809c201be3ee (patch)
treee5d11062523169d8d57c16d7373b52e5dfc6a417 /xen/arch/x86/hvm/svm
parent3e7fcd51276a6df669f1338947157d7408268b91 (diff)
downloadxen-57b4fcf14eb2bb243045ed320ca5809c201be3ee.tar.gz
xen-57b4fcf14eb2bb243045ed320ca5809c201be3ee.tar.bz2
xen-57b4fcf14eb2bb243045ed320ca5809c201be3ee.zip
x86: mark certain items static
..., and at once constify the data items among them. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/x86/hvm/svm')
-rw-r--r--xen/arch/x86/hvm/svm/emulate.c2
-rw-r--r--xen/arch/x86/hvm/svm/svm.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/xen/arch/x86/hvm/svm/emulate.c b/xen/arch/x86/hvm/svm/emulate.c
index 43c91b10a6..2cbd8ef51b 100644
--- a/xen/arch/x86/hvm/svm/emulate.c
+++ b/xen/arch/x86/hvm/svm/emulate.c
@@ -152,7 +152,7 @@ static int fetch(struct vcpu *v, u8 *buf, unsigned long addr, int len)
}
int __get_instruction_length_from_list(struct vcpu *v,
- enum instruction_index *list, unsigned int list_count)
+ const enum instruction_index *list, unsigned int list_count)
{
struct vmcb_struct *vmcb = v->arch.hvm_svm.vmcb;
unsigned int i, j, inst_len = 0;
diff --git a/xen/arch/x86/hvm/svm/svm.c b/xen/arch/x86/hvm/svm/svm.c
index 4c4abfc029..c3dc048e84 100644
--- a/xen/arch/x86/hvm/svm/svm.c
+++ b/xen/arch/x86/hvm/svm/svm.c
@@ -1931,7 +1931,7 @@ static void svm_wbinvd_intercept(void)
static void svm_vmexit_do_invalidate_cache(struct cpu_user_regs *regs)
{
- enum instruction_index list[] = { INSTR_INVD, INSTR_WBINVD };
+ static const enum instruction_index list[] = { INSTR_INVD, INSTR_WBINVD };
int inst_len;
inst_len = __get_instruction_length_from_list(