Skip to contentSkip to conversation

Arm/vGIC: adjust gicv3_its_deny_access() to fit other gic*_iomem_deny_access(

PATCH In review Jan Beulich 3 participants 3 messages Sep 30, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Arm/vGIC: adjust gicv3_its_deny_access() to fit other gic*_iomem_deny_access(

While an oversight in 9982fe275ba4 ("arm/vgic: drop const attribute from gic_iomem_deny_access()"), the issue really became apparent only when iomem_deny_access() was switched to have a non-const first parameter.

Fixes c4e5cc2ccc5b ("x86/ept: limit calls to memory_type_changed()")
xen/arch/arm/gic-v3-its.c +1 -1
@@ -892,7 +892,7 @@ struct pending_irq *gicv3_assign_guest_e
     return pirq;
 }
 
-int gicv3_its_deny_access(const struct domain *d)
+int gicv3_its_deny_access(struct domain *d)
 {
     int rc = 0;
     unsigned long mfn, nr;
xen/arch/arm/include/asm/gic_v3_its.h +2 -2
@@ -139,7 +139,7 @@ unsigned long gicv3_its_make_hwdom_madt(
 #endif
 
 /* Deny iomem access for its */
-int gicv3_its_deny_access(const struct domain *d);
+int gicv3_its_deny_access(struct domain *d);
 
 bool gicv3_its_host_has_its(void);
 
@@ -206,7 +206,7 @@ static inline unsigned long gicv3_its_ma
 }
 #endif
 
-static inline int gicv3_its_deny_access(const struct domain *d)
+static inline int gicv3_its_deny_access(struct domain *d)
 {
     return 0;
 }
Reviewed-by Tested-by on v1 1/1
#1 lore raw
Quoted 10 lines · Jan Beulich

While an oversight in 9982fe275ba4 ("arm/vgic: drop const attribute from gic_iomem_deny_access()"), the issue really became apparent only when iomem_deny_access() was switched to have a non-const first parameter.

Fixes c4e5cc2ccc5b ("x86/ept: limit calls to memory_type_changed()")

and

~Michal

Reviewed-by on v1 1/1
#2 lore raw
In reply to Jan Beulich

Hi Jan,

Quoted 10 lines · Jan Beulich

While an oversight in 9982fe275ba4 ("arm/vgic: drop const attribute from gic_iomem_deny_access()"), the issue really became apparent only when iomem_deny_access() was switched to have a non-const first parameter.

Fixes c4e5cc2ccc5b ("x86/ept: limit calls to memory_type_changed()")

Cheers
Bertrand

Quoted 32 lines
xen/arch/arm/gic-v3-its.c +1 -1
@@ -892,7 +892,7 @@ struct pending_irq *gicv3_assign_guest_e
    return pirq;
 }
 
-int gicv3_its_deny_access(const struct domain *d)
+int gicv3_its_deny_access(struct domain *d)
 {
    int rc = 0;
    unsigned long mfn, nr;
xen/arch/arm/include/asm/gic_v3_its.h +2 -2
@@ -139,7 +139,7 @@ unsigned long gicv3_its_make_hwdom_madt(
 #endif
 
 /* Deny iomem access for its */
-int gicv3_its_deny_access(const struct domain *d);
+int gicv3_its_deny_access(struct domain *d);
 
 bool gicv3_its_host_has_its(void);
 
@@ -206,7 +206,7 @@ static inline unsigned long gicv3_its_ma
 }
 #endif
 
-static inline int gicv3_its_deny_access(const struct domain *d)
+static inline int gicv3_its_deny_access(struct domain *d)
 {
    return 0;
 }