]> Zhao Yanbai Git Server - minix.git/commitdiff
custom message for vm_query_exit
authorBen Gras <ben@minix3.org>
Sat, 26 Jul 2014 11:53:50 +0000 (13:53 +0200)
committerLionel Sambuc <lionel@minix3.org>
Mon, 28 Jul 2014 15:06:19 +0000 (17:06 +0200)
include/minix/com.h
include/minix/ipc.h
lib/libsys/vm_query_exit.c
servers/vm/queryexit.c

index 79b172f0713f1dedeeeeea6d06c1c7268408208f..dca4f0c8c8b9c7ed5983b345ef86c6c24aa4bae7 100644 (file)
 #              define VM_RS_MEM_MAKE_VM    1   /* make VM instance */
 
 #define VM_WATCH_EXIT          (VM_RQ_BASE+43)
-#      define VM_WE_EP         m1_i1
 
 #define VM_REMAP_RO            (VM_RQ_BASE+44)
 /* same args as VM_REMAP */
index f5932b4f45b5de11d2953568eff27100127d32a9..c65982e9c855fa00245804d30baee4766821607d 100644 (file)
@@ -1758,6 +1758,12 @@ typedef struct {
 } mess_lsys_vm_update;
 _ASSERT_MSG_SIZE(mess_lsys_vm_update);
 
+typedef struct {
+       endpoint_t      ep;
+       uint8_t         padding[52];
+} mess_lsys_vm_watch_exit;
+_ASSERT_MSG_SIZE(mess_lsys_vm_watch_exit);
+
 typedef struct {
        endpoint_t m_source;            /* who sent the message */
        int m_type;                     /* what kind of message is it */
@@ -1983,6 +1989,7 @@ typedef struct {
                mess_lsys_vm_query_exit m_lsys_vm_query_exit;
                mess_lsys_vm_info       m_lsys_vm_info;
                mess_lsys_vm_update     m_lsys_vm_update;
+               mess_lsys_vm_watch_exit m_lsys_vm_watch_exit;
 
                mess_vfs_lchardriver_cancel     m_vfs_lchardriver_cancel;
                mess_vfs_lchardriver_openclose  m_vfs_lchardriver_openclose;
index 49d1334cf63923c0c91a2e39a494d85aa5a8c3ac..6d8ca33efefbebbd284630ece401f3d2d4528dbb 100644 (file)
@@ -32,6 +32,6 @@ vm_watch_exit(endpoint_t ep)
        message m;
 
        memset(&m, 0, sizeof(m));
-       m.VM_WE_EP = ep;
+       m.m_lsys_vm_watch_exit.ep = ep;
        return _taskcall(VM_PROC_NR, VM_WATCH_EXIT, &m);
 }
index cff96b5e105ee4ae7641379f7f2baa3e738cb7c1..8f21da3892b9030d7e96eb33513215ec9f2a02cc 100644 (file)
@@ -119,7 +119,7 @@ out:
  *===========================================================================*/
 int do_watch_exit(message *m)
 {
-       endpoint_t e = m->VM_WE_EP;
+       endpoint_t e = m->m_lsys_vm_watch_exit.ep;
        struct vmproc *vmp;
        int p;
        if(vm_isokendpt(e, &p) != OK) return ESRCH;