Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Changes to stream interface to allow for flow control and error signaling
[palacios.git] / palacios / src / interfaces / vmm_stream.c
index df235aa..3a3ccf7 100644 (file)
@@ -29,7 +29,7 @@ static struct v3_stream_hooks * stream_hooks = NULL;
 
 // VM can be NULL
 struct v3_stream * v3_stream_open(struct v3_vm_info * vm, const char * name, 
-                                 uint64_t (*input)(struct v3_stream * stream, uint8_t * buf, uint64_t len),
+                                 sint64_t (*input)(struct v3_stream * stream, uint8_t * buf, sint64_t len),
                                  void * guest_stream_data) {
     struct v3_stream * stream = NULL;
 
@@ -50,7 +50,7 @@ struct v3_stream * v3_stream_open(struct v3_vm_info * vm, const char * name,
     return stream;
 }
 
-uint64_t v3_stream_output(struct v3_stream * stream, uint8_t * buf, uint32_t len) {
+sint64_t v3_stream_output(struct v3_stream * stream, uint8_t * buf, sint64_t len) {
     V3_ASSERT(VM_NONE, VCORE_NONE, stream_hooks != NULL);
     V3_ASSERT(VM_NONE, VCORE_NONE, stream_hooks->output != NULL);