virtio-scsi.c (09999a5f7fc8e3636feda4358a79a25a09467594) | virtio-scsi.c (9d5b731dd2d64deb3bc798ef4e3c08603d54ae02) |
---|---|
1/* 2 * Virtio SCSI HBA 3 * 4 * Copyright IBM, Corp. 2010 5 * Copyright Red Hat, Inc. 2011 6 * 7 * Authors: 8 * Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> --- 615 unchanged lines hidden (view full) --- 624 exit(1); 625 } 626 627 vs->sense_size = virtio_ldl_p(vdev, &scsiconf->sense_size); 628 vs->cdb_size = virtio_ldl_p(vdev, &scsiconf->cdb_size); 629} 630 631static uint64_t virtio_scsi_get_features(VirtIODevice *vdev, | 1/* 2 * Virtio SCSI HBA 3 * 4 * Copyright IBM, Corp. 2010 5 * Copyright Red Hat, Inc. 2011 6 * 7 * Authors: 8 * Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> --- 615 unchanged lines hidden (view full) --- 624 exit(1); 625 } 626 627 vs->sense_size = virtio_ldl_p(vdev, &scsiconf->sense_size); 628 vs->cdb_size = virtio_ldl_p(vdev, &scsiconf->cdb_size); 629} 630 631static uint64_t virtio_scsi_get_features(VirtIODevice *vdev, |
632 uint64_t requested_features) | 632 uint64_t requested_features, 633 Error **errp) |
633{ 634 VirtIOSCSI *s = VIRTIO_SCSI(vdev); 635 636 /* Firstly sync all virtio-scsi possible supported features */ 637 requested_features |= s->host_features; 638 return requested_features; 639} 640 --- 375 unchanged lines hidden --- | 634{ 635 VirtIOSCSI *s = VIRTIO_SCSI(vdev); 636 637 /* Firstly sync all virtio-scsi possible supported features */ 638 requested_features |= s->host_features; 639 return requested_features; 640} 641 --- 375 unchanged lines hidden --- |