Skip to content

Commit

Permalink
amd/iommu: clean up unused guest iommu related functions
Browse files Browse the repository at this point in the history
Delete unused functions from 'iommu_guest.c'.

No functional change.

Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
  • Loading branch information
etrian-dev authored and jbeulich committed Mar 19, 2024
1 parent b053075 commit a02174c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 774 deletions.
7 changes: 1 addition & 6 deletions xen/drivers/passthrough/amd/iommu.h
Original file line number Diff line number Diff line change
Expand Up @@ -346,12 +346,7 @@ void cf_check amd_iommu_crash_shutdown(void);

/* guest iommu support */
#ifdef CONFIG_HVM
void amd_iommu_send_guest_cmd(struct amd_iommu *iommu, u32 cmd[]);
void guest_iommu_add_ppr_log(struct domain *d, u32 entry[]);
void guest_iommu_add_event_log(struct domain *d, u32 entry[]);
int guest_iommu_init(struct domain* d);
void guest_iommu_destroy(struct domain *d);
int guest_iommu_set_base(struct domain *d, uint64_t base);
void guest_iommu_add_ppr_log(struct domain *d, uint32_t entry[]);
#else
static inline void guest_iommu_add_ppr_log(struct domain *d, uint32_t entry[]) {}
#endif
Expand Down
7 changes: 0 additions & 7 deletions xen/drivers/passthrough/amd/iommu_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,10 +389,3 @@ void amd_iommu_flush_all_caches(struct amd_iommu *iommu)
invalidate_iommu_all(iommu);
flush_command_buffer(iommu, 0);
}

void amd_iommu_send_guest_cmd(struct amd_iommu *iommu, u32 cmd[])
{
send_iommu_command(iommu, cmd);
/* TBD: Timeout selection may require peeking into cmd[]. */
flush_command_buffer(iommu, 0);
}

0 comments on commit a02174c

Please sign in to comment.