mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
Attached is a patch that fully 'grant-table-ifies' the block front and
backends. It is necessary to do a make clean in the tools directory and then rebuild the tree. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
This commit is contained in:
1 parent
29395fa9ef
commit
3f54e6d5ec
7 files changed
+75
-5
No files matched your search
@@ -594,6 +594,7 @@ static PyObject *xu_message_get_payload(PyObject *self, PyObject *args)
|
||||
case TYPE(CMSG_BLKIF_FE, CMSG_BLKIF_FE_INTERFACE_CONNECT):
|
||||
C2P(blkif_fe_interface_connect_t, handle, Int, Long);
|
||||
C2P(blkif_fe_interface_connect_t, shmem_frame, Int, Long);
|
||||
C2P(blkif_fe_interface_connect_t, shmem_ref , Int, Long);
|
||||
return dict;
|
||||
case TYPE(CMSG_BLKIF_FE, CMSG_BLKIF_FE_INTERFACE_DISCONNECT):
|
||||
C2P(blkif_fe_interface_disconnect_t, handle, Int, Long);
|
||||
@@ -612,6 +613,7 @@ static PyObject *xu_message_get_payload(PyObject *self, PyObject *args)
|
||||
C2P(blkif_be_connect_t, domid, Int, Long);
|
||||
C2P(blkif_be_connect_t, blkif_handle, Int, Long);
|
||||
C2P(blkif_be_connect_t, shmem_frame, Int, Long);
|
||||
C2P(blkif_be_connect_t, shmem_ref, Int, Long);
|
||||
C2P(blkif_be_connect_t, evtchn, Int, Long);
|
||||
C2P(blkif_be_connect_t, status, Int, Long);
|
||||
return dict;
|
||||
@@ -842,6 +844,7 @@ static PyObject *xu_message_new(PyObject *self, PyObject *args)
|
||||
P2C(blkif_be_connect_t, domid, u32);
|
||||
P2C(blkif_be_connect_t, blkif_handle, u32);
|
||||
P2C(blkif_be_connect_t, shmem_frame, memory_t);
|
||||
P2C(blkif_be_connect_t, shmem_ref, u32);
|
||||
P2C(blkif_be_connect_t, evtchn, u16);
|
||||
break;
|
||||
case TYPE(CMSG_BLKIF_BE, CMSG_BLKIF_BE_DISCONNECT):
|
||||
|
||||
@@ -126,7 +126,8 @@ class BlkifBackend:
|
||||
{ 'domid' : self.frontendDomain,
|
||||
'blkif_handle' : self.id,
|
||||
'evtchn' : self.getEventChannelBackend(),
|
||||
'shmem_frame' : val['shmem_frame'] })
|
||||
'shmem_frame' : val['shmem_frame'],
|
||||
'shmem_ref' : val['shmem_ref'] })
|
||||
msg = self.backendChannel.requestResponse(msg)
|
||||
#todo: check return status
|
||||
val = unpackMsg('blkif_be_connect_t', msg)
|
||||
|
||||