Displaying 2 results from an estimated 2 matches for "vbasedev".
Did you mean:
basedev
2020 May 11
0
[PATCH for QEMU v2] hw/vfio: Add VMD Passthrough Quirk
...BAR2 4
> +
> +static int vfio_vmd_emulate_shadow_registers(VFIOPCIDevice *vdev)
> +{
> + VFIOQuirk *quirk;
> + VFIOVMDQuirk *data;
> + PCIDevice *pdev = &vdev->pdev;
> + int ret;
> +
> + data = g_malloc0(sizeof(*data));
> + ret = pread(vdev->vbasedev.fd, data->membar_phys, 16,
> + vdev->config_offset + PCI_BASE_ADDRESS_2);
> + if (ret != 16) {
> + error_report("VMD %s cannot read MEMBARs (%d)",
> + vdev->vbasedev.name, ret);
> + g_free(data);
> + ret...
2020 May 13
0
[PATCH for QEMU v2] hw/vfio: Add VMD Passthrough Quirk
...vdev)
> > > +{
> > > + VFIOQuirk *quirk;
> > > + VFIOVMDQuirk *data;
> > > + PCIDevice *pdev = &vdev->pdev;
> > > + int ret;
> > > +
> > > + data = g_malloc0(sizeof(*data));
> > > + ret = pread(vdev->vbasedev.fd, data->membar_phys, 16,
> > > + vdev->config_offset + PCI_BASE_ADDRESS_2);
> > > + if (ret != 16) {
> > > + error_report("VMD %s cannot read MEMBARs (%d)",
> > > + vdev->vbasedev.name, ret);
>...