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

While an oversight in 9982fe275b ("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: c4e5cc2ccc ("x86/ept: limit calls to memory_type_changed()")
Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Michal Orzel <michal.orzel@amd.com>
Tested-by: Michal Orzel <michal.orzel@amd.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
This commit is contained in:
Jan Beulich committed 2022-09-30 09:56:27 +02:00
1 parent b1f4b45d02
commit 38e1276db4
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -892,7 +892,7 @@ struct pending_irq *gicv3_assign_guest_event(struct domain *d,
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;
+2 -2
View File
@@ -139,7 +139,7 @@ unsigned long gicv3_its_make_hwdom_madt(const struct domain *d,
#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_make_hwdom_madt(const struct domain *d,
}
#endif
static inline int gicv3_its_deny_access(const struct domain *d)
static inline int gicv3_its_deny_access(struct domain *d)
{
return 0;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.