diff --git a/xen/arch/x86/domain_page.c b/xen/arch/x86/domain_page.c index 72c00194f3..5744754f11 100644 --- a/xen/arch/x86/domain_page.c +++ b/xen/arch/x86/domain_page.c @@ -20,8 +20,8 @@ static inline struct vcpu *mapcache_current_vcpu(void) { - struct vcpu *v = this_cpu(pgtable_vcpu); - struct vcpu *curr = current; + const struct vcpu *v = this_cpu(pgtable_vcpu); + const struct vcpu *curr = current; /* * During early boot pgtable_vcpu is not set, callers must handle NULL.