~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to hw/scsi/vmw_pvscsi.c

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
202
202
    uint32_t len_log2;
203
203
    uint32_t ring_size;
204
204
 
205
 
    if (!ri->numPages || ri->numPages > PVSCSI_SETUP_MSG_RING_MAX_NUM_PAGES) {
 
205
    if (ri->numPages > PVSCSI_SETUP_MSG_RING_MAX_NUM_PAGES) {
206
206
        return -1;
207
207
    }
208
208
    ring_size = ri->numPages * PVSCSI_MAX_NUM_MSG_ENTRIES_PER_PAGE;
1207
1207
    .name = "pvscsi/pcie",
1208
1208
    .needed = pvscsi_vmstate_need_pcie_device,
1209
1209
    .fields = (VMStateField[]) {
1210
 
        VMSTATE_PCIE_DEVICE(parent_obj, PVSCSIState),
 
1210
        VMSTATE_PCI_DEVICE(parent_obj, PVSCSIState),
1211
1211
        VMSTATE_END_OF_LIST()
1212
1212
    }
1213
1213
};