Skip to content

Commit 573a446

Browse files
benzeajmberg-intel
authored andcommitted
um: simplify and consolidate TLB updates
The HVC update was mostly used to compress consecutive calls into one. This is mostly relevant for userspace where it is already handled by the syscall stub code. Simplify the whole logic and consolidate it for both kernel and userspace. This does remove the sequential syscall compression for the kernel, however that shouldn't be the main factor in most runs. Signed-off-by: Benjamin Berg <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Johannes Berg <[email protected]>
1 parent ef714f1 commit 573a446

File tree

3 files changed

+99
-317
lines changed

3 files changed

+99
-317
lines changed

arch/um/include/shared/os.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -279,12 +279,12 @@ int syscall_stub_flush(struct mm_id *mm_idp);
279279
struct stub_syscall *syscall_stub_alloc(struct mm_id *mm_idp);
280280
void syscall_stub_dump_error(struct mm_id *mm_idp);
281281

282-
void map(struct mm_id *mm_idp, unsigned long virt,
283-
unsigned long len, int prot, int phys_fd,
284-
unsigned long long offset);
285-
void unmap(struct mm_id *mm_idp, unsigned long addr, unsigned long len);
286-
void protect(struct mm_id *mm_idp, unsigned long addr,
287-
unsigned long len, unsigned int prot);
282+
int map(struct mm_id *mm_idp, unsigned long virt,
283+
unsigned long len, int prot, int phys_fd,
284+
unsigned long long offset);
285+
int unmap(struct mm_id *mm_idp, unsigned long addr, unsigned long len);
286+
int protect(struct mm_id *mm_idp, unsigned long addr,
287+
unsigned long len, unsigned int prot);
288288

289289
/* skas/process.c */
290290
extern int is_skas_winch(int pid, int fd, void *data);

0 commit comments

Comments
 (0)