virtio_ccw: pass a cookie value to kvm hypercall
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 28 Feb 2013 11:33:16 +0000 (12:33 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 5 Mar 2013 22:12:09 +0000 (19:12 -0300)
Lookups by channel/vq pair on host during virtio notifications might be
expensive.  Interpret hypercall return value as a cookie which host can
use to do device lookups for the next notification more efficiently.

[CH: Fix line > 80 chars]
Tested-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>

No differences found