rump kernels: Start introducing new XEN_OS NetBSDRump

Provide an entry in config/, and a copy of xen-sys privcmd.h.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
Ian Jackson authored and Ian Jackson committed 2014-07-14 16:07:50 +01:00
1 parent 848a23560f
commit b24cc32251
2 files changed
+39

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
include $(XEN_ROOT)/config/StdGNU.mk
DLOPEN_LIBS =
PTHREAD_LIBS =
XEN_LOCK_DIR = /var/lib
WGET = ftp
@@ -0,0 +1,31 @@
#ifndef __NetBSDRump_PRIVCMD_H__
#define __NetBSDRump_PRIVCMD_H__
typedef struct privcmd_hypercall
{
unsigned long op;
unsigned long arg[5];
long retval;
} privcmd_hypercall_t;
typedef struct privcmd_mmap_entry {
unsigned long va;
unsigned long mfn;
unsigned long npages;
} privcmd_mmap_entry_t;
typedef struct privcmd_mmap {
int num;
domid_t dom; /* target domain */
privcmd_mmap_entry_t *entry;
} privcmd_mmap_t;
typedef struct privcmd_mmapbatch {
int num; /* number of pages to populate */
domid_t dom; /* target domain */
unsigned long addr; /* virtual address */
unsigned long *arr; /* array of mfns - top nibble set on err */
} privcmd_mmapbatch_t;
#endif
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.