Message ID | 20130306012811.GA20372@hj.localdomain (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Il 06/03/2013 02:28, Asias He ha scritto: >> > This can queue up quite a bit of memory if the handler thread >> > is delayed, no? Can we limit the # of outstanding events? >> > Will guest recover from a missed event? > Hmm, good point. Will limit the number. The size of 'struct > tcm_vhost_evt' is around 20 bytes. So if we limit it to 128, it is ~2.5K > of memory. > > Paolo, if we limit the number of outstanding events and set > vs->vs_events_dropped, the guest will recover from a missed event, right? Yes. At least it should (it doesn't yet). Paolo -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Wed, Mar 06, 2013 at 06:41:47PM +0100, Paolo Bonzini wrote: > Il 06/03/2013 02:28, Asias He ha scritto: > >> > This can queue up quite a bit of memory if the handler thread > >> > is delayed, no? Can we limit the # of outstanding events? > >> > Will guest recover from a missed event? > > Hmm, good point. Will limit the number. The size of 'struct > > tcm_vhost_evt' is around 20 bytes. So if we limit it to 128, it is ~2.5K > > of memory. > > > > Paolo, if we limit the number of outstanding events and set > > vs->vs_events_dropped, the guest will recover from a missed event, right? > > Yes. At least it should (it doesn't yet). Ok, thanks. > Paolo >
diff --git a/drivers/vhost/tcm_vhost.h b/drivers/vhost/tcm_vhost.h index 191a945..8941a54 100644 --- a/drivers/vhost/tcm_vhost.h +++ b/drivers/vhost/tcm_vhost.h @@ -53,6 +53,7 @@ struct tcm_vhost_nacl { struct se_node_acl se_node_acl; }; +struct vhost_scsi; struct tcm_vhost_tpg { /* Vhost port target portal group tag for TCM */ u16 tport_tpgt; @@ -71,7 +72,7 @@ struct tcm_vhost_tpg { /* Returned by tcm_vhost_make_tpg() */ struct se_portal_group se_tpg; /* Pointer back to struct vhost_scsi*/ - void *vhost_scsi; + struct vhost_scsi *vhost_scsi; }; struct tcm_vhost_tport {