Commit 5a0c6bed authored by Zhang Zekun's avatar Zhang Zekun
Browse files

iommu: Reserve kabi for iommu and memory related functions

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I9S5ZK



-------------------------------------

Reserve kabi for the iova and iommu related functions. It is
used for future patches merge.

Signed-off-by: default avatarZhang Zekun <zhangzekun11@huawei.com>
parent f300accf
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -58,6 +58,10 @@ struct iommu_group {
	struct iommu_domain *default_domain;
	struct iommu_domain *domain;
	struct list_head entry;
	KABI_RESERVE(1)
	KABI_RESERVE(2)
	KABI_RESERVE(3)
	KABI_RESERVE(4)
};

struct group_device {
+8 −0
Original line number Diff line number Diff line
@@ -34,6 +34,8 @@ struct iova_rcache {
	struct iova_cpu_rcache __percpu *cpu_rcaches;
	struct iova_domain *iovad;
	struct delayed_work work;
	KABI_RESERVE(1)
	KABI_RESERVE(2)
};

struct iova_domain;
@@ -63,6 +65,8 @@ struct iova_fq {
	struct iova_fq_entry entries[IOVA_FQ_SIZE];
	unsigned head, tail;
	spinlock_t lock;
	KABI_RESERVE(1)
	KABI_RESERVE(2)
};

/* holds all the iova translations for a domain */
@@ -97,6 +101,10 @@ struct iova_domain {
	atomic_t fq_timer_on;			/* 1 when timer is active, 0
						   when not */
	struct work_struct free_iova_work;
	KABI_RESERVE(1)
	KABI_RESERVE(2)
	KABI_RESERVE(3)
	KABI_RESERVE(4)
};

static inline unsigned long iova_size(struct iova *iova)