modify:User space memory access

perf_event_open,futex,process_vm_readv,process_vm_writev,move_pages
This commit is contained in:
Hitoshi Iizuka
2017-10-23 20:09:22 +09:00
parent 12840601e1
commit 08a625cc0d
5 changed files with 674 additions and 662 deletions

View File

@ -569,4 +569,24 @@ typedef struct uti_attr {
uint64_t flags; /* Representing location and behavior hints by bitmap */
} uti_attr_t;
struct move_pages_smp_req {
unsigned long count;
const void **user_virt_addr;
int *user_status;
const int *user_nodes;
void **virt_addr;
int *status;
pte_t **ptep;
int *nodes;
int nodes_ready;
int *nr_pages;
unsigned long *dst_phys;
struct process *proc;
ihk_atomic_t phase_done;
int phase_ret;
};
#define PROCESS_VM_READ 0
#define PROCESS_VM_WRITE 1
#endif